AstrumU / graphql-authz

GraphQL authorization layer
Other
180 stars 10 forks source link

Provide a way to return null (or other value) when an authz check fails #68

Open blevine opened 2 years ago

blevine commented 2 years ago

I'd like to be able to return null (or other specified value) for a field when the authz check fails.

See https://github.com/AstrumU/graphql-authz/discussions/65#discussion-3866317

velias commented 1 year ago

Agree, there should be possibility to return null for the field with error noted in the error section of response, but return other fields still (aka partial response)