Mutation
mutation UpdateChemicalInfo($chemicalId: Int!) {
updateChemicalInfo(chemicalId: $chemicalId)
}Variables
{
"chemicalId": 1
}Response
{
"data": {
"updateChemicalInfo": true
}
}Mutations
updateChemicalInfo
Edits the catalog details of a chemical and returns true.
MUTATION
updateChemicalInfo(casNumber: String, chemicalId: Int!, manufacturer: String, name: String, productCode: String, type: [String!]): Boolean!Arguments
casNumber
String
CAS number of the chemical.
chemicalId
Int!
required
Id of the chemical to edit.
manufacturer
String
Manufacturer of the chemical.
name
String
Name of the chemical.
productCode
String
Product code of the chemical.
type
[String!]
Types of the chemical. Set as an empty list if there are no types.
Returns
Boolean!
Mutation
mutation UpdateChemicalInfo($chemicalId: Int!) {
updateChemicalInfo(chemicalId: $chemicalId)
}Variables
{
"chemicalId": 1
}Response
{
"data": {
"updateChemicalInfo": true
}
}