addObjects method
AddObjects
Returns a AlgoliaTask
with an auto-generated Task ID, after
populating it with provided data
.
The unique key generated is prefixed with a client-generated timestamp so that the resulting list will be chronologically-sorted.
Implementation
Future<AlgoliaTask> addObjects(List<Map<String, dynamic>> objects) async {
final batch = this.batch();
for (final obj in objects) {
batch.addObject(obj);
}
return await batch.commit();
}