daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Click the orange "Play" button and select the createColorCommand
  2. # mutation to create an object in DynamoDB.
  3. # If you see an error that starts with "Unable to assume role",
  4. # wait a moment and try again.
  5. mutation createColorCommand($createcolorcommandinput: CreateColorCommandInput!) {
  6.   createColorCommand(input: $createcolorcommandinput) {
  7.     id
  8.     timestamp
  9.     color
  10.   }
  11. }
  12.  
  13.  
  14. # After running createColorCommand, try running the listColorCommands query.
  15. query listColorCommands {
  16.   listColorCommands {
  17.     items {
  18.       id
  19.       timestamp
  20.       color
  21.     }
  22.   }
  23. }
  24.  
  25. subscription onCreate {
  26.   onCreateColorCommand {
  27.     id
  28.     timestamp
  29.     color
  30.   }
  31. }
  32.  
  33. // query variables
  34. {
  35.   "createcolorcommandinput": {
  36.     "id": "RU6T90JB8HBUJL1wzNML3ZF5HijG6YbY",
  37.     "timestamp": "Hello, world!",
  38.     "color": "Hello, world!"
  39.   }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top