This is a basic persisted-queries plugin for GraphQL Drupal module.
- Configure the frontend to generate the query map. See @amazeelabs/codegen-operation-ids package.
- Install this module.
composer require amazeelabs/silverback_graphql_persisted drush en silverback_graphql_persisted - Enable
Silverback Persisted Queryplugin at/admin/config/graphql/servers/manage/{my-server}/persisted_queries. - Add the query map path to
setting.php. It should be relative toDRUPAL_ROOT. Example:$settings['silverback_graphql_persisted_map'] = '../generated/persisted-queries-map.json';
- Adjust
execute {my-server} arbitrary graphql requestsandexecute {my-server} persisted graphql requestsuser permissions.