cms-niceties/_config/graphql.yml

43 lines
915 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:
2023-10-24 22:19:03 +02:00
- vendor/a2nt/cms-niceties/_graphql
2023-10-24 21:53:40 +02:00
SilverStripe\GraphQLDevTools\Controller:
# show two schemas
schemas:
- default
- admin
# default schema that is selected
default_schema: default
Page:
extensions:
- A2nt\CMSNiceties\GraphQL\ObjectGraphQlEx