-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Ingo Schommer <[email protected]> Co-authored-by: Gene Dower <[email protected]> Co-authored-by: Maxime Rainville <[email protected]> Co-authored-by: Andre Kiste <[email protected]>
- Loading branch information
1 parent
78f081a
commit 1c4e623
Showing
240 changed files
with
11,338 additions
and
14,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
Name: silverstripe-graphql-dataobject | ||
--- | ||
SilverStripe\GraphQL\Schema\DataObject\DataObjectModel: | ||
operations: | ||
read: 'SilverStripe\GraphQL\Schema\DataObject\ReadCreator' | ||
readOne: 'SilverStripe\GraphQL\Schema\DataObject\ReadOneCreator' | ||
delete: 'SilverStripe\GraphQL\Schema\DataObject\DeleteCreator' | ||
update: 'SilverStripe\GraphQL\Schema\DataObject\UpdateCreator' | ||
create: 'SilverStripe\GraphQL\Schema\DataObject\CreateCreator' | ||
SilverStripe\ORM\DataObject: | ||
graphql_blacklisted_fields: | ||
ClassName: true | ||
LinkTracking: true | ||
FileTracking: true | ||
extensions: | ||
- SilverStripe\GraphQL\Extensions\DevBuildExtension | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
Name: graphql-dbtypes | ||
--- | ||
# Assign each DBField subclass with an associated internal type | ||
SilverStripe\ORM\FieldType\DBField: | ||
graphql_type: String | ||
SilverStripe\ORM\FieldType\DBInt: | ||
graphql_type: Int | ||
SilverStripe\ORM\FieldType\DBBoolean: | ||
graphql_type: Boolean | ||
SilverStripe\ORM\FieldType\DBFloat: | ||
graphql_type: Float | ||
SilverStripe\ORM\FieldType\DBDecimal: | ||
graphql_type: Float | ||
SilverStripe\ORM\FieldType\DBPrimaryKey: | ||
graphql_type: ID | ||
SilverStripe\ORM\FieldType\DBForeignKey: | ||
graphql_type: ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
Name: 'graphql-default-schema' | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
# Set up a default endpoint that can be activated with a Director rule | ||
SilverStripe\GraphQL\Controller.default: | ||
class: SilverStripe\GraphQL\Controller | ||
constructor: | ||
schema: default | ||
# use a custom handler so it's easy to override/add middlewares in the default schema | ||
handler: '%$SilverStripe\GraphQL\QueryHandler\QueryHandlerInterface.default' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--- | ||
Name: graphqltest | ||
Before: | ||
- '#sapphiretest' | ||
Name: graphql-dev | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\Dev\State\SapphireTestState: | ||
properties: | ||
States: | ||
disabletypecaching: '%$SilverStripe\GraphQL\Dev\State\DisableTypeCacheState' | ||
SilverStripe\Dev\DevelopmentAdmin: | ||
registered_controllers: | ||
graphql: | ||
controller: SilverStripe\GraphQL\Dev\DevelopmentAdmin | ||
links: | ||
build: 'Build/rebuild the GraphQL schema' | ||
SilverStripe\GraphQL\Dev\DevelopmentAdmin: | ||
registered_controllers: | ||
build: | ||
controller: SilverStripe\GraphQL\Dev\Build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
Name: 'graphql-middlewares' | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
# default implementation | ||
SilverStripe\GraphQL\QueryHandler\QueryHandlerInterface: | ||
class: SilverStripe\GraphQL\QueryHandler\QueryHandler | ||
properties: | ||
Middlewares: | ||
csrf: '%$SilverStripe\GraphQL\Middleware\CSRFMiddleware' | ||
httpMethod: '%$SilverStripe\GraphQL\Middleware\HTTPMethodMiddleware' | ||
|
||
# duplicate implementation do that the default schema has its own instance to | ||
# configure without affecting other schemas | ||
SilverStripe\GraphQL\QueryHandler\QueryHandlerInterface.default: | ||
class: SilverStripe\GraphQL\QueryHandler\QueryHandler | ||
properties: | ||
Middlewares: | ||
csrf: '%$SilverStripe\GraphQL\Middleware\CSRFMiddleware' | ||
httpMethod: '%$SilverStripe\GraphQL\Middleware\HTTPMethodMiddleware' | ||
|
||
Psr\SimpleCache\CacheInterface.graphql: | ||
factory: SilverStripe\Core\Cache\CacheFactory | ||
constructor: | ||
namespace: "graphql" | ||
defaultLifetime: 600 | ||
|
||
SilverStripe\GraphQL\Middleware\QueryCachingMiddleware: | ||
properties: | ||
Cache: '%$Psr\SimpleCache\CacheInterface.graphql' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
Name: silverstripe-graphql-model | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\GraphQL\Schema\Registry\SchemaModelCreatorRegistry: | ||
constructor: | ||
dataobject: '%$SilverStripe\GraphQL\Schema\DataObject\ModelCreator' | ||
SilverStripe\GraphQL\Schema\Schema: | ||
schemas: | ||
'*': | ||
modelConfig: | ||
DataObject: | ||
type_formatter: [ 'SilverStripe\Core\ClassInfo', 'shortName' ] | ||
type_prefix: '' | ||
type_mapping: [] | ||
nested_query_plugins: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
Name: graphql-plugins | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\GraphQL\Schema\Registry\PluginRegistry: | ||
constructor: | ||
paginator: '%$SilverStripe\GraphQL\Schema\Plugin\PaginationPlugin' | ||
dataobjectPaginator: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\Paginator' | ||
dataobjectQueryFilter: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\QueryFilter\QueryFilter' | ||
dataobjectQuerySort: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\QuerySort' | ||
dataobjectInheritance: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\Inheritance' | ||
canViewPermission: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\CanViewPermission' | ||
firstResult: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\FirstResult' | ||
inheritedPlugins: '%$SilverStripe\GraphQL\Schema\DataObject\Plugin\InheritedPlugins' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
This folder contains a "pseudo-module" for SilverStripe | ||
with some runnable code examples. In order to try them out yourself, | ||
move the `examples` folder to the top level of your SilverStripe | ||
project and remove the `_manifest_exclude` file. | ||
## COMING SOON ## | ||
|
||
The v4 release of this module does not yet have any example code. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.