query getCars {
getAllCars {
id
model
year
company
}
}
query getCar {
getCar(id: "619779698be6e0dbf0e96369") {
id
model
year
company
}
}
mutation adddCar {
addCar(model: "Corvette Stingray", year: 2022, company: "Chevrolet"){
id
model
year
company
}
}
mutation removeCar {
removeCar(id: "619781fac105b71736f22450"){
id
model
year
company
}
}
mutation updateCar {
updateCar(id: "619779698be6e0dbf0e96369", model: "Mustang", year: 2020, company: "Ford") {
id
model
year
company
}
}