Installation
yarn add @urql/vue graphql
# or
npm install --save @urql/vue graphql
Note:
@urql/vue
has a peer dependency onvue@^3.0.0
(Not v2) and doesn't currently plan to be backwards compatible to Vue 2.
A highly customizable and versatile GraphQL client for vue
pollInterval
option from useQuery
. Please consider adding an interval manually calling executeQuery()
, by @kitten (See #1374)operationName
property from Operation
s. The new Operation.kind
property is now preferred. If you're creating new operations you may also use the makeOperation
utility instead.
When upgrading @urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate
(for Yarn) or npm dedupe
(for npm), by @kitten (See #1357)gql
tag function helper to @urql/core
. This behaves similarly to graphql-tag
but only warns about locally duplicated fragment names rather than globally. It also primes @urql/core
's key cache with the parsed DocumentNode
, by @kitten (See #1187)useQuery
to resolve the lazy promise for Vue Suspense to the latest result that has been requested as per the input to useQuery
, by @kitten (See #1162)useQuery
by turning isPaused
into a ref again, by @LinusBorg (See #1155)PromiseLike
on the returned state passive, by @kitten (See #1159)Initial release