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 authored Nov 15, 2022
1 parent 7bb44ec commit 0b7b7ba
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 0b7b7ba

Please # to comment.