From 7fc4ed46c84c14f669cbf7f0e688484efc16c523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= <i.am.the.tablet@proton.me> Date: Tue, 25 Mar 2025 16:23:06 -0400 Subject: [PATCH] ensure that the internal `model` field in the `Document` struct is tagged with `bson:"-"` --- document.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/document.go b/document.go index 587129e..7824d25 100644 --- a/document.go +++ b/document.go @@ -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