How to ignore the default values of the time
field in the query?
Because they are set in 0001-01-01 00:00:00 +0000 UTC
, I can not find the right document
// User model
type User struct {
Mail string `json:"mail" bson:"mail,omitempty"`
Password string `json:"password" bson:"password,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at" bson:"updated_at,omitempty"`
}