From 9aaa1426e3e9828c81f8d4f8df958417636f1391 Mon Sep 17 00:00:00 2001 From: lockedNLevered <50569571+lockedNLevered@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:35:21 -0700 Subject: [PATCH] Update 04-why-nexus.mdx queryType is missing type field. TypeScript would throw error and not compile. --- docs/content/010-getting-started/04-why-nexus.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/010-getting-started/04-why-nexus.mdx b/docs/content/010-getting-started/04-why-nexus.mdx index 7af09a78..453b74ec 100644 --- a/docs/content/010-getting-started/04-why-nexus.mdx +++ b/docs/content/010-getting-started/04-why-nexus.mdx @@ -63,6 +63,7 @@ const Post = objectType({ const Query = queryType({ definition(t) { t.list.field('posts', { + type: "Post", resolve: () => [ { id: '1',