Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Click the orange "Play" button and select the createColorCommand
- # mutation to create an object in DynamoDB.
- # If you see an error that starts with "Unable to assume role",
- # wait a moment and try again.
- mutation createColorCommand($createcolorcommandinput: CreateColorCommandInput!) {
- createColorCommand(input: $createcolorcommandinput) {
- id
- timestamp
- color
- }
- }
- # After running createColorCommand, try running the listColorCommands query.
- query listColorCommands {
- listColorCommands {
- items {
- id
- timestamp
- color
- }
- }
- }
- subscription onCreate {
- onCreateColorCommand {
- id
- timestamp
- color
- }
- }
- // query variables
- {
- "createcolorcommandinput": {
- "id": "RU6T90JB8HBUJL1wzNML3ZF5HijG6YbY",
- "timestamp": "Hello, world!",
- "color": "Hello, world!"
- }
- }
Add Comment
Please, Sign In to add comment