File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -402,15 +402,15 @@ Or using the index object:
402402
403403- [ Add or replace multiple documents in batches] ( https://docs.meilisearch.com/reference/api/documents.html#add-or-replace-documents ) :
404404
405- ` index.addDocumentsInBatch (documents: Document<T>[], batchSize = 1000): Promise<EnqueuedUpdate[]> `
405+ ` index.addDocumentsInBatches (documents: Document<T>[], batchSize = 1000): Promise<EnqueuedUpdate[]> `
406406
407407- [ Add or update multiple documents] ( https://docs.meilisearch.com/reference/api/documents.html#add-or-update-documents ) :
408408
409409` index.updateDocuments(documents: Document<T>[]): Promise<EnqueuedUpdate> `
410410
411411- [ Add or update multiple documents in batches] ( https://docs.meilisearch.com/reference/api/documents.html#add-or-update-documents ) :
412412
413- ` index.updateDocumentsInBatch (documents: Document<T>[], batchSize = 1000): Promise<EnqueuedUpdate[]> `
413+ ` index.updateDocumentsInBatches (documents: Document<T>[], batchSize = 1000): Promise<EnqueuedUpdate[]> `
414414
415415- [ Get Documents] ( https://docs.meilisearch.com/reference/api/documents.html#get-documents ) :
416416
Original file line number Diff line number Diff line change @@ -319,9 +319,9 @@ class Index<T = Record<string, any>> {
319319 /**
320320 * Add or replace multiples documents to an index in batches
321321 * @memberof Index
322- * @method addDocumentsInBatch
322+ * @method addDocumentsInBatches
323323 */
324- async addDocumentsInBatch (
324+ async addDocumentsInBatches (
325325 documents : Array < Document < T > > ,
326326 batchSize = 1000 ,
327327 options ?: AddDocumentParams
@@ -353,7 +353,7 @@ class Index<T = Record<string, any>> {
353353 * @memberof Index
354354 * @method updateDocuments
355355 */
356- async updateDocumentsInBatch (
356+ async updateDocumentsInBatches (
357357 documents : Array < Document < T > > ,
358358 batchSize = 1000 ,
359359 options ?: AddDocumentParams
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ describe.each([
7474 test ( `${ permission } key: Add documents to uid with primary key in batch` , async ( ) => {
7575 const response : EnqueuedUpdate [ ] = await client
7676 . index ( indexPk . uid )
77- . addDocumentsInBatch ( dataset , 4 )
77+ . addDocumentsInBatches ( dataset , 4 )
7878 expect ( response ) . toBeInstanceOf ( Array )
7979 expect ( response ) . toHaveLength ( 2 )
8080 expect ( response [ 0 ] ) . toHaveProperty ( 'updateId' , expect . any ( Number ) )
@@ -227,7 +227,7 @@ describe.each([
227227 test ( `${ permission } key: Update document from index that has a primary key in batch` , async ( ) => {
228228 const response : EnqueuedUpdate [ ] = await client
229229 . index ( indexPk . uid )
230- . updateDocumentsInBatch ( dataset , 2 )
230+ . updateDocumentsInBatches ( dataset , 2 )
231231 expect ( response ) . toBeInstanceOf ( Array )
232232 expect ( response ) . toHaveLength ( 4 )
233233 expect ( response [ 0 ] ) . toHaveProperty ( 'updateId' , expect . any ( Number ) )
You can’t perform that action at this time.
0 commit comments