Merge pull request #2211 from open-sausages/pulls/4/pyramid-schema

Add multi-schema support
This commit is contained in:
Maxime Rainville 2018-08-07 10:35:01 +12:00 committed by GitHub
commit 15fc464a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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