Skip to content

Commit e3bbf37

Browse files
authored
update graphql() function.
graphql function is generating null schema error in passing paramter as its taking a obj parameter
1 parent 7eefc85 commit e3bbf37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/graphql-js/APIReference-GraphQL.md

+2
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ var { graphql } = require('graphql'); // CommonJS
144144

145145
```js
146146
graphql(
147+
{
147148
schema: GraphQLSchema,
148149
requestString: string,
149150
rootValue?: ?any,
150151
contextValue?: ?any,
151152
variableValues?: ?{[key: string]: any},
152153
operationName?: ?string
154+
}
153155
): Promise<GraphQLResult>
154156
```
155157

0 commit comments

Comments
 (0)