Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not generate Gql Functions based on schema.graphql from version 0.2.38 #571

Open
buenoleo1982 opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@buenoleo1982
Copy link

buenoleo1982 commented Dec 3, 2024

Environment

"nuxt": "^3.13.2",
"nuxt-graphql-client": "^0.2.36",
"nuxt-graphql-server": "^3.1.4",

pnm version 9.12.0
node v22.11.0
os - macos 15.2

Describe the bug

After updating to version 0.2.38 or higher, the client stops generating gql functions, although I analyzed the commit logs and found no apparent reason for this, perhaps it is my client's configuration.

Expected behaviour

That the gql functions are generated correctly as in version 0.2.36

Reproduction

No response

Additional context

My settings for the client

  runtimeConfig: {
    public: {
      apiBase: '/api/grapqhl',
      'graphql-client': {
        clients: {
          default: {
            host: process.env.NUXT_PUBLIC_GRAPHQL_HOST || 'http://localhost:3000/api/graphql',
            schema: './generated/schema.graphql'
          }
        }
      }
    }
  },
  'graphql-client': {
    codegen: {
      avoidOptionals: true
    }
  },
  

### Logs

It doesn't generate any error log, it just doesn't generate the gql functions as it should.
@buenoleo1982 buenoleo1982 added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant