Allow users to override the resolver name using a reflect tag #597
pavelnikolov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a reflect tag for struct fields. The reflect tag would allow people to override the name of the resolved field in the schema. For example:
and then a resolver like this:
The above would allow users to override the name of any field, similar to the
json
package in the standard lib.I need feedback about the name of the tag.
Should I name it
graphql
orgql
?Which one looks better:
or
?
Your feedback would be highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions