// InsertMany adds a number of documents
InsertMany adds a number of documents
// InsertMany adds a number of documents
func (c *Collection) InsertMany(ctx context.Context, documents []interface{}) (*CollectionInsertManyResult, error) {
	result, err := c.collection.InsertMany(ctx, documents)
	if err != nil {
		return nil, wrapMongoError(err)
	}
	insertResult := &CollectionInsertManyResult{}
	insertResult.InsertedIds = result.InsertedIDs
	return insertResult, nil
}
func ( c * Collection ) InsertMany ( ctx context . Context , documents [ ] interface { } ) ( * CollectionInsertManyResult , error ) { result , err := c . collection . InsertMany ( ctx , documents ) if err != nil { return nil , wrapMongoError ( err ) } insertResult := & CollectionInsertManyResult { } insertResult . InsertedIds = result . InsertedIDs return insertResult , nil }
InsertMany adds a number of documents
InsertMany adds a number of documents