1.11.1 • Published 10 months ago
@bicou/nuxt-urql v1.11.1
Nuxt URQL module
URQL client for Nuxt v3
Features
- @urql/vue integration
- SSR exchange
- client customization
Quick Setup
Add @bicou/nuxt-urql dependency to your project
# Using pnpm
pnpm add -D @bicou/nuxt-urql graphql
# Using yarn
yarn add --dev @bicou/nuxt-urql graphql
# Using npm
npm install --save-dev @bicou/nuxt-urql graphqlAdd @bicou/nuxt-urql to the modules section of nuxt.config.ts and
configure the urql client with the endpoint url
export default defineNuxtConfig({
modules: [
'@bicou/nuxt-urql'
],
urql: {
endpoint: "http://myapi/graphql"
}
})That's it! You can now use Nuxt URQL module in your Nuxt app ✨
<template>
<div>{{ data }}</div>
</template>
<script setup lang="ts">
const { data } = await useQuery({
query: gql`
query name {
# ...
}
`,
});
</script>Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch1.11.1
10 months ago
1.9.1
1 year ago
1.9.4
12 months ago
1.9.3
1 year ago
1.9.2
1 year ago
1.11.0
10 months ago
1.10.0
11 months ago
1.9.0
1 year ago
1.8.2
2 years ago
1.8.1
2 years ago
1.8.0
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.6.2
2 years ago
1.7.0
2 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.1
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.2.0
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.3.0
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.0.0
3 years ago