Repository navigation
Exclude certain columns in frontend format entity generation #3082
Unanswered
DexterHill0
asked this question in
Q&A
Replies: 1 comment 3 replies
|
Why not create a new struct? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been using the
frontendexport format as a way of creating simple serde structs that can be sent between the client & server, without needing the client to pull insea-ormas a dependency.One thing I realised recently is that I don't necessarily want every column of my database to be returned to users and, as it stands, all columns are exported into the struct definitions. Is there a way I can skip columns from being included in the entity generation? And even better, could I potentially insert my own custom fields into the struct?
All reactions