bson.D vs bson.M for find queries
问题 This specifc question is in relation to using mongodb with the golang package mongo-driver, but I would assume this applies across most interfaces with mongodb. When using Find to query some data from a collection, we can use both the bson.M- and bson.D-type to specify the filter for this find. As per the documentation bson.D should be used if the order of elements matters and bson.M should be used otherwise. D is an ordered representation of a BSON document. This type should be used when the