saihaj / graphql-ts-node-advanced-tutorial

WIP tutorial
0 stars 1 forks source link

`@stream` example not working yet #1

Closed saihaj closed 2 years ago

saihaj commented 3 years ago

So links is a list of Links I don’t understand this error. image

n1ru4l commented 3 years ago

Have you tried a nullable list?

saihaj commented 3 years ago

I tried a simple [String] list but I will try out a ObjectType

n1ru4l commented 2 years ago

SO I double verified. Once Feed.links returns [Link!] instead of [Link!]!, it works. It might be that graphql-js implementation does not unwrap NonNullable types?

saihaj commented 2 years ago

It might be that graphql-js implementation does not unwrap NonNullable types?

Yeah looks like it can't unwrap non-nullable items. I made a reproduction and posted in https://github.com/robrichard/defer-stream-wg/discussions/25