amazeelabs / silverback_graphql_persisted
Persisted queries plugin for GraphQL v4.
Installs: 17 526
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 2
Type:drupal-module
README
This is a basic persisted-queries plugin for GraphQL Drupal module.
Setup
- 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.