Get All Orders by a Customer
With the Crystallize Order API, you can retrieve all the orders made by a particular customer. This section will show you how.
The Order API uses cursor-based pagination. A cursor can be defined as a pointer that’s generally an ID representing a specific location in a list. GraphQL uses the concept of connections for this purpose.
The query above contains the following:
- edges: contains a list of OrderConnectionEdge types.
- node: the object containing the information about an order.
- cursor: a string specifying the location of an item in the list.
- pageInfo: this contains fields such as hasNextPage, hasPreviousPage, endCursor, startCursor, and totalNodes.