Schema Documentation
shippingClasses
Description
Connection between the RootQuery type and the shippingClass type
Response
Returns a
RootQueryToShippingClassConnection
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 -
RootQueryToShippingClassConnectionWhereArgs | Arguments for filtering the connection |
Example
Query
query shippingClasses(
$first: Int,$last: Int,$after: String,$before: String,$where: RootQueryToShippingClassConnectionWhereArgs
){
shippingClasses(
first: $first,
last: $last,
after: $after,
before: $before,
where: $where
){
edges {
...RootQueryToShippingClassConnectionEdgeFragment
}nodes {
...ShippingClassFragment
}pageInfo {
...WPPageInfoFragment
}
}
}
Variables
{"first":987,"last":987,"after":"abc123","before":"xyz789","where":RootQueryToShippingClassConnectionWhereArgs}
Response
{"data":{"shippingClasses":{"edges":[RootQueryToShippingClassConnectionEdge],"nodes":[ShippingClass],"pageInfo":WPPageInfo}}}