How to apply filter query on object type column

11 views
Skip to first unread message

Richa Agrawal

unread,
Nov 23, 2015, 2:29:26 AM11/23/15
to LoopbackJS
Hi team

I have JobApplication model in which one properties is object like

"trello": {
      "type":"object"
    }
In this column i will stored value like {"id": "XXXXXXX", "status": "xxxxxxx", "webhookId": "xxxxx"}

Now i want to fetch data on the basis of trello.id, for this i tried 

JobApplication.find({
      filter: {
        where: {
          trello: {
            id: "xxxxxxx"
          }
        }
      }
    }, function(jobApplication) {
      console.log(jobApplication);
    });
It not work for me. Please suggest the proper method for finding data in object. 
Reply all
Reply to author
Forward
0 new messages