Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frieddbm opened this issue Nov 21, 2023 · 7 comments
Open

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

frieddbm opened this issue Nov 21, 2023 · 7 comments
Labels

Comments

@frieddbm
Copy link

Environment

  • Operating System: Darwin
  • Node Version: v18.18.0
  • Nuxt Version: 3.8.2
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.0
  • Package Manager: yarn@1.22.17
  • Builder: -
  • User Config: devtools, modules, apollo
  • Runtime Modules: @nuxtjs/apollo
  • Build Modules: -

Describe the bug

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

Expected behaviour

No

Reproduction

  • Same Query with fragments working on Postman
  • DevTools Network return all data

Additional context

No response

Logs

No response

@frieddbm frieddbm added the bug label Nov 21, 2023
@boboldehampsink
Copy link

boboldehampsink commented Nov 27, 2023

Seeing this too, since alpha 7 already

@frieddbm
Copy link
Author

frieddbm commented Nov 27, 2023 via email

@milanbest
Copy link

Is there a solution or a workaround for this issue?

@samuelreichor
Copy link

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
Copy link

I have been stuck on alpha 6 since this

@paulnzime
Copy link

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

@frieddbm
Copy link
Author

frieddbm commented Apr 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants