relay-connection-types
Set of rules to follow Relay specification for Connection types.
- Category:
Schema - Rule name:
@graphql-eslint/relay-connection-types - Requires GraphQL Schema:
falseℹ️ - Requires GraphQL Operations:
falseℹ️
Set of rules to follow Relay specification for Connection types.
- Any type whose name ends in “Connection” is considered by spec to be a
Connection type - Connection type must be an Object type
- Connection type must contain a field
edgesthat return a list type that wraps an edge type - Connection type must contain a field
pageInfothat return a non-nullPageInfoObject type