Open mmahalwy opened 1 year ago
unless this makes it into Graphql itself it probably doesn't make sense for core, but as a plugin this could be cool! I probably wouldn't have time to prioritize building it myself of a while, but definitely open to a PR (and would be more than happy to help out on figuring out how to implement it).
I dont think its part of the graphql spec, so this would be mostly a helper but would be great to have a
defaultValue
option on fields instead of having to write a resolver to handle.For example:
can become:
It could be a plugin where we have