diff options
author | John Estabrook <jestabro@vyos.io> | 2022-07-24 15:36:18 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-07-25 15:47:11 -0500 |
commit | fa8dcff5d2e18ded5310d3f86ea0dc1bf2795af8 (patch) | |
tree | 8429207b5386557b83007ba71fae9b874042840b /src/services/api/graphql/bindings.py | |
parent | 423485a0b87a650c74dd490a1335af969ef83237 (diff) | |
download | vyos-1x-fa8dcff5d2e18ded5310d3f86ea0dc1bf2795af8.tar.gz vyos-1x-fa8dcff5d2e18ded5310d3f86ea0dc1bf2795af8.zip |
graphql: T4554: add resolver support for op-mode scripts
Diffstat (limited to 'src/services/api/graphql/bindings.py')
-rw-r--r-- | src/services/api/graphql/bindings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/api/graphql/bindings.py b/src/services/api/graphql/bindings.py index 84d719fda..049d59de7 100644 --- a/src/services/api/graphql/bindings.py +++ b/src/services/api/graphql/bindings.py @@ -17,11 +17,14 @@ import vyos.defaults from . graphql.queries import query from . graphql.mutations import mutation from . graphql.directives import directives_dict +from . utils.schema_from_op_mode import generate_op_mode_definitions from ariadne import make_executable_schema, load_schema_from_path, snake_case_fallback_resolvers def generate_schema(): api_schema_dir = vyos.defaults.directories['api_schema'] + generate_op_mode_definitions() + type_defs = load_schema_from_path(api_schema_dir) schema = make_executable_schema(type_defs, query, mutation, snake_case_fallback_resolvers, directives=directives_dict) |