Replies: 1 comment
-
same here |
Beta Was this translation helpful? Give feedback.
0 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.
-
Model:
type Test struct{
Name string
json:"name"
Score uint
json:"score"
Subject string
json:"subject"
School string
json:"school"
Remark string
json:"remark"
}
Can I achieve some thing like:
var tests []Test
db.select("tests.*").
Omit("remark").
Find(&tests)
Or :
I don't want to select each field explicitly because I don't want a particular field to fetched on a particular endpoint
Beta Was this translation helpful? Give feedback.
All reactions