Tuesday, 11 April 2017

Strong-loopback how to pass multiple condition on where clause of count function?

Suppose I want to count all records that their publishDate is less than a date, and their category is not like a string. What i have tried is like:

http://localhost:3000/api/posts/count?[where][publishDate][lt]=2017-04-14T23:05:49.791Z&[where][category][nlike]='IT - Software'

But that bring wrong result. and one another question how we can mix of conditions with and, or, suppose one another condition i want to append with or.



via jones

No comments:

Post a Comment