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