nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
929 stars 194 forks source link

Fragments which contain child elements do not return any data #572

Open frieddbm opened 7 months ago

frieddbm commented 7 months ago

Environment

Describe the bug

I have an simple Query, which contains multiple fragments. Fragments do not return any data.

Expected behaviour

No

Reproduction

Additional context

No response

Logs

No response

boboldehampsink commented 7 months ago

Seeing this too, since alpha 7 already

frieddbm commented 7 months ago

Lieber Empfänger, vielen Dank für die eingehende Nachricht.

Nachrichten werden unter den folgenden Arbeitszeiten beantwortet: Mo. - Do.: 08:00 - 9:00 Uhr MEZ sowie 17:00 - 18:00 Uhr MEZ Fr.: 08:00 - 09:00 Uhr MEZ sowie 14:00 - 15:00 MEZ ausgenommen österreichische Feiertage.

Besten Dank, Stefan Fried

milanbest commented 6 months ago

Is there a solution or a workaround for this issue?

samuelreichor commented 5 months ago

I tried to generate fragment types of everything and used it like that

import fragmentTypes from './queries/configs/fragmentTypes.json';
apollo: {
    clients: {
      default: {
        httpEndpoint: process.env.GQL_HOST,
        inMemoryCacheOptions: {
          fragmentTypes,
        },
      },
    },
  },

But that does not help..

boboldehampsink commented 5 months ago

I have been stuck on alpha 6 since this

paulnzime commented 2 months ago

Any update on this? We are experiencing the same issue, alpha.6 works but anything beyond returns no data.

frieddbm commented 2 months ago

Lieber Empfänger, vielen Dank für die eingehende Nachricht.

Nachrichten werden unter den folgenden Arbeitszeiten beantwortet: Mo. - Do.: 08:00 - 9:00 Uhr MEZ sowie 17:00 - 18:00 Uhr MEZ Fr.: 08:00 - 09:00 Uhr MEZ sowie 14:00 - 15:00 MEZ ausgenommen österreichische Feiertage

Besten Dank, Stefan Fried