Skip to content

Commit 0b7b7ba

Browse files
docs(typo): fix variable name in query resolver
1 parent 7bb44ec commit 0b7b7ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/schema/resolvers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export type UserQuery = Static<typeof userQuerySchema>
293293
export const userQueryResolver = resolve<UserQuery, HookContext>({
294294
properties: {
295295
// If there is an authenticated user, they can only see their own data
296-
id: async (value, user, context) => {
296+
id: async (value, query, context) => {
297297
if (context.params.user) {
298298
return context.params.user.id
299299
}

0 commit comments

Comments
 (0)