We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86aec87 commit 946c8adCopy full SHA for 946c8ad
README.md
@@ -57,6 +57,7 @@ In your component:
57
## Possible options:
58
59
- `database` (required): The Vuex-ORM database.
60
+- `url` (optional, default: '/graphql'): The URL to the graphql api. Will be passed to apollo-client.
61
- `debug` (optional, default: false): Set to true to activate the debug logging.
62
63
src/vuex-orm-apollo.ts
@@ -45,7 +45,7 @@ export default class VuexORMApollo {
45
this.setupMethods();
46
47
this.httpLink = new HttpLink({
48
- uri: '/graphql'
+ uri: options.url ? options.url : '/graphql'
49
});
50
51
this.apolloClient = new ApolloClient({
0 commit comments