Diizzayy / nuxt-graphql-client

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

How to override *.gql and *.graphql files from Nuxt Layer? #478

Open lna1989 opened 3 months ago

lna1989 commented 3 months ago

Discussed in https://github.com/Diizzayy/nuxt-graphql-client/discussions/472

Originally posted by **lna1989** March 11, 2024 The "./layer/query/ship.gql" file is present in the Layer and in the project I want override ship.gql . How do this? Example: https://stackblitz.com/edit/nuxt-starter-kr8arq?file=nuxt.config.ts ### Expected result: If a file with the same name as layer is present in the project, then it must have priority, and it must be used. ### Actual result: I see error in console - "Error: Not all operations have an unique name: ships".