diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-14 19:03:25 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-15 15:36:42 -0600 |
commit | 419f81a0c39740de0ff61ce25325ebea76c4a395 (patch) | |
tree | bd19031423992efff8151bcc034e57467944f0fd /src/services/api/graphql/bindings.py | |
parent | 8e8d3d8e6dfec86c210a1b5874e839ad8adaef4b (diff) | |
download | vyos-1x-419f81a0c39740de0ff61ce25325ebea76c4a395.tar.gz vyos-1x-419f81a0c39740de0ff61ce25325ebea76c4a395.zip |
graphql: T3993: add config file save/load
(cherry picked from commit 8915a19f7761253b7bdf6ca847069539ee33851d)
Diffstat (limited to 'src/services/api/graphql/bindings.py')
-rw-r--r-- | src/services/api/graphql/bindings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/api/graphql/bindings.py b/src/services/api/graphql/bindings.py index 1403841b4..c123f68d8 100644 --- a/src/services/api/graphql/bindings.py +++ b/src/services/api/graphql/bindings.py @@ -1,6 +1,6 @@ import vyos.defaults from . graphql.mutations import mutation -from . graphql.directives import DataDirective +from . graphql.directives import DataDirective, ConfigFileDirective from ariadne import make_executable_schema, load_schema_from_path, snake_case_fallback_resolvers @@ -9,6 +9,6 @@ def generate_schema(): type_defs = load_schema_from_path(api_schema_dir) - schema = make_executable_schema(type_defs, mutation, snake_case_fallback_resolvers, directives={"generate": DataDirective}) + schema = make_executable_schema(type_defs, mutation, snake_case_fallback_resolvers, directives={"generate": DataDirective, "configfile": ConfigFileDirective}) return schema |