Closed skiadas closed 11 years ago
Anything enclosed in:
if (require.main === module) { ... code here }
is only executed when you run "node.js db.js". It can be used for some basic checks. You should have appropriate code there to wait for instantiation, to create an object, to wait for the created object, to update it etc.
PubSub.subscribe() didn't exit after calling createUser()
Anything enclosed in:
if (require.main === module) { ... code here }
is only executed when you run "node.js db.js". It can be used for some basic checks. You should have appropriate code there to wait for instantiation, to create an object, to wait for the created object, to update it etc.