-
-
Notifications
You must be signed in to change notification settings - Fork 670
Open
Labels
Community 👨👧Something initiated by a communitySomething initiated by a communityNeed More Info 🤷♂️Further information is requestedFurther information is requestedQuestion ❔Not future request, proposal or bug issueNot future request, proposal or bug issue
Description
Describe the issue
I did read the docs but could not find any feature to conditionally hide a field.
I have a simple use case, Each user in my DB has a email, now in some cases I want to return it in Graphql response and in some not, what is the best way to implement it?
Should that be done just in the resolver, or is there a type-graphql Decorator to hide a field conditionally?
Or maybe I should use a FieldResolver and it will override the original return with what I want?
Metadata
Metadata
Assignees
Labels
Community 👨👧Something initiated by a communitySomething initiated by a communityNeed More Info 🤷♂️Further information is requestedFurther information is requestedQuestion ❔Not future request, proposal or bug issueNot future request, proposal or bug issue