princecharmx
princecharmx
figured it out from a forum where the ejs person yu tagged in youur notes had answer
@emazzu @crandmck , i think this problem has come again in the latest repo. @raymondfeng , please look into it. This exposes the security loophole for the app in production....
@emazzu , @crandmck @raymondfeng , this problem is only with custom access token. I reverted to loopback AccessToken model than it started working as intended.
Hi, I tried querying level 2 properties and i was able to get the data right. Eg. I used `{"where": {"and": [{"name": "Eureka Outsourcing"},{"pocs.phone":{ "inq": [2225302400] }}, {"costToUs.name":{ "inq": ["Kiosk"]...
Hey @elviocb , this must be problem with customer.id stored as String and not ObjectId. **Can you share how your Order model looks.** It should be related to https://loopback.io/doc/ja/lb3/MongoDB-connector.html#strictobjectidcoercion-flag
You have incorrect model. You are having property customer and also have a relation customers with hasOne. You should use either. Also, as pointed note, your customer.id is stored as...
bulk create is possible by passing the array of json models as shown below, var corporatePark1 = {"name": "one", "address":"mumbai"}; var corporatePark2 = {"name": "two", "address":"pune"}; app.models.CorporatePark.create( [corporatePark1, corporatePark2] ,...
oh so @billinghamj was pointing at the behind the scene processing, gottcha :)
@gunjpan , that will return all modelA data with only related data restricted to matching filter. query modelA : ``` "where: { "include": { "relation": "space", "scope": { "where": {"categoryTag":...