debian-mirror-gitlab/app/assets/javascripts/work_items/graphql/provider.js
2022-06-21 17:19:12 +05:30

13 lines
273 B
JavaScript

import Vue from 'vue';
import VueApollo from 'vue-apollo';
import createDefaultClient from '~/lib/graphql';
export function createApolloProvider() {
Vue.use(VueApollo);
const defaultClient = createDefaultClient();
return new VueApollo({
defaultClient,
});
}