schema-guru
schema-guru copied to clipboard
Decide on strategy around requiredFields
Should we be adding all fields we see to requiredFields, and then removing them if they are not seen in another instance?
Pushing back...
I think we should be adding all fields we see to requiredFields - otherwise there is basically no way of creating a NOT NULL
field in our schema...
/cc @fblundun
I think the only way is to add field to requiredFields if it occurring in ALL instances. If it's omitted even once it isn't required.
Agreed
That sounds sensible to me.