Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@enra-gmbh/urql-vue

FormidableLabs20MIT0.0.1TypeScript support: included

A highly customizable and versatile GraphQL client for vue

graphql client, state management, cache, formidablelabs, exchanges, vue

readme

Installation

yarn add @urql/vue graphql
# or
npm install --save @urql/vue graphql

Note: @urql/vue has a peer dependency on vue@^3.0.0 (Not v2) and doesn't currently plan to be backwards compatible to Vue 2.

changelog

@urql/vue

0.3.0

Minor Changes

  • Breaking: Remove pollInterval option from useQuery. Please consider adding an interval manually calling executeQuery(), by @kitten (See #1374)
  • Remove deprecated operationName property from Operations. 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)

Patch Changes

0.2.1

Patch Changes

  • Add a built-in 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)
  • Updated dependencies (See #1187, #1186, and #1186)

0.2.0

Minor Changes

  • Export a Vue plugin function as the default export, by @LinusBorg (See #1152)
  • Refactor 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)

Patch Changes

  • ⚠️ Fix pausing feature of useQuery by turning isPaused into a ref again, by @LinusBorg (See #1155)
  • ⚠️ Fix implementation of Vue's Suspense feature by making the lazy PromiseLike on the returned state passive, by @kitten (See #1159)

0.1.0

Initial release