How to insert more than 1000 items at a time through bulkInsert()?

break up your items into batches (array) of 1000 each and perform a bulkinsert on each batch (array)