Skip to content

Commit

Permalink
fix example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Jan 28, 2023
1 parent 6ffc513 commit 4c58d41
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 @@ -25,7 +25,7 @@ const resolvers = { hello: () => 'world' }

const schema = buildASTSchema(typeDefs)

console.log(await graphql(schema, query, resolvers))
console.log(await graphql({ schema, source: query, rootValue: resolvers }))
```

[releases]: https://img.shields.io/github/v/release/deno-libs/graphql-tag?style=flat-square
Expand Down

0 comments on commit 4c58d41

Please sign in to comment.