Access instance after it was created in batch?

#1

If you have a set of objects that were created in a batch using _.createBatch(objs), how do you query them using the get() function?

0 Likes

#2

Just make sure to save the return value of .createBatch(). Then use that return value in the get()to fetch the instance.

example to get the first item in the batch:
var objArray = _createBatch(objects)
_.get(objArray [0])

0 Likes