Skip to content

Instantly share code, notes, and snippets.

@chaeyeonhan1225
Last active June 3, 2021 02:51
Show Gist options
  • Select an option

  • Save chaeyeonhan1225/8919e321b1a1943bed8313af916ce28c to your computer and use it in GitHub Desktop.

Select an option

Save chaeyeonhan1225/8919e321b1a1943bed8313af916ce28c to your computer and use it in GitHub Desktop.
apollo
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VueApollo from "vue-apollo";
import { apolloClient } from "./apolloClient";
Vue.config.productionTip = false;
const apolloProvider = new VueApollo({
defaultClient: apolloClient,
});
Vue.use(VueApollo);
new Vue({
router,
store,
apolloProvider,
render: (h) => h(App),
}).$mount("#app");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment