New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Apollo Graphql useQuery #161
Labels
Comments
new test: |
Merged
new createApp support import { createApollo } from '@huntersofbook/vue-apollo'
// HTTP connection to the API
const httpLink = createHttpLink({
// You should use an absolute URL here
uri: 'https://countries.trevorblades.com',
})
// Cache implementation
const cache = new InMemoryCache()
// Create the apollo client
const apolloClient = new ApolloClient({
link: httpLink,
cache,
})
const app = createApp(App)
const apollo = createApollo({
client: apolloClient,
})
app.use(apollo)
app.mount('#app') |
Publish new @huntersofbook/vue-apollo@2.0.0-alpha.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pnpm add @huntersofbook/vue-apollo@^2.0.0-alpha.6
Query Api:
https://www.apollographql.com/docs/react/data/queries/#usequery-api
The text was updated successfully, but these errors were encountered: