3

I'm trying to consume a remote GraphQL API from Vue using the apollo-client library and having trouble. I get:

Error in created hook: "TypeError: Cannot read property 'watchQuery' of undefined"

Code is on github at https://github.com/odessa-paige-turner/vue-apollo-graphql

Have you used Apollo? What has been your experience with it? Any help appreciated.

1 Answer 1

1

I solved this by using the plugin (vue add apollo) rather than the manual installation. Then I used the Usage in Vue Components guide to do the rest.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.