mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
38 lines
825 B
YAML
38 lines
825 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:
|
||
|
- app/_graphql
|
||
|
|
||
|
SilverStripe\GraphQLDevTools\Controller:
|
||
|
# show two schemas
|
||
|
schemas:
|
||
|
- default
|
||
|
- admin
|
||
|
# default schema that is selected
|
||
|
default_schema: default
|