Closed tilap closed 8 years ago
__validate__ method for Nodel.model perform a loop on sync function
__validate__
Nodel.model
However, I want to check if a model object property is not already used (example: a user email) and get some info from a remote service. So I need to query the database/fetch data from other service in async way. How can I do that?
You can't currently. I'll put it on the roadmap. :)
This is in! As of 0.10 :)
http://www.nodaljs.com/devlogs/nodal-0-10-landed--async-validations--file-uploads
__validate__
method forNodel.model
perform a loop on sync functionHowever, I want to check if a model object property is not already used (example: a user email) and get some info from a remote service. So I need to query the database/fetch data from other service in async way. How can I do that?