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 Query
plugin 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 requests
andexecute {my-server} persisted graphql requests
user permissions.