Schema Documentation
productTypes
Description
Connection between the RootQuery type and the productType type
Response
Returns a RootQueryToProductTypeConnection
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 - RootQueryToProductTypeConnectionWhereArgs | Arguments for filtering the connection |
Example
Query
query productTypes( $first: Int,$last: Int,$after: String,$before: String,$where: RootQueryToProductTypeConnectionWhereArgs){ productTypes( first: $first, last: $last, after: $after, before: $before, where: $where ){ edges { ...RootQueryToProductTypeConnectionEdgeFragment }nodes { ...ProductTypeFragment }pageInfo { ...RootQueryToProductTypeConnectionPageInfoFragment } }}
Variables
{"first":987,"last":123,"after":"xyz789","before":"xyz789","where":RootQueryToProductTypeConnectionWhereArgs}
Response
{"data":{"productTypes":{"edges":[RootQueryToProductTypeConnectionEdge],"nodes":[ProductType],"pageInfo":RootQueryToProductTypeConnectionPageInfo}}}