Schema Documentation
customers
Description
Connection between the RootQuery type and the Customer type
Response
Returns a RootQueryToCustomerConnection
Arguments
Name | Description |
---|---|
first - Int | The number of items to return after the referenced "after" cursor |
last - Int | The number of items to return before the referenced "before" cursor |
after - String | Cursor used along with the "first" argument to reference where in the dataset to get data |
before - String | Cursor used along with the "last" argument to reference where in the dataset to get data |
where - RootQueryToCustomerConnectionWhereArgs | Arguments for filtering the connection |
Example
Query
query customers( $first: Int,$last: Int,$after: String,$before: String,$where: RootQueryToCustomerConnectionWhereArgs){ customers( first: $first, last: $last, after: $after, before: $before, where: $where ){ edges { ...RootQueryToCustomerConnectionEdgeFragment }nodes { ...CustomerFragment }pageInfo { ...RootQueryToCustomerConnectionPageInfoFragment } }}
Variables
{"first":123,"last":987,"after":"xyz789","before":"xyz789","where":RootQueryToCustomerConnectionWhereArgs}
Response
{"data":{"customers":{"edges":[RootQueryToCustomerConnectionEdge],"nodes":[Customer],"pageInfo":RootQueryToCustomerConnectionPageInfo}}}