debian-mirror-gitlab/app/assets/javascripts/work_items/graphql/provider.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
273 B
JavaScript
Raw Normal View History

2021-12-11 22:18:48 +05:30
import Vue from 'vue';
import VueApollo from 'vue-apollo';
import createDefaultClient from '~/lib/graphql';
export function createApolloProvider() {
Vue.use(VueApollo);
2022-06-21 17:19:12 +05:30
const defaultClient = createDefaultClient();
2021-12-11 22:18:48 +05:30
return new VueApollo({
defaultClient,
});
}