Skip to content

Instantly share code, notes, and snippets.

query GetHero {
hero(id: "CkhurmMjZW") {
id,
name,
createdAt,
updatedAt
}
}
query FindObject {
objects {
find(className: "Hero") {
count,
results
}
}
}
query FindObject {
objects {
find(className: "Hero") {
count,
results
}
}
}
query FindHero {
objects {
findHero {
count,
results {
objectId,
name,
createdAt,
updatedAt
}
query GetHero {
hero(objectId: "rR8jmFRnkS") {
objectId,
name,
createdAt,
updatedAt
}
}
query FindHero {
heroes{
count,
results {
id,
name,
createdAt,
updatedAt
}
}
mutation UpdateObject {
objects {
update(className: "Hero", objectId: "ffyOBOTk85", fields: { height: 5.6 }) {
updatedAt
}
}
}
mutation UpdateObject {
update(className: "Hero", objectId: "rR8jmFRnkS", fields: { height: 5.6 }) {
updatedAt
}
}
mutation UpdateHero {
objects {
updateHero(objectId: "jJH0aQQjfs", fields: { height: 3.6 }) {
updatedAt
}
}
}
mutation UpdateObject {
updateHero(objectId: "rR8jmFRnkS" fields:{
height: 5.6
}){
updatedAt
}
}