diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-22 11:26:58 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-24 13:33:45 -0600 |
commit | 715b3c05b6f6bed436c7651d8a7897e8c120329b (patch) | |
tree | 1482d184f860640e2ce087b0f868abf919c6f623 /src/services/api/graphql/bindings.py | |
parent | ecf14b0e900c7207507196f6de6ad69c80b2e09e (diff) | |
download | vyos-1x-715b3c05b6f6bed436c7651d8a7897e8c120329b.tar.gz vyos-1x-715b3c05b6f6bed436c7651d8a7897e8c120329b.zip |
graphql: T3993: change name of directive
(cherry picked from commit 6de15a4162224dbf2d911bce0a9d4eaa396071a3)
Diffstat (limited to 'src/services/api/graphql/bindings.py')
-rw-r--r-- | src/services/api/graphql/bindings.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/services/api/graphql/bindings.py b/src/services/api/graphql/bindings.py index c123f68d8..1fbe13d0c 100644 --- a/src/services/api/graphql/bindings.py +++ b/src/services/api/graphql/bindings.py @@ -1,7 +1,6 @@ import vyos.defaults from . graphql.mutations import mutation -from . graphql.directives import DataDirective, ConfigFileDirective - +from . graphql.directives import directives_dict from ariadne import make_executable_schema, load_schema_from_path, snake_case_fallback_resolvers def generate_schema(): @@ -9,6 +8,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, "configfile": ConfigFileDirective}) + schema = make_executable_schema(type_defs, mutation, snake_case_fallback_resolvers, directives=directives_dict) return schema |