Guest User

Untitled

a guest
Aug 15th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. export const MUTATION_ADD = gql`
  2. mutation insertLotteryTicketsMutation ($objects: [lottery_tickets_input]){
  3. insert_lottery_tickets(objects: $objects) {
  4. affected_rows
  5. returning {
  6. id
  7. task
  8. completed
  9. }
  10. }
  11. }
  12. `
  13. client.mutate({
  14. mutation: MUTATION_ADD,
  15. variables: {
  16. objects: [
  17. {
  18. ticketId: 3,
  19. timestamp: '1533810845',
  20. openkey: '0xc8c3e8fd5edee41e4fbe60e339a1ad95c0eec829d9f5065037d3368e2a78eca4',
  21. numbers: '11,12,13,14,15'
  22. }
  23. ]
  24. }
  25. })
Add Comment
Please, Sign In to add comment