Does anyone have a nice way of ordering mongodb requests since Nodejs is async.
Say that I insert data1 into the database, and I immediately request to read that data, my read request might get executed before the data is written to the database.
Is there a nice way around this instead of forcing synchronous behavior on the requests?
You can simple use callback that will be called only after insert will be completed.
If you need more complex functionality look at async module. It should help you to organize many callbacks.