Queries
bulkModels
Retrieves Models in bulk - with one-to-one input and output semantics, allowing for direct mapping of data.
Template for Query:
query GetBulkModels($input: [BulkModelsQueryInput!]!) {
bulkModels(input: $input) {
# BulkModelsQueryResponse Fields
}
}
Arguments
| input* [BulkModelsQueryInput!]! non-null | An array of model query inputs specifying the models to retrieve. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| [BulkModelsQueryResponse] |
Examples
Example 1
Retrieves Models in bulk - with one-to-one input and output semantics, allowing for direct mapping of data.
Query:
query GetBulkModels($input: [BulkModelsQueryInput!]!) {
bulkModels(input: $input) {
model{
id
name{
name
value
}
}
}
}
Show More
Query Variables:
{
"input" : [
{
"modelId":"bW9kZWx-OWFiTWNGeEtnaFB5Y3d1TW9hR05pa19MMkN-cU9Wd3FxVk15YWUzZ09lTEk5MXJvQV9hZ2E"
},
{
"modelId":"bW9kZWx-OWFiTWNGeEtnaFB5Y3d1TW9hR05pa19MMkN-b3ltMUpMTUlSajZPcVM3aWxZNzZNZl9hZ2E"
}
]
}
Show More
Response:
{
"data": {
"bulkModels": [
{
"model": {
"id": "bW9kZWx-OWFiTWNGeEtnaFB5Y3d1TW9hR05pa19MMkN-cU9Wd3FxVk15YWUzZ09lTEk5MXJvQV9hZ2E",
"name": {
"name": "modelName",
"value": "Frother Mechanism"
}
}
},
{
"model": {
"id": "bW9kZWx-OWFiTWNGeEtnaFB5Y3d1TW9hR05pa19MMkN-b3ltMUpMTUlSajZPcVM3aWxZNzZNZl9hZ2E",
"name": {
"name": "modelName",
"value": "Knob v7"
}
}
}
]
}
}
Show More