Query
query Consumable($id: Int!) {
consumable(id: $id) {
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
}
}
}Variables
{
"id": 1
}Response
{
"data": {
"consumable": {
"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
consumable
Returns one consumable.
QUERY
consumable(id: Int!): ConsumableArguments
id
Int!
required
Id of the consumable to return.
Returns
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 Consumable($id: Int!) {
consumable(id: $id) {
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
}
}
}Variables
{
"id": 1
}Response
{
"data": {
"consumable": {
"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
}
]
}
}
}