From e434570ee1b976a03efd5ef268cf02243064e5e1 Mon Sep 17 00:00:00 2001 From: Marshall Thompson Date: Tue, 15 Nov 2022 09:24:37 -0700 Subject: [PATCH] docs(typo): fix variable name in query resolver --- docs/api/schema/resolvers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/schema/resolvers.md b/docs/api/schema/resolvers.md index 17a9d3b561..f107c087db 100644 --- a/docs/api/schema/resolvers.md +++ b/docs/api/schema/resolvers.md @@ -293,7 +293,7 @@ export type UserQuery = Static export const userQueryResolver = resolve({ properties: { // If there is an authenticated user, they can only see their own data - id: async (value, user, context) => { + id: async (value, query, context) => { if (context.params.user) { return context.params.user.id }