summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/bindings.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-11-14 19:03:25 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-11-15 14:50:28 -0600
commit8915a19f7761253b7bdf6ca847069539ee33851d (patch)
tree7e30fcb40c7e103de23a056b3bc5dc3d1d7e804f /src/services/api/graphql/bindings.py
parent9e2694b24b06d928240522322c9a6d60c7a7d290 (diff)
downloadvyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.tar.gz
vyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.zip
graphql: T3993: add config file save/load
Diffstat (limited to 'src/services/api/graphql/bindings.py')
-rw-r--r--src/services/api/graphql/bindings.py4
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