Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Update mutation naming to be nounVerb instead of verbNoun #26

@trabianmatt

Description

@trabianmatt

This was mentioned in a GraphQL design tutorial that Shopify put out and makes sense to me:

First a quick note on naming: you'll notice that we named all of our mutations in the form collection rather than the more naturally-English Collection. Unfortunately, GraphQL does not provide a method for grouping or otherwise organizing mutations, so we are forced into alphabetization as a workaround. Putting the core type first ensures that all of the related mutations group together in the final list.

Rule #17: Prefix mutation names with the object they are mutating for alphabetical grouping (e.g. use orderCancel instead of cancelOrder).

Let's update the mutation names within this project, both the schemas within graphql-types and in the packages leveraging those schemas (a find-and-replace should work).

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