cms-niceties/_config/graphql.yml

43 lines
915 B
YAML

---
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:
- vendor/a2nt/cms-niceties/_graphql
SilverStripe\GraphQLDevTools\Controller:
# show two schemas
schemas:
- default
- admin
# default schema that is selected
default_schema: default
Page:
extensions:
- A2nt\CMSNiceties\GraphQL\ObjectGraphQlEx