mutation CreateChemical($chemical: ChemicalInput!) {
createChemical(chemical: $chemical) {
casNumber
chemicalAdditionalDetails {
details
id
}
id
inventoryNotes {
author {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
authorId
id
note
section
}
manufacturer
name
}
}{
"chemical": {
"manufacturer": "string",
"name": "string",
"type": [
"string"
]
}
}{
"data": {
"createChemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"details": "value",
"id": 1
},
"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"
}
}
}createChemical
Adds a chemical to the catalog and returns it. Returns the existing chemical instead when one with the same name and manufacturer already exists.
createChemical(chemical: ChemicalInput!): Chemical!Arguments
The chemical to add.
Returns
CAS Registry Number, or 'various' when the safety data sheet lists none.
Extra fields the organization keeps about the chemical.
Id of the chemical.
The organization's notes on the chemical. Empty if there are no notes.
Manufacturer or supplier.
Product name.
Manufacturer's catalog or product code.
Hazards, components and handling requirements from the chemical's safety data sheet.
Id of the chemical's safety data sheet, as returned by chemicalSearch.
Link to the chemical's safety data sheet.
The organization's in-stock containers of the chemical. Empty if there are no containers in stock.
Tags derived from the safety data sheet. Empty if there are no tags.
Types the chemical is filed under. Empty if there are no types.
Grade or form that distinguishes the product from others with the same name.
mutation CreateChemical($chemical: ChemicalInput!) {
createChemical(chemical: $chemical) {
casNumber
chemicalAdditionalDetails {
details
id
}
id
inventoryNotes {
author {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
authorId
id
note
section
}
manufacturer
name
}
}{
"chemical": {
"manufacturer": "string",
"name": "string",
"type": [
"string"
]
}
}{
"data": {
"createChemical": {
"casNumber": "string",
"chemicalAdditionalDetails": {
"details": "value",
"id": 1
},
"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"
}
}
}