From 4c58d4167db71e61073ec717e56142e5b5beeac9 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Sat, 28 Jan 2023 18:20:06 +0200 Subject: [PATCH] fix example in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ab77fe..19b4df3 100644 --- a/README.md +++ b/README.md @@ -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