Search code examples
loopbackjsstrongloop

How to query with greater than less than condition using StrongLoop-Loopback explorer?


I've been trying to figure out how to perform a simple where condition using greater than or less than using StrongLoop/Loopback. Official documentation states to use the following format:

{"where": {"id": {"gt": 45} } }

But the Response is showing no content. The sql query return 55 records.

Please refer the image. Is there any way to get the desired result? Kindly help...

Response of the where condition query


Solution

  • Your query is fine. I tried to reproduce it, but it works properly for me. Please post a sample repo so I can clone it and try to reproduce it from your use case. See https://github.com/strongloop/loopback/wiki/Reporting-issues#bug-report.