graphql-config is awesome plugin for graphql.graphql-config
i want not need manager multiple graphql url in project.
Ex:
1.in nuxt.config.ts file
apollo: { defaultOptions: { $query: { loadingKey: 'loading', fetchPolicy: 'cache-and-network' } }, clientConfigs: { default: { httpEndpoint: 'https://my-url' } } }
- in .graphqlconfig config file
{ "name": "xxx", "schemaPath": "./schema.graphql", "extensions": { "endpoints": { "Default GraphQL Endpoint": { "url": "https://my-url" } } } }
This question is available on Nuxt community (#c265)