Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amazeelabs/silverback_graphql_persisted
https://github.com/amazeelabs/silverback_graphql_persisted
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amazeelabs/silverback_graphql_persisted
- Owner: AmazeeLabs
- Created: 2022-08-03T12:16:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T12:01:02.000Z (5 months ago)
- Last Synced: 2024-09-09T14:16:54.766Z (5 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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](https://github.com/AmazeeLabs/silverback-mono/tree/development/packages/npm/%40amazeelabs/codegen-operation-ids#readme)
package.
1. Install this module.
```
composer require amazeelabs/silverback_graphql_persisted
drush en silverback_graphql_persisted
```
1. Enable `Silverback Persisted Query` plugin at
`/admin/config/graphql/servers/manage/{my-server}/persisted_queries`.
1. Add the query map path to `setting.php`. It should be relative to
`DRUPAL_ROOT`. Example:
```php
$settings['silverback_graphql_persisted_map'] = '../generated/persisted-queries-map.json';
```
1. Adjust `execute {my-server} arbitrary graphql requests` and
`execute {my-server} persisted graphql requests` user permissions.