query {
Option (id: 100012) {
id
label
}
}
query {
Options {
data {
id
label
}
}
}
id - Int |
---|
Unique identifier of the option |
label - String |
---|
Title of the option |
attributes - Array of Attribute - Subquery |
---|
Attributes of the option |
You can create filters based on following fields
label |
---|
Example:{ "column" : "LABEL", "operator" : "EQ", "value" : "color" } |
You can sort data based on following fields : id, label
query Options($where: QueryOptionsWhereWhereConditions, $first: Int = 10, $page: Int, $trashed: Trashed) {
Options(where: $where, first: $first, page: $page, trashed: $trashed) {
paginatorInfo {
total
count
currentPage
perPage
}
data {
id
label
attributes {
paginatorInfo {
total
}
}
}
}
}
{
"first": 10,
"page": 1,
"where": {
"AND": [
{
"AND": [
{
"column": "LABEL",
"operator": "LIKE",
"value": "%olor%"
}
]
}
]
}
}
{
"data": {
"Options": {
"paginatorInfo": {
"total": 1,
"count": 1,
"currentPage": 1,
"perPage": 10
},
"data": [
{
"id": 100000,
"label": "Color",
"attributes": {
"paginatorInfo": {
"total": 6
}
}
}
]
}
}
}