Open lumtis opened 2 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.
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