Mutation
mutation CreateConsumable($consumable: ConsumableInput!) {
createConsumable(consumable: $consumable) {
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
{
"consumable": {
"name": "string"
}
}Response
{
"data": {
"createConsumable": {
"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
createConsumable
Creates a consumable and returns it.
MUTATION
createConsumable(consumable: ConsumableInput!): Consumable!Arguments
consumable
required
The consumable to create.
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 CreateConsumable($consumable: ConsumableInput!) {
createConsumable(consumable: $consumable) {
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
{
"consumable": {
"name": "string"
}
}Response
{
"data": {
"createConsumable": {
"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
}
]
}
}
}