Skip to content

rule to require selecting __typename #1159

@joshribakoff-sm

Description

@joshribakoff-sm

graphql-codegen generates types that imply __typename will always be present, but that's only the case if you actually fetch that field. Therefore, it would be nice to have a lint rule that forces all queries to select __typename on every type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions