-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
When I tried to create a query with a link within a Union type, got an unexpected error
example query
query SearchMedia($text: String) {
searchMedia(text: $text) {
__typename
... on Audio {
duration
user {
id
}
}
... on Video {
thumbnailUrl(size: 100)
}
}
}
example error
"Cannot query field 'user' on type 'Media'. "
"Did you mean to use an inline fragment on 'Audio' or 'Video'?"
another libraries, like strawberry allow such a behavior, GraphQL doc also says it's valid
Reactions are currently unavailable