query HsCodes(
$where: QueryHsCodesWhereWhereConditions,
$orderBy: [QueryHsCodesOrderByOrderByClause!]
) {
HsCodes(
where: $where
orderBy: $orderBy
) {
id
code
label
}
}
{
"where": {
"AND": [
{ "column": "CODE", "operator": "LIKE", "value": "84%" }
]
},
"orderBy": [
{ "column": "CODE", "order": "ASC" }
]
}
| Field | Type | Description |
|---|
id | ID | Unique identifier of the HS code. |
code | String | HS code number. |
label | String | Description of the HS code. |
You can create filters based on following fields
| id - ID |
|---|
Example: { "column": "ID", "operator": "EQ", "value": 100012 } |
| code - String |
|---|
Example: { "column": "CODE", "operator": "LIKE", "value": "84%" } |
| label - String |
|---|
Example: { "column": "LABEL", "operator": "LIKE", "value": "%machinery%" } |
You can sort data based on following fields: id, code, label
query SortHsCodes(
$where: QueryHsCodesWhereWhereConditions
) {
HsCodes(
where: $where
orderBy: [{ column: CODE, order: ASC }]
) {
id
code
label
}
}
{
"data": {
"HsCodes": [
{
"id": 100001,
"code": "8471.30.00",
"label": "Portable digital automatic data processing machines"
},
{
"id": 100002,
"code": "8471.41.00",
"label": "Digital automatic data processing machines"
}
]
}
}
| Field | Type | Description |
|---|
id | ID | Unique identifier of the HS code. |
code | String | HS code number. |
label | String | Description of the HS code. |
| Field | Type | Description |
|---|
id | ID! | HS code ID (required for updates). |
code | String | HS code number. |
label | String | Description of the HS code. |