//InsertOne inserts one document into the specified collection
//Uses bson.M which does NOT care about the order of the json fields and data
InsertOne inserts one document into the specified collection
Uses bson.M which does NOT care about the order of the json fields and data
// InsertOne inserts one document into the specified collection // Uses bson . M which does NOT care about the order of the json fields and data
func (db *DB) InsertOne(collectionName string, data bson.M) error {
	collection := db.Client.Database(db.DatabaseName).Collection(collectionName)
	_, err := collection.InsertOne(db.BasicContext, data)
	return err
}
func ( db * DB ) InsertOne ( collectionName string , data bson . M ) error { collection := db . Client . Database ( db . DatabaseName ) . Collection ( collectionName ) _ , err := collection . InsertOne ( db . BasicContext , data ) return err }
InsertOne inserts one document into the specified collection
Uses bson.M which does NOT care about the order of the json fields and data
InsertOne inserts one document into the specified collection Uses bson . M which does NOT care about the order of the json fields and data