Wednesday, 15 March 2017

How can i create a loopback remote method for search

In my loopback application i have a model named test. I need to search details and display the details based on multiple criteria. that is the search fields are status, priority, message and id. i want to dispalt the details based on these search fields. suppose i give status is open and priority is low the details should be satisfied with both these condition(that is "AND" operator).How should i implement this? My db is Arango Db. what i have is common/models/test.js

test.js

 module.exports = function (Test) {
 Test.search = function(callback){

 }
 };

How should i implement this? I am new to loopback and angular. Any help will really helpfull.



via Nidhi Malhotra

No comments:

Post a Comment