Trying to query output type via fragment doesn't work when output is interface #924
Replies: 2 comments 3 replies
-
Would be happy to have a small reproductible example to be able to fix it. Thanks |
Beta Was this translation helpful? Give feedback.
-
@bnjjj I extracted my code into public space We see the same issue with latest preview of Here is my test example as PR DoumanAsh/graphql-router-example#1 It is present on branch: Revision of Here is supergraph schema generated by Rover https://github.com/DoumanAsh/graphql-router-example/blob/broken_fragment/tests/supergraph.graphql Here is My query:
Its result is empty:
But if I inline fragment into query I get proper output:
|
Beta Was this translation helpful? Give feedback.
-
I didn't raise issue because I need time to prepare sample.
We basically have mutation that returns interface as output instead of concrete type.
If we use fragment to query it, it seems we just get empty output from router (it happens with router as standalone binary and embedded router)
I wonder if anyone noticed bug with fragments before?
Query works if you remove fragment and just inline its content inside query.
Beta Was this translation helpful? Give feedback.
All reactions