vuex-orm / plugin-graphql

Vuex ORM persistence plugin to sync the store against a GraphQL API.
https://vuex-orm.github.io/plugin-graphql/
MIT License
227 stars 52 forks source link

Error: Couldn't find Type of name Mutation in the GraphQL Schema. #98

Open renestalder opened 5 years ago

renestalder commented 5 years ago

I've got the same error as documented in #84. The thing is, I don't have any mutations in my schema (as I have reading access to most data on the API).

Am I required to have mutations in the schema defined to make this plugin work? Or how can I get around this error?

The error comes up as soon as I try to fetch.

phortx commented 5 years ago

That's a good point. Mutations could be optional. Thanks for the advice!

Currently these are required. However I will try to patch that soo :)