--
You received this message because you are subscribed to the Google Groups "mongodb-go-driver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-go-dri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-go-driver/19fa1435-dbbf-4ce3-9d38-8014d68cecda%40googlegroups.com.
type DBRef struct {
Ref interface{} `bson:"$ref"`
ID interface{} `bson:"$id"`
DB interface `bson:"$db"`
}
Hi Arora,What do you mean by saying "appropriate tags" ? Do you have a good example?
11 Ara 2019 Çar 18:49 tarihinde 'Divjot Arora' via mongodb-go-driver <mongodb-...@googlegroups.com> şunu yazdı:
My previous response was incorrect as DBRef and DBPointer are not the same thing. There is no defined DBRef data type in the driver, but you can use any document type (e.g. bson.D/bson.M) or define a struct with the appropriate struct tags to create a DBRef document.--
On Wednesday, December 11, 2019 at 10:25:38 AM UTC-5, Divjot Arora wrote:Hi Akin,I believe you can use primitive.DBPointer for this.
On Monday, December 9, 2019 at 12:51:10 PM UTC-5, AKIN KAPLANOĞLU wrote:Hi all,Is there any example to use DBRef with mongo-go-driver ? I could not find any example.
You received this message because you are subscribed to the Google Groups "mongodb-go-driver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-go-dri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-go-driver/41f3f118-d7bf-4fbd-9851-2c43b0ca4b9d%40googlegroups.com.