mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
5ab1ff3e69
* Add GraphQL4 compatibility * Add getPageByLink * Blacklist sitetree fields * Remove getByLink from default schema. use linkable plugin * getByLink compatability with new readOne filter anything * Remove return type * Compliance with new modelConfig * Prep for travis * Improvements for versioned-admin compat * BC class guards * New graphql 3 compat * Fix travis syntax error * New backward graphqlphp dependency * Lint, build * New phpcs exclusion * Tidy up travis * Fix rollback mutation * Update code/GraphQL/_legacy/ReadOneResolver.php Co-authored-by: Ingo Schommer <ingo@silverstripe.com> * Address ingo feedback * Deprecated GraphQL v3 classes * Remove deleted branches Co-authored-by: Ingo Schommer <ingo@silverstripe.com> Co-authored-by: Ingo Schommer <me@chillu.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
Name: cms-graphql
|
|
Only:
|
|
classexists: 'SilverStripe\GraphQL\Schema\Schema'
|
|
---
|
|
SilverStripe\Core\Injector\Injector:
|
|
SilverStripe\GraphQL\Schema\Registry\ResolverRegistry:
|
|
constructor:
|
|
cmsResolver: '%$SilverStripe\CMS\GraphQL\Resolver'
|
|
SilverStripe\GraphQL\Schema\Registry\PluginRegistry:
|
|
constructor:
|
|
linkable: '%$SilverStripe\CMS\GraphQL\LinkablePlugin'
|
|
SilverStripe\CMS\Model\SiteTree:
|
|
graphql_blacklisted_fields:
|
|
HasBrokenFile: true
|
|
HasBrokenLink: true
|
|
ReportClass: true
|
|
VirtualPages: true
|
|
BackLinks: true
|
|
SilverStripe\GraphQL\Schema\Schema:
|
|
schemas:
|
|
admin:
|
|
models:
|
|
Page:
|
|
fields:
|
|
id: true
|
|
lastEdited: true
|
|
absoluteLink:
|
|
type: String
|
|
operations:
|
|
copyToStage: true
|
|
rollback: true
|
|
readOne: true
|
|
SilverStripe\Security\Member:
|
|
fields:
|
|
id: true
|
|
firstName: true
|
|
surname: true
|
|
operations:
|
|
readOne: true
|
|
modelConfig:
|
|
DataObject:
|
|
operations:
|
|
read:
|
|
plugins:
|
|
getByLink:
|
|
after: filter
|