Last active
April 5, 2020 14:13
-
-
Save smolinari/3f2fd7120cb25ebfb76f0eeee4cf389f to your computer and use it in GitHub Desktop.
Apollo Client Hooks from Quasar Apollo
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
apolloClientConfigObj.cache.writeData({ | |
data: { | |
todos: [], | |
networkStatus: { | |
__typename: 'NetworkStatus', | |
isConnected: false | |
}, | |
filters: [ | |
{ | |
name: 'SHOW_ALL', | |
label: 'All', | |
active: true, | |
__typename: 'Filter' | |
}, | |
{ | |
name: 'SHOW_COMPLETED', | |
label: 'Completed', | |
active: false, | |
__typename: 'Filter' | |
}, | |
{ | |
name: 'SHOW_ACTIVE', | |
label: 'Active', | |
active: false, | |
__typename: 'Filter' | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment