diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-27 14:36:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-27 14:36:10 +0200 |
commit | 8dcb865d5d7b98cc76cd134125b76ffc04adef52 (patch) | |
tree | 3a61359a182d38c8ebc6c5b6676194f2df6f833d /src/services/api/graphql/bindings.py | |
parent | 557b9b8dd234fefcfa8e95c06d4dd30cfb3f7fd5 (diff) | |
parent | b4646149b4993578707833df96e972f76a298ef7 (diff) | |
download | vyos-1x-8dcb865d5d7b98cc76cd134125b76ffc04adef52.tar.gz vyos-1x-8dcb865d5d7b98cc76cd134125b76ffc04adef52.zip |
Merge pull request #1493 from jestabro/gql-op-mode-error
graphql: T4640: add schema defs and resolver support for op-mode errors
Diffstat (limited to 'src/services/api/graphql/bindings.py')
-rw-r--r-- | src/services/api/graphql/bindings.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/api/graphql/bindings.py b/src/services/api/graphql/bindings.py index 049d59de7..0b1260912 100644 --- a/src/services/api/graphql/bindings.py +++ b/src/services/api/graphql/bindings.py @@ -17,6 +17,7 @@ import vyos.defaults from . graphql.queries import query from . graphql.mutations import mutation from . graphql.directives import directives_dict +from . graphql.errors import op_mode_error 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 @@ -27,6 +28,6 @@ def generate_schema(): type_defs = load_schema_from_path(api_schema_dir) - schema = make_executable_schema(type_defs, query, mutation, snake_case_fallback_resolvers, directives=directives_dict) + schema = make_executable_schema(type_defs, query, op_mode_error, mutation, snake_case_fallback_resolvers, directives=directives_dict) return schema |