How to setup the urql module
@bicou/nuxt-urql
and graphql
to nuxt project dependencies.npm install --save-dev @bicou/nuxt-urql graphql
nuxt.config
export default defineNuxtConfig({
modules: ["@bicou/nuxt-urql"],
// ...
});
The endpoint absolute URL must be set under the urql key options :
export default defineNuxtConfig({
modules: ["@bicou/nuxt-urql"],
// ...
urql: {
endpoint: "http://",
},
});
Learn more on available options.