Using stream on non-nullable
lists
#25
-
type NestedObject {
nullableSlow: [String]
nonNullableSlow: [String]!
}
type Query {
nested: NestedObject
} If I try to {
"errors": [
{
"message": "Stream directive cannot be used on non-list field \"nonNullableSlow\" on type \"NestedObject\".",
"locations": [
{
"line": 3,
"column": 21
}
]
}
]
} Here is a codesandbox: https://codesandbox.io/s/stream-error-non-null-list-ntgem?file=/src/index.mjs |
Beta Was this translation helpful? Give feedback.
Answered by
robrichard
Nov 29, 2021
Replies: 1 comment
-
@saihaj the validation rule |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saihaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@saihaj the validation rule
StreamDirectiveOnListFieldRule
was not properly checking non-null wrapping types. This is fixed now on thedefer-stream
branch