cms-niceties/_config/graphql.yml

38 lines
825 B
YAML
Raw Normal View History

2023-10-24 21:53:40 +02:00
---
Name: app-graphql
After:
- app-basics
Only:
classexists: 'SilverStripe\GraphQL\Schema\Schema'
---
SilverStripe\Core\Injector\Injector:
SilverStripe\GraphQL\Schema\Registry\PluginRegistry:
constructor:
- 'A2nt\CMSNiceties\GraphQL\URLLinkablePlugin'
SilverStripe\Control\Director:
rules:
graphql:
Controller: '%$SilverStripe\GraphQL\Controller.default'
Schema: default
SilverStripe\GraphQL\Schema\Schema:
schemas:
'*':
config:
max_query_nodes: 250 # default 500
max_query_depth: 20 # default 15
max_query_complexity: 200 # default unlimited
default:
src:
- app/_graphql
SilverStripe\GraphQLDevTools\Controller:
# show two schemas
schemas:
- default
- admin
# default schema that is selected
default_schema: default