Mutation
mutation EditConsumable($consumableId: Int!, $input: EditConsumableInput!) {
editConsumable(consumableId: $consumableId, input: $input) {
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
{
"consumableId": 1,
"input": {}
}Response
{
"data": {
"editConsumable": {
"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
}
]
}
}
}Mutations
editConsumable
Edits a consumable and returns it.
MUTATION
editConsumable(consumableId: Int!, input: EditConsumableInput!): Consumable!Arguments
consumableId
Int!
required
Id of the consumable to edit.
input
required
The changes to apply to the consumable.
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.
Mutation
mutation EditConsumable($consumableId: Int!, $input: EditConsumableInput!) {
editConsumable(consumableId: $consumableId, input: $input) {
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
{
"consumableId": 1,
"input": {}
}Response
{
"data": {
"editConsumable": {
"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
}
]
}
}
}