Skip to content

Documentation on specific options for avoidOptionals #7487

Open
@henrywoody

Description

@henrywoody

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 GraphQL type declaration).
  • inputValue: Fields on a GraphQL input 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelated to codegen core/clikind/questionImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions