Open
Description
Having types Fruit
and Vegetable
implementing Produce
as per https://graphql.com/learn/interfaces-and-unions/#fragments
After I executed such query (use no shared fields, and only a sible type fragment while the collecton has multiple types)
query GetMostPopularStallProduce {
mostPopularStall {
availableProduce {
... on Fruit {
hasEdibleSeeds
}
}
}
}
I've got
{
"data": {
"mostPopularStall": {
"availableProduce": [
{
"hasEdibleSeeds": false
},
{
"hasEdibleSeeds": true
},
{
"hasEdibleSeeds": false
},
{},
{}
]
}
}
}
Is it the correct behavior?
Specification does not mention such case at all.
I want to understand both cases like:
- Nullable items
type Stall {
availableProduce: [Produce]
}
- Not tullable items
type Stall {
availableProduce: [Produce!]
}
In context of fixing fsprojects/FSharp.Data.GraphQL#455 in fsprojects/FSharp.Data.GraphQL#458
Metadata
Metadata
Assignees
Labels
No labels