Query
query Consumables {
consumables {
id
inventoryNotes {
author {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
authorId
id
note
section
}
manufacturer
name
productCode
stocks {
batchLotId
biological {
biologicalDetails {
__typename
}
bsl
concentration
id
inventoryNotes {
__typename
}
name
}
biologicalId
chemical {
casNumber
chemicalAdditionalDetails {
__typename
}
id
inventoryNotes {
__typename
}
manufacturer
name
}
chemicalId
consumableId
}
}
}Response
{
"data": {
"consumables": [
{
"id": 1,
"inventoryNotes": [
{
"author": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"manufacturer": "string",
"name": "string",
"productCode": "string",
"stocks": [
{
"batchLotId": "string",
"biological": {
"biologicalDetails": {
"__typename": "BiologicalDetails"
},
"bsl": 1,
"concentration": "string",
"id": 1,
"inventoryNotes": [
{
"__typename": "InventoryNote"
}
],
"name": "string"
},
"biologicalId": 1,
"chemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"__typename": "ChemicalAdditionalDetails"
},
"id": 1,
"inventoryNotes": [
{
"__typename": "InventoryNote"
}
],
"manufacturer": "string",
"name": "string"
},
"chemicalId": 1,
"consumableId": 1
}
]
}
]
}
}Queries
consumables
Returns consumables. Empty if there are no matching consumables.
QUERY
consumables(inStock: Boolean, search: String): [Consumable!]!Arguments
inStock
Boolean
When true, only consumables in the organization's inventory, including ones whose containers are empty.
search
String
Text to match against name or type.
Returns
[Consumable!]!
id
Int!
Id of the consumable.
inventoryNotes
The organization's safe-handling notes on the consumable. Empty if there are no notes.
manufacturer
String
Manufacturer of the consumable.
name
String!
Name of the consumable.
productCode
String
Manufacturer's product code of the consumable.
stocks
[Stock]
The organization's stock entries of the consumable that still have containers. Empty if there are no stock entries.
type
String
Free-text category of the consumable.
Query
query Consumables {
consumables {
id
inventoryNotes {
author {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
authorId
id
note
section
}
manufacturer
name
productCode
stocks {
batchLotId
biological {
biologicalDetails {
__typename
}
bsl
concentration
id
inventoryNotes {
__typename
}
name
}
biologicalId
chemical {
casNumber
chemicalAdditionalDetails {
__typename
}
id
inventoryNotes {
__typename
}
manufacturer
name
}
chemicalId
consumableId
}
}
}Response
{
"data": {
"consumables": [
{
"id": 1,
"inventoryNotes": [
{
"author": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"manufacturer": "string",
"name": "string",
"productCode": "string",
"stocks": [
{
"batchLotId": "string",
"biological": {
"biologicalDetails": {
"__typename": "BiologicalDetails"
},
"bsl": 1,
"concentration": "string",
"id": 1,
"inventoryNotes": [
{
"__typename": "InventoryNote"
}
],
"name": "string"
},
"biologicalId": 1,
"chemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"__typename": "ChemicalAdditionalDetails"
},
"id": 1,
"inventoryNotes": [
{
"__typename": "InventoryNote"
}
],
"manufacturer": "string",
"name": "string"
},
"chemicalId": 1,
"consumableId": 1
}
]
}
]
}
}