Relay Connections
Migration guide for the breaking change from simple list fields to Relay-style Connection objects
Overview
What Changed
type Group {
users: [User!]
roles: [Role!]
}type Group {
users(
after: Cursor
first: Int
before: Cursor
last: Int
orderBy: UserOrder
where: UserWhereInput
): UserConnection!
roles(
after: Cursor
first: Int
before: Cursor
last: Int
orderBy: RoleOrder
where: RoleWhereInput
): RoleConnection!
}Affected Relationship Fields
Inventory Service
Type
Field
Connection Type
Management Service
Type
Field
Connection Type
Receiving Service
Type
Field
Connection Type
Workflow Service
Type
Field
Connection Type
Connection Object Structure
Migration Steps
Step 1: Update Query Structure
Step 2: Update Response Handling
Step 3: Implement Pagination (Optional)
Step 4: Add Filtering and Ordering (Optional)
Complete Migration Examples
Example 1: InventoryItemSet with Items
Example 2: ReceivingInbound with InboundItems
Example 3: Workflow with Signals
Example 4: Role with Users, Groups, and Policies
Benefits of This Change
Troubleshooting
Error: Cannot query field "edges" on type "[User!]"
Error: Cannot query field "totalCount"
Performance Considerations
Related Documentation
Last updated
Was this helpful?
