DEV Community

Discussion on: Make sure your GraphQL Lists return predictable results!

Collapse
 
itsjzt profile image
Saurabh Sharma

One thing I would like to mention [User] means the array can contain null or even the whole thing could be null instead of array.

Collapse
 
soneymathew profile image
Soney Mathew

That's very true and a good practice to follow.
I observed that a type safe implementation ensures that client is equipped to use that knowledge and handle those cases explicitly, so I considered it predictable behaviour.