go.mongodb.org/mongo-driver/bson/primitive.E composite literal uses unkeyed fieldswhat should I choose as a proper tactic to get rid of all of these warnings ?
Hi Denis,
If you would like the code to be defined and stronger typed, then it would make sense to define Key and Value. Alternatively you can specify -composites=false to ignore the warning. However, if you decided to ignore, this would be not just for bson.D usages.
Regards,
Wan.