GraphQL persisted queries for Silverback

This is a basic persisted-queries plugin for GraphQL Drupal module.

Setup

  1. Configure the frontend to generate the query map. See @amazeelabs/codegen-operation-ids package.
  2. Install this module.
    composer require amazeelabs/silverback_graphql_persisted
    drush en silverback_graphql_persisted
    
  3. Enable Silverback Persisted Query plugin at /admin/config/graphql/servers/manage/{my-server}/persisted_queries.
  4. Add the query map path to setting.php. It should be relative to DRUPAL_ROOT. Example:
    $settings['silverback_graphql_persisted_map'] = '../generated/persisted-queries-map.json';
  5. Adjust execute {my-server} arbitrary graphql requests and execute {my-server} persisted graphql requests user permissions.