You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| query |`ObjectType` or `callable(): ObjectType` or `null`|**Required.** Object type (usually named `Query`) containing root-level fields of your read API |
84
-
| mutation |`ObjectType` or `callable(): ObjectType` or `null`| Object type (usually named `Mutation`) containing root-level fields of your write API |
85
-
| subscription |`ObjectType` or `callable(): ObjectType` or `null`| Reserved for future subscriptions implementation. Currently presented for compatibility with introspection query of **graphql-js**, used by various clients (like Relay or GraphiQL) |
86
-
| directives |`array<Directive>`| A full list of [directives](type-definitions/directives.md) supported by your schema. By default, contains built-in **@skip** and **@include** directives.<br><br> If you pass your own directives and still want to use built-in directives - add them explicitly. For example:<br><br> _array_merge(GraphQL::getStandardDirectives(), [$myCustomDirective]);_|
87
-
| types |`array<ObjectType>`| List of object types which cannot be detected by **graphql-php** during static schema analysis.<br><br>Most often this happens when the object type is never referenced in fields directly but is still a part of a schema because it implements an interface which resolves to this object type in its **resolveType** callable. <br><br> Note that you are not required to pass all of your types here - it is simply a workaround for a concrete use-case. |
88
-
| typeLoader |`callable(string $name): Type`| Expected to return a type instance given the name. Must always return the same instance if called multiple times, see [lazy loading](#lazy-loading-of-types). See section below on lazy type loading. |
| query |`ObjectType` or `callable(): ?ObjectType` or `null`|**Required.** Object type (usually named `Query`) containing root-level fields of your read API |
84
+
| mutation |`ObjectType` or `callable(): ?ObjectType` or `null`| Object type (usually named `Mutation`) containing root-level fields of your write API |
85
+
| subscription |`ObjectType` or `callable(): ?ObjectType` or `null`| Reserved for future subscriptions implementation. Currently presented for compatibility with introspection query of **graphql-js**, used by various clients (like Relay or GraphiQL) |
86
+
| directives |`array<Directive>`| A full list of [directives](type-definitions/directives.md) supported by your schema. By default, contains built-in **@skip** and **@include** directives.<br><br> If you pass your own directives and still want to use built-in directives - add them explicitly. For example:<br><br> _array_merge(GraphQL::getStandardDirectives(), [$myCustomDirective]);_|
87
+
| types |`array<ObjectType>`| List of object types which cannot be detected by **graphql-php** during static schema analysis.<br><br>Most often this happens when the object type is never referenced in fields directly but is still a part of a schema because it implements an interface which resolves to this object type in its **resolveType** callable. <br><br> Note that you are not required to pass all of your types here - it is simply a workaround for a concrete use-case. |
88
+
| typeLoader |`callable(string $name): Type`| Expected to return a type instance given the name. Must always return the same instance if called multiple times, see [lazy loading](#lazy-loading-of-types). See section below on lazy type loading. |
0 commit comments