This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateObject { | |
objects { | |
create(className: "Hero", fields: { name: "Luke Skywalker" }) { | |
objectId, | |
createdAt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateObject { | |
create(className: "Hero" fields:{ | |
name: "Luke Skywalker" | |
}){ | |
objectId | |
createdAt | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateClass { | |
createClass( | |
name: "Hero" | |
schemaFields: { | |
addStrings: [{name: "name"}] | |
addNumbers: [{name: "height"}] | |
}){ | |
schemaFields{ | |
name | |
__typename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateHero { | |
objects { | |
createHero(fields: { name: "R2-D2" }) { | |
objectId, | |
createdAt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateHero { | |
createHero(fields: { name: "R2-D2" }) { | |
objectId, | |
createdAt | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateObject{ | |
createHero(fields:{ | |
name: "R2-D2" | |
}){ | |
id | |
createdAt | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetObject { | |
objects { | |
get(className: "Hero", objectId: "ffyOBOTk85") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetObject { | |
get(className: "Hero", objectId: "rR8jmFRnkS") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetHero { | |
objects { | |
getHero(objectId: "ffyOBOTk85") { | |
objectId, | |
name, | |
createdAt, | |
updatedAt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetHero { | |
hero(objectId: "rR8jmFRnkS") { | |
objectId, | |
name, | |
createdAt, | |
updatedAt | |
} | |
} |