-
-
Notifications
You must be signed in to change notification settings - Fork 523
Closed
Labels
Description
data () {
return {
me: {
name: null
}
}
},
apollo: {
me: gql`{
me {
name
}
}`
}name remains null after the query. I can access the data but only with $data.$apolloData.data.me.name which seems like the wrong way.
If I remove the me {} property from data() then I get the following error:
TypeError: Cannot read property 'hasOwnProperty' of undefined
at _loop (vue-apollo.esm.js?ebd5:3924)
at VueComponent.launch (vue-apollo.esm.js?ebd5:3938)
at callHook (vue.runtime.esm.js?ff9b:2917)
at VueComponent.Vue._init (vue.runtime.esm.js?ff9b:4626)
at new VueComponent (vue.runtime.esm.js?ff9b:4794)
at createComponentInstanceForVnode (vue.runtime.esm.js?ff9b:4306)
at init (vue.runtime.esm.js?ff9b:4127)
at createComponent (vue.runtime.esm.js?ff9b:5604)
at createElm (vue.runtime.esm.js?ff9b:5551)
at VueComponent.patch [as __patch__] (vue.runtime.esm.js?ff9b:6087)
I just started this project with vue-cli 3 and added apollo with vue-cli.
I've disabled subscriptions.
chatondearu, jasonrm, binzcodes, orocancourt and caseycs