Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
362 stars 43 forks source link

Local scheme copy for CI #505

Open KillerJulian opened 2 months ago

KillerJulian commented 2 months ago

Your use case

Locale schema file that Pipeline/Workflow/CI/CD does not fail if the endpoint cannot be reached.

The solution you'd like

Option to store the fetched schema file in a local configured directory.

Possible alternatives

No response

Additional information

No response


Discussion

https://github.com/Diizzayy/nuxt-graphql-client/discussions/474

KillerJulian commented 2 months ago

By the way. The docs are incorrect.

export default defineNuxtConfig({
  modules: ['nuxt-graphql-client'],

  runtimeConfig: {
    public: {
      'graphql-client': {
        clients: {
          default: {
            host: '', // REQIURED "host"
            schema: '<relative_path_to_schema_file>'
          }
        }
      }
    }
  }
});

https://nuxt-graphql-client.web.app/advanced/codegen#local-schema