Skip to content

Workflow for checking frontend graphql codegen #849

@aparrill-specterops

Description

@aparrill-specterops

The frontend uses the Apollo GraphQL client and graphql-codegen to access Hasura from the UI. We commit the generated source code to simplify deployment - otherwise we would need Hasura and the database running to build the UI. However, the generated source can become out-of-date if the database schema or hasura configuration changes, leading to errors in the UI.

We should add an action that runs the code generator and fails checking if it would make any code changes - indicating that the UI is out of sync with the schema.

See javascript/development.md for how to regenerate the graphql code. Hasura and the database will need to be running.

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