2020-11-13 01:50:44 +01:00
|
|
|
---
|
|
|
|
Name: cmsgraphql
|
|
|
|
Except:
|
|
|
|
classexists: 'SilverStripe\GraphQL\Schema\Schema'
|
|
|
|
---
|
|
|
|
SilverStripe\GraphQL\Manager:
|
|
|
|
schemas:
|
|
|
|
admin:
|
|
|
|
scaffolding:
|
|
|
|
types:
|
2021-05-07 06:42:36 +02:00
|
|
|
# Expose this so that Page can appear anywhere in the hierarchy, rather than assuming
|
|
|
|
# it is a direct descendant of SiteTree.
|
|
|
|
SilverStripe\CMS\Model\SiteTree:
|
|
|
|
fields: [ID]
|
2020-11-13 01:50:44 +01:00
|
|
|
Page:
|
|
|
|
fields: [ID, LastEdited, AbsoluteLink]
|
|
|
|
operations:
|
|
|
|
copyToStage: true
|
|
|
|
rollback: true
|
|
|
|
readOne:
|
|
|
|
args:
|
|
|
|
filter:
|
|
|
|
type: IDFilterType
|
|
|
|
required: true
|
|
|
|
resolver: ['SilverStripe\CMS\GraphQL\ReadOneResolver', 'resolve']
|
|
|
|
SilverStripe\Security\Member:
|
|
|
|
fields: [ID, FirstName, Surname]
|
|
|
|
operations:
|
|
|
|
readOne: true
|