Closed buenoleo1982 closed 1 month ago
I adjusted the nuxt settings and was able to use it correctly.
runtimeConfig: {
public: {
"graphql-client": {
clients: {
default: {
host: "http://localhost:3000/api/graphql",
schema: "./generated/schema.graphql",
},
},
},
},
},
Environment
OS: macos Node: v18.20.2 Nuxt: 3.13.2 nuxt-graphql-client: 0.2.36 Package Manager: yarn 1.22.22 Runtime Modules: "@apollo/server", "@as-integrations/h3", "@prisma/client", "bcrypt", "graphql", "graphql-scalars", "graphql-ws", "ioredis", "jsonwebtoken", "nanoid", "nexus", "nodemailer", "nookies", "nuxt", "nuxt-graphql-client", "nuxt-graphql-server", "uuid", "vue", "vue-router", "yup"
Describe the bug
When using the Gql Functions created by nuxt-graphql-client, the error below is being displayed
my nuxt settings
In this project I am exposing a graphql server, generating the schema with nexus graphql, the server part is functional, the generation of Gql Functions is being done, but when used the error reported above occurs.
Example of using the generated Gql functions
Example query
Expected behaviour
-
Reproduction
No response
Additional context
-
Logs