mutation AddStock($stock: StockInput!) {
addStock(stock: $stock) {
batchLotId
biological {
biologicalDetails {
additionalDetails {
__typename
}
batchLotId
creation
disinfection
disposal
exposurePpe {
__typename
}
}
bsl
concentration
id
inventoryNotes {
author {
__typename
}
authorId
id
note
section
}
name
}
biologicalId
chemical {
casNumber
chemicalAdditionalDetails {
details
id
}
id
inventoryNotes {
author {
__typename
}
authorId
id
note
section
}
manufacturer
name
}
chemicalId
consumableId
}
}{
"stock": {
"quantity": 1
}
}{
"data": {
"addStock": {
"batchLotId": "string",
"biological": {
"biologicalDetails": {
"additionalDetails": [
{
"__typename": "BiologicalDetailField"
}
],
"batchLotId": "string",
"creation": "string",
"disinfection": "string",
"disposal": "string",
"exposurePpe": [
{
"__typename": "ProtectionRequirement"
}
]
},
"bsl": 1,
"concentration": "string",
"id": 1,
"inventoryNotes": [
{
"author": {
"__typename": "User"
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"name": "string"
},
"biologicalId": 1,
"chemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"details": "value",
"id": 1
},
"id": 1,
"inventoryNotes": [
{
"author": {
"__typename": "User"
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"manufacturer": "string",
"name": "string"
},
"chemicalId": 1,
"consumableId": 1
}
}
}addStock
Adds a stock entry for a chemical, biological or consumable and returns it.
addStock(biologicalId: Int, chemicalId: Int, consumableId: Int, stock: StockInput!): Stock!Arguments
Id of the biological to add the stock entry for; set one of chemicalId, biologicalId or consumableId.
Id of the chemical to add the stock entry for; set one of chemicalId, biologicalId or consumableId.
Id of the consumable to add the stock entry for; set one of chemicalId, biologicalId or consumableId.
The stock entry to add.
Returns
Batch or lot number of the containers.
The biological the containers hold, when the entry is for a biological.
Id of the biological the containers hold, when the entry is for a biological.
The chemical the containers hold, when the entry is for a chemical.
Id of the chemical the containers hold, when the entry is for a chemical.
Id of the consumable the containers hold, when the entry is for a consumable.
Kind of container, one of 'bottle' (bottle), 'tube' (tube), 'vial' (vial), 'box' (box), 'kit' (kit), 'cryovial' (cryovial), 'tissueCassette' (tissue cassette), 'microcentrifugeTube' (microcentrifuge tube) or 'screwCapTube' (screw cap tube).
Amount held by each container, in unit.
When the stock entry was added.
When the containers expire.
Id of the stock entry.
The location where the containers are kept.
Id of the location where the containers are kept.
Name of the person or group the containers belong to.
Number of containers.
The sublocation within the location where the containers are kept.
Id of the sublocation within the location where the containers are kept.
Unit of containerVol, one of 'milliliters' (milliliters), 'grams' (grams), 'kilograms' (kilograms), 'pounds' (pounds), 'gallons' (gallons), 'liters' (liters), 'kits' (kits), 'ounces' (ounces), 'micrograms' (micrograms), 'nanomoles' (nanomoles), 'microliters' (microliters) or 'milligrams' (milligrams).
mutation AddStock($stock: StockInput!) {
addStock(stock: $stock) {
batchLotId
biological {
biologicalDetails {
additionalDetails {
__typename
}
batchLotId
creation
disinfection
disposal
exposurePpe {
__typename
}
}
bsl
concentration
id
inventoryNotes {
author {
__typename
}
authorId
id
note
section
}
name
}
biologicalId
chemical {
casNumber
chemicalAdditionalDetails {
details
id
}
id
inventoryNotes {
author {
__typename
}
authorId
id
note
section
}
manufacturer
name
}
chemicalId
consumableId
}
}{
"stock": {
"quantity": 1
}
}{
"data": {
"addStock": {
"batchLotId": "string",
"biological": {
"biologicalDetails": {
"additionalDetails": [
{
"__typename": "BiologicalDetailField"
}
],
"batchLotId": "string",
"creation": "string",
"disinfection": "string",
"disposal": "string",
"exposurePpe": [
{
"__typename": "ProtectionRequirement"
}
]
},
"bsl": 1,
"concentration": "string",
"id": 1,
"inventoryNotes": [
{
"author": {
"__typename": "User"
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"name": "string"
},
"biologicalId": 1,
"chemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"details": "value",
"id": 1
},
"id": 1,
"inventoryNotes": [
{
"author": {
"__typename": "User"
},
"authorId": "string",
"id": 1,
"note": "string",
"section": "string"
}
],
"manufacturer": "string",
"name": "string"
},
"chemicalId": 1,
"consumableId": 1
}
}
}