Skip to content

Instantly share code, notes, and snippets.

@smolinari
Last active April 5, 2020 14:13
Show Gist options
  • Save smolinari/3f2fd7120cb25ebfb76f0eeee4cf389f to your computer and use it in GitHub Desktop.
Save smolinari/3f2fd7120cb25ebfb76f0eeee4cf389f to your computer and use it in GitHub Desktop.
Apollo Client Hooks from Quasar Apollo
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