Skip to content

Commit

Permalink
Merge pull request #2211 from open-sausages/pulls/4/pyramid-schema
Browse files Browse the repository at this point in the history
Add multi-schema support
  • Loading branch information
maxime-rainville authored Aug 6, 2018
2 parents f99d0d7 + d99cd10 commit 15fc464
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions _config/graphql.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 15fc464

Please sign in to comment.