Add multi-schema support

This commit is contained in:
Aaron Carlino 2018-07-09 14:02:11 -05:00
parent 2d9432789b
commit d99cd10f29

View File

@ -1,16 +1,17 @@
---
Name: cmsgraphql
---
SilverStripe\GraphQL\Controller:
schema:
scaffolding:
types:
SilverStripe\CMS\Model\SiteTree:
fields: [ID, LastEdited, AbsoluteLink]
operations:
copyToStage: true
readOne: true
SilverStripe\Security\Member:
fields: [ID, FirstName, Surname]
operations:
readOne: true
SilverStripe\GraphQL\Manager:
schemas:
admin:
scaffolding:
types:
SilverStripe\CMS\Model\SiteTree:
fields: [ID, LastEdited, AbsoluteLink]
operations:
copyToStage: true
readOne: true
SilverStripe\Security\Member:
fields: [ID, FirstName, Surname]
operations:
readOne: true