Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Add customized functions to Model

$
0
0
You can, but the best way to do this is to pass parameters into a findOne or findAll function call:

So:

Employee.findAll({
    startDate: ...,
});

Then you would have to configure your back end to do the appropriate query based on the GET params that it receives.

Viewing all articles
Browse latest Browse all 3491

Trending Articles