From d99cd10f29dd62c9c83d4def1efd939e8c351935 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Mon, 9 Jul 2018 14:02:11 -0500 Subject: [PATCH] Add multi-schema support --- _config/graphql.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/_config/graphql.yml b/_config/graphql.yml index f5d5cf18..8399f913 100644 --- a/_config/graphql.yml +++ b/_config/graphql.yml @@ -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