Search and filter

There are different ways you can search for products.

 

Text search

query q1 {
productsearch(query: "gkfi") {
    content {

    }
  }
}

 

UniversalTypes

Ask for access to the UniversalType Center. For the start, have a look at the list of most-used UniversalTypes.

UniversalTypes are a description language for building products by buildingSMART International. Each UniversalType has its own unique code.

Search for exactly one value. MT01-MPID is the manufacturer number.

query q1 {
productsearch(
universalTypes: {AND: {operator: EQ,
code: "MT01-MPID",
values: "00009479"}}) {
content {

}
}
}

Search for a property being set:

query q1 {
productsearch(universalTypes: {AND: {operator: IS_SET,
code: "ET05-TRST"}}) {
content {

}
}
}

Search for a number:

query q1 {
productsearch(universalTypes: {AND: {operator: GTE,
code: "ST05-LENG",
values: 2000,
unit: "QM-MILLIMETER"}}) {
content {

}
}
}

 

Content

Define what you want to be returned for each product within the block "content":

    content {
productDetails {
descriptions {
descriptionShort
}
}
features {
universalTypes {
code
value
unit {
code
}
}
}
}

 

Pagination

Depending on the number of total results, the query does not return all products at once but the first ten by default. Within the round brackets in you define how many products you want to be returned per page and the page index. 

The block "pageInfo" contains information about the total number of results and if there is a next page. .

query q1 {
productsearch(page: {page: 0, size: 10} query: "") {
content {

}
pageInfo {
hasNextPage
totalCount
}
}
}