InventoryItem Data Field
Migration guide for the breaking change from inventoryJSONData to the unified data field
Overview
What Changed
type InventoryItem {
id: ID!
sku: String!
inventoryJSONData: Map # Removed
# ... other fields
}type InventoryItem implements WithCustomData {
id: ID!
sku: String!
data: Map
# ... other fields
}Breaking Changes
Migration Steps
Step 1: Update GraphQL Queries
Step 2: Update Mutations
Step 3: Update Filter Queries
Step 4: Update Client Code
Complete Migration Examples
Example 1: Query with Custom Data
Example 2: Create Item with Custom Data
Example 3: Update Item Custom Data
Benefits of This Change
Filter Input Changes
Old Field Name
New Field Name
Troubleshooting
Error: Cannot query field "inventoryJSONData" on type "InventoryItem"
Error: Field "inventoryJSONDataHasKey" is not defined
Related Documentation
Last updated
Was this helpful?
