I'm using the java-sdk for CRUD operation in cosmosdb, I was able to do basic insert of a employee DTO and all looks good. But now I want to do batch insert and could not able to find appropriate api for this.
I come across the cosmosdb documentation where they are recommend using stored procedure(server side JS) but I prefer a direct java driver option like other nosql provides are giving.
Is there anything I'm missing and which one will be preferable, the stored procedure or the java driver option(if exist)? Below is the code snippet I'm using for inserting single document.
documentClient.createDocument(getCollection().getSelfLink(), document, null, false).getResource();