- Use PascalCase for the names of Types, Enums, Interfaces, Scalars, and Unions and Input Types.
- Use camelCase for Field names, Argument names, and Directive names.
- Use SNAKE_CASE for Enum values.
Use the suffix "Input" for Input types.(this caused argument and we ended up dropping it)- Use singular for Type names E.g. User, not Users.. Pet, not Pets
- Mutation fields should start with the "action" .. createCustomer, deleteCustomer, etc.
- Query and Subscription fields should not start with the "action" .. no "getCustomers" or "getCustomer" .. just "customers" and "customer"
- Query and Subscription fields should indicate if a single object or a collection is expected in response "customer" gets one customer. "customers" gets a collection of customer objects.
- Any names/identifiers starting with
__
(double underscore) are reserved by the GraphQL specification
Created
February 20, 2023 21:20
-
-
Save carloseberhardt/7b404a8449698c955871c5d75b616eba to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment