Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix support for inline arguments (#702)

authored by

Andy Richardson and committed by
GitHub
17b22479 bc655e43

+3 -3
+3 -3
packages/react-urql/examples/1-getting-started/src/graphql/index.ts
··· 39 39 .objectStore('todos') 40 40 .getAll(); 41 41 }, 42 - toggleTodo: async (root: any, { id }: any) => { 42 + toggleTodo: async ({ id }: any) => { 43 43 const db = await database; 44 44 const txTodos = db.transaction(['todos'], 'readwrite').objectStore('todos'); 45 45 ··· 51 51 52 52 return newTodo; 53 53 }, 54 - addTodo: async (root: any, args: any) => { 54 + addTodo: async (args: any) => { 55 55 const db = await database; 56 56 const txTodos = db.transaction(['todos'], 'readwrite').objectStore('todos'); 57 57 ··· 61 61 62 62 return todo; 63 63 }, 64 - deleteTodo: async (root: any, { id }: any) => { 64 + deleteTodo: async ({ id }: any) => { 65 65 const db = await database; 66 66 const txTodos = db.transaction(['todos'], 'readwrite').objectStore('todos'); 67 67