Is there any way to wait for an insert to complete?
nabils opened this issue · 2 comments
nabils commented
Insert is currently async but it does not return a promise. As far as I can see there is no way to know when an insert of multiple records to a collection has completed? Is this possible?
Thanks
nabils commented
It does seem to be sync actually. Closing this
jaandrle commented
@nabils Exactly operations above Collections are synchronous. Saving function saveDatabase
can be asynchronous and accepts callback.