I want to filter fields in a find query. For example, I have a collection called Users, where a field is an image in base64. I need to get all columns except image column.
I tried the next code, but Select not exist: cur, err := collection.Find(context.TODO(), bson.D{{}}).Select(bson.M{"id": 1, "_id": 1, "title": 1, "description": 1, "date": 1, "formatteddate": 1})