Closed DrewML closed 4 years ago
Added a section with some guidance on scalars based on feedback from @paales on community slack
Please correct indentation in the examples (verify by opening the "rich diff": #392 (files) )
@paliarush pushed a fix for the formatting
Makes sense to me. I'll concur with the takeaway from @buskamuza here:
field may be nullable if it is not critical for the parent object
It's worth noting that for many list fields, if we were to query for them independently, the resulting list would have to be nullable anyway because of the rule you defined earlier:
Top-level Query fields should always be nullable
For example, if we requested RelatedProducts
using a top-level query with productId
as an argument, the result would have to be nullable. So we might as well also make such lists nullable when they're included as fields in other queries.
We've had this open for 2 weeks with several approvals. Going to merge, but if new concerns arise please open an issue or a follow-up PR and we can iterate.
Rendered Document
Prior discussions about nullability: