Search code examples
node.jsasynchronousmongoosecontrol-flow

What is an easy to use control flow library or module to use with mongoose and node


I was looking at async and step and I've been getting a lot of errors when making the database calls.

They both seem to work fine with the standard demo examples but as soon as I put in a mongoose db request it errors out, variables not defined, etc..

Does anyone have a working example I can look at? Also, I noticed that there is a promise.js in mongoose and mongodb has a dependency on step. Is that a clue to what I should use?


Solution

  • Looks like async works like a charm. It was a simple syntax error on my part, extra spaces in my coffee script that was causing the problems.