dulnan / nuxt-graphql-middleware

GraphQL in the backend, fetch in the frontend. With TypeScript support.
https://nuxt-graphql-middleware.dulnan.net
MIT License
57 stars 11 forks source link

Make output file names in graphl_queries folder unique #1

Closed ayalon closed 3 years ago

ayalon commented 3 years ago

Having 2 query files with the same name lead to a clash:

works:

queries: {
      listSearch: '~/components/SomeList/query.list.graphql',
      listYear: '~/components/YearList/query.yearlist.graphql',
    },

fails with some random erros because the two files with the same name "query.list.graphql" are merged

queries: {
      listSearch: '~/components/SomeList/query.list.graphql',
      listYear: '~/components/YearList/query.list.graphql',
    },

Proposal: The unique key of the configuration should be used to save the queries to the folder.