# Mutations
You should be able to check the schema to see all the possible mutations.
Here are some examples.
# Insert
mutation {
insertPost (data: {id: 123, title: "new post"}) {
id
title
}
}
# Bulk Insert
mutation {
bulkInsertPost(
data: [
{ id: 234567, title: "new post 1"}
{ id: 222222, title: "new post 2"}
]
) {
id
title
}
}
# Update
mutation {
updatePost(data: { id: 1, title: "new post 2"}) {
id
title
}
}
# Bulk Update
mutation {
bulkUpdatePost(
data: [
{ id: 1, title: "new post 2" }
{ id: 2, title: "new post 2" }
]
) {
id
title
}
}
# Delete
mutation {
deletePost(data: { id: 3 }) {
id
title
}
}
# Bulk delete
mutation {
bulkDeletePost(data: [{ id: 14 }, { id: 4 }, { id: 11111111111 }]) {
id
title
}
}
# Mutation without returning value
If you do not need any return value, use the meta field __typename.
mutation {
updatePost(data: { id: 1, title: "new post 2"}){__typename}
}