Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- }
- ]
- }
- })
Add Comment
Please, Sign In to add comment