Skip to main content
MUTATION
updateStock(stockId: Int!, updates: StockUpdateInput!): Stock!

Arguments

stockId
Int!
required

Id of the stock entry to edit.

updates

The changes to apply to the stock entry.

Returns

batchLotId
String

Batch or lot number of the containers.

biological

The biological the containers hold, when the entry is for a biological.

biologicalId
Int

Id of the biological the containers hold, when the entry is for a biological.

chemical

The chemical the containers hold, when the entry is for a chemical.

chemicalId
Int

Id of the chemical the containers hold, when the entry is for a chemical.

consumableId
Int

Id of the consumable the containers hold, when the entry is for a consumable.

container
String

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).

containerVol
Float

Amount held by each container, in unit.

created_at
DateTime!

When the stock entry was added.

expires_at
DateTime

When the containers expire.

id
Int!

Id of the stock entry.

location

The location where the containers are kept.

locationId
Int!

Id of the location where the containers are kept.

owner
String

Name of the person or group the containers belong to.

quantity
Float!

Number of containers.

sublocation

The sublocation within the location where the containers are kept.

sublocationId
Int

Id of the sublocation within the location where the containers are kept.

unit
String

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
Variables
Response