Open lumtis opened 3 years ago
Same goes for scaffolding queries:
ignite s type comment body
ignite s query show-blog id --response comments:Comment
// Currently:
message QueryShowBlogResponse {
Comment comments = 1;
}
// Should be:
message QueryShowBlogResponse {
Comment comments = 1 [(gogoproto.nullable) = false];
}
@aljo242 I propose we bump the priority of this issue. It should be reasonably straightforward to fix, and will significantly improve the scaffolding experience.
With #1461 merged in years ago, what does this issue fix that isn't already implemented?
When scaffolding a type with a custom type field:
The
foo
field will be a pointer. We should use the[(gogoproto.nullable) = false]
option in proto field to avoid having a pointerGenerating