GraphQL API does not support fragments #8274
Labels
api:graphql
Issues related to GraphQL API
enhancement
New feature proposal
help wanted
Community contributions are welcome.
Describe the bug
We would expect the GraphQL API to support GraphQL fragments, but all columns coming from GraphQL fragments show up as null.
To Reproduce
Steps to reproduce the behavior:
Note that all columns return null.
Note that data returns as we would expect.
Expected behavior
Equivalent queries should return the exact same data.
Screenshots
If applicable, add screenshots to help explain your problem.
Minimally reproducible Cube Schema
In case your bug report is data modelling related please put your minimally reproducible Cube Schema here.
You can use selects without tables in order to achieve that as follows.
Version:
0.34.50
Additional context
I'm not sure if reaching for something like Postgraphile could help standardize the GraphQL implementation here (and be less work to maintain), food for thought.
The text was updated successfully, but these errors were encountered: