Skip to content

Commit

Permalink
docs(typo): fix variable name in query resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Nov 18, 2022
1 parent b341703 commit e434570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/schema/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export type UserQuery = Static<typeof userQuerySchema>
export const userQueryResolver = resolve<UserQuery, HookContext>({
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
}
Expand Down

0 comments on commit e434570

Please sign in to comment.