Interfaces
GraphQL interfaces that define shared contracts across multiple types
Audience: Programmer
GraphQL interfaces are abstract types that define a set of fields that multiple object types can implement. They enable polymorphic queries and ensure consistent field definitions across related types.
Available Interfaces
Core Interfaces
Node - Base interface for all entities with unique identifiers
NodeAttachments - Interface for entities that support file attachments
NodeDataType - Interface for entities with data type classification
NodeInventory - Interface for inventory-related entities
NodePicking - Interface for picking-related entities
NodeReceiving - Interface for receiving-related entities
NodeWorkflowService - Interface for workflow-enabled entities
Common Patterns
WithCustomData - Entities with JSON data fields
WithTenant - Multi-tenant capable entities
WithMovement - Entities that support movements
WithWorkflows - Workflow-enabled entities
Notifiable - Entities that can send notifications
Searchable - Full-text searchable entities
Usage
Interfaces enable you to write queries that work across multiple types:
Benefits
Type Safety - Ensures consistent field definitions
Polymorphism - Query multiple types with a single interface
Code Reuse - Share common field definitions
Extensibility - Easy to add new types that implement existing interfaces
See Also
Types - Concrete implementations of interfaces
Schema Overview - Overall GraphQL schema structure
Last updated
Was this helpful?
