diff options
author | John Estabrook <jestabro@vyos.io> | 2022-07-29 12:14:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 12:14:13 -0500 |
commit | 516b86bb970c7e039b58e554cb3b22e8f996841f (patch) | |
tree | 9cd51989cd3fb03ca0d88c32cf0cc6d8c04bb892 /src/services/api/graphql/bindings.py | |
parent | b5d9ebf16f63b86013ce4e72a8023ac65fc2df8d (diff) | |
parent | fa8dcff5d2e18ded5310d3f86ea0dc1bf2795af8 (diff) | |
download | vyos-1x-516b86bb970c7e039b58e554cb3b22e8f996841f.tar.gz vyos-1x-516b86bb970c7e039b58e554cb3b22e8f996841f.zip |
Merge pull request #1432 from jestabro/gql-op-mode
graphql: T4554: Automate GraphQL handling of standardized op-mode requests
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) |