From 6de15a4162224dbf2d911bce0a9d4eaa396071a3 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 22 Nov 2021 11:26:58 -0600 Subject: graphql: T3993: change name of directive --- src/services/api/graphql/README.graphql | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/services/api/graphql/README.graphql') diff --git a/src/services/api/graphql/README.graphql b/src/services/api/graphql/README.graphql index 0ddcb578a..a387f3276 100644 --- a/src/services/api/graphql/README.graphql +++ b/src/services/api/graphql/README.graphql @@ -122,13 +122,14 @@ the Ur-data; the GraphQL schema is produced from those files, located in Resolvers for the schema Mutation fields are dynamically generated using a 'directive' added to the respective schema field. The directive, -'@generate', is handled by the class 'DataDirective' in -'api/graphql/graphql/directives.py', which calls the 'make_resolver' function in -'api/graphql/graphql/mutations.py'; the produced resolver calls the appropriate -wrapper in 'api/graphql/recipes', with base class doing the (overridable) -configuration steps of calling all defined 'set'/'delete' commands. - -Integrating the above with vyos-http-api-server is ~10 lines of code. +'@configure', is handled by the class 'ConfigureDirective' in +'api/graphql/graphql/directives.py', which calls the +'make_configure_resolver' function in 'api/graphql/graphql/mutations.py'; +the produced resolver calls the appropriate wrapper in +'api/graphql/recipes', with base class doing the (overridable) configuration +steps of calling all defined 'set'/'delete' commands. + +Integrating the above with vyos-http-api-server is 4 lines of code. What needs to be done: -- cgit v1.2.3