Skip to content

Commit 4c58d41

Browse files
author
v1rtl
committed
fix example in readme
1 parent 6ffc513 commit 4c58d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const resolvers = { hello: () => 'world' }
2525

2626
const schema = buildASTSchema(typeDefs)
2727

28-
console.log(await graphql(schema, query, resolvers))
28+
console.log(await graphql({ schema, source: query, rootValue: resolvers }))
2929
```
3030

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

0 commit comments

Comments
 (0)