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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ The `props` argument accepts the following fields:
75
75
76
76
| Key | Type | Default | Note |
77
77
| --- | --- | --- | --- |
78
-
|`typeDefs`| String|`null`| Contains GraphQL type definitions in [SDL](https://blog.graph.cool/graphql-sdl-schema-definition-language-6755bcb9ce51) or file path to type definitions (required if `schema` is not provided \*) |
78
+
|`typeDefs`|`String` or `Function` or `DocumentNode` or `array` of previous|`null`| Contains GraphQL type definitions in [SDL](https://blog.graph.cool/graphql-sdl-schema-definition-language-6755bcb9ce51) or file path to type definitions (required if `schema` is not provided \*) |
79
79
|`resolvers`| Object |`null`| Contains resolvers for the fields specified in `typeDefs` (required if `schema` is not provided \*) |
80
80
|`schema`| Object |`null`| An instance of [`GraphQLSchema`](http://graphql.org/graphql-js/type/#graphqlschema) (required if `typeDefs` and `resolvers` are not provided \*) |
81
81
|`context`| Object or Function |`{}`| Contains custom data being passed through your resolver chain. This can be passed in as an object, or as a Function with the signature `(req: ContextParameters) => any`\*\*|
0 commit comments