Skip to content

Gql document naming pattern #15

Description

@lorensr

Atm we have:

  • all caps
  • end with the operation, eg STARS_QUERY, FAVORITE_MUTATION
const DELETE_REVIEW_MUTATION = gql`
  mutation DeleteReview($id: ObjID!) {
    removeReview(id: $id)
  }
`

What do we think about dropping the operation from the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions