Open
Description
I've been looking into the docs on the avoidOptionals
config option and have found it difficult to understand the exact meaning of each of the sub-options when providing a AvoidOptionalsConfig
object (defined here) as the value.
Here's how I understand the options:
field
: Field of a type (using the GraphQLtype
declaration).inputValue
: Fields on a GraphQLinput
type. Though I did have to double check that this did not refer to variable inputs for queries/mutations.object
: No idea.defaultValue
: I think this would be when setting a default value for a query/mutation. Not sure, but also I haven't used a default value on a query/mutation in my codebase.resolvers
: (Not listed in docs) I think referring to client-side resolvers. Really not sure, but haven't used those in my codebase either.
Can someone who knows add docs about what each of these fields do? Thank you!