Created
August 15, 2018 12:27
-
-
Save andreystarkov/9ca6816a9565003ec9f27934ec2efc97 to your computer and use it in GitHub Desktop.
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
export const MUTATION_ADD = gql` | |
mutation insertLotteryTicketsMutation ($objects: [lottery_tickets_input]){ | |
insert_lottery_tickets(objects: $objects) { | |
affected_rows | |
returning { | |
id | |
task | |
completed | |
} | |
} | |
} | |
` | |
client.mutate({ | |
mutation: MUTATION_ADD, | |
variables: { | |
objects: [ | |
{ | |
ticketId: 3, | |
timestamp: '1533810845', | |
openkey: '0xc8c3e8fd5edee41e4fbe60e339a1ad95c0eec829d9f5065037d3368e2a78eca4', | |
numbers: '11,12,13,14,15' | |
} | |
] | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment