graphql-workshop
graphql-workshop copied to clipboard
Fix Name nullability
I propose to change the Name property to non-nullable as it is already marked with the [Required] attribute.
I thought about it, but it technically can be null. The moment you create the instance its null and could by accident not being filled correctly. There are instance where I use default!
to force this as well, but only if I can control exposure of the instance. For instance if we had a internal set with a dedicated factory around that.