How to retrieve a nested array of objects in mongodb with golang?
I am using Golang/Fiber + Mongo driver. I have simple struct for blog post: type Post struct { ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` Title *string `json:"title" bson:"title"` Slug *string `json:"slug" bson:"slug"` Content []interface{} `json:"content" bson:"content,omitempty"` // same as any[] CreatedAt time.Time…