We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb44ec commit 0b7b7baCopy full SHA for 0b7b7ba
docs/api/schema/resolvers.md
@@ -293,7 +293,7 @@ export type UserQuery = Static<typeof userQuerySchema>
293
export const userQueryResolver = resolve<UserQuery, HookContext>({
294
properties: {
295
// If there is an authenticated user, they can only see their own data
296
- id: async (value, user, context) => {
+ id: async (value, query, context) => {
297
if (context.params.user) {
298
return context.params.user.id
299
}
0 commit comments