ensure that the internal model
field in the Document
struct is tagged with bson:"-"
This commit is contained in:
parent
866a459855
commit
7fc4ed46c8
@ -10,9 +10,9 @@ type Document struct {
|
||||
Created time.Time `bson:"createdAt" json:"createdAt"`
|
||||
// Modified time. updated/added automatically.
|
||||
Modified time.Time `bson:"updatedAt" json:"updatedAt"`
|
||||
model *Model
|
||||
exists bool `bson:"-"`
|
||||
self any `bson:"-"`
|
||||
model *Model `bson:"-"`
|
||||
exists bool `bson:"-"`
|
||||
self any `bson:"-"`
|
||||
}
|
||||
type IDocument interface {
|
||||
Append(field string, a ...interface{}) error
|
||||
|
Loading…
x
Reference in New Issue
Block a user