enhancementgood first issue
Repository metrics
- Stars
- (2,609 stars)
- PR merge metrics
- (PR metrics pending)
Description
Hey, I noticed that while you can use both withAuth and authScopes on the same field, it does not actually combine declarations despite what type declarations lead to think
Example:
builder.mutationField('updateUserPropery', (t) =>
t.withAuth({ user: true }).boolean({
authScopes(_, args, context) {
// Here `context` will be typed according to `AuthContexts`
// but `{ user: true }` will be overwritten by this function
},
resolve() {
// ...
}
})
)
Instead, I'd like both { user: true } and authScopes(){} to be merged