Mutations
Create
// Create a new project and return the ID
mutation {
createproject(title:"Analyze office layout", projectNumber:1124) {
_id
}}Persist (create many / batch create)
// Creating 3 cars with persistCar
// Note that default values defined on the Object Class Properties will be used,
// and the _id will be auto generated, unless any of these are overridden below
mutation{
persistCar(
objects: [
{
brand: "Skoda",
model: "Enyaq"
},
{
brand: "Honda",
model: "Civic"
},
{
brand: "Ferrari",
model: "F40"
}
]
)
}Update
Delete
Generate Random Identifiers
Last updated
Was this helpful?