ensure that the internal model field in the Document struct is tagged with bson:"-"

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-03-25 16:23:06 -04:00
parent 866a459855
commit 7fc4ed46c8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -10,7 +10,7 @@ type Document struct {
Created time.Time `bson:"createdAt" json:"createdAt"` Created time.Time `bson:"createdAt" json:"createdAt"`
// Modified time. updated/added automatically. // Modified time. updated/added automatically.
Modified time.Time `bson:"updatedAt" json:"updatedAt"` Modified time.Time `bson:"updatedAt" json:"updatedAt"`
model *Model model *Model `bson:"-"`
exists bool `bson:"-"` exists bool `bson:"-"`
self any `bson:"-"` self any `bson:"-"`
} }