GraphQL Mutations
How-to use mutations to insert data into the ObjectBox GraphQL database
Last updated
mutation putMultiple {
putTestEntity(
input: [
{simpleString: "banana"},
{simpleString: "orange"},
{simpleString: "banana"}
]) {
returning {
id
}
}
}mutation deleteById {
deleteTestEntity(ids: [1, 3, 4, 42]) {
id
}
}mutation deleteAll {
deleteTestEntity(all: true) {
id
}
}