Skip to content

Commit

Permalink
docs: Add missing new operator
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Aug 18, 2019
1 parent 914d7a4 commit 5793ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Iterates over all fields in all types declared in a GraphQL schema. It can be us
```js
const { visitFields } = require('graphql-field-visitor')

const schema = GraphQLSchema({
const schema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: () => { ... }
Expand Down

0 comments on commit 5793ea2

Please sign in to comment.