{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/303","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/303/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/303/events","html_url":"https://github.com/strongloop/loopback/issues/303","id":35059395,"number":303,"title":"compare date object ","user":{"login":"HolaMan","id":1321251,"avatar_url":"https://avatars.githubusercontent.com/u/1321251?v=3","gravatar_id":"","url":"https://api.github.com/users/HolaMan","html_url":"https://github.com/HolaMan","followers_url":"https://api.github.com/users/HolaMan/followers","following_url":"https://api.github.com/users/HolaMan/following{/other_user}","gists_url":"https://api.github.com/users/HolaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/HolaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolaMan/subscriptions","organizations_url":"https://api.github.com/users/HolaMan/orgs","repos_url":"https://api.github.com/users/HolaMan/repos","events_url":"https://api.github.com/users/HolaMan/events{/privacy}","received_events_url":"https://api.github.com/users/HolaMan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-06-05T14:00:37Z","updated_at":"2015-09-15T17:26:54Z","closed_at":"2014-07-10T04:44:23Z","body":"\r\nI try the Restful API with filter parameters below\r\nfilter={ \"where\": { \"date\": {\"lte\": \"2014-06-05\"} }}\r\nBut I can't find any record. \r\nI have tried another field with int type\r\nfilter={ \"where\": { \"price\": {\"lte\": 123} }}\r\nI am wondering if gt, get, lt, lte only works for int, float, not work for date type\r\n\r\nAny suggestion?\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/140473221","html_url":"https://github.com/strongloop/loopback/issues/303#issuecomment-140473221","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/303","id":140473221,"user":{"login":"GustavoRPS","id":516827,"avatar_url":"https://avatars.githubusercontent.com/u/516827?v=3","gravatar_id":"","url":"https://api.github.com/users/GustavoRPS","html_url":"https://github.com/GustavoRPS","followers_url":"https://api.github.com/users/GustavoRPS/followers","following_url":"https://api.github.com/users/GustavoRPS/following{/other_user}","gists_url":"https://api.github.com/users/GustavoRPS/gists{/gist_id}","starred_url":"https://api.github.com/users/GustavoRPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GustavoRPS/subscriptions","organizations_url":"https://api.github.com/users/GustavoRPS/orgs","repos_url":"https://api.github.com/users/GustavoRPS/repos","events_url":"https://api.github.com/users/GustavoRPS/events{/privacy}","received_events_url":"https://api.github.com/users/GustavoRPS/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T17:26:54Z","updated_at":"2015-09-15T17:26:54Z","body":"I'm having the same problem using the `loopback-connector-mongodb 1.13.0`.\r\n\r\nNot work\r\n```json\r\n{\r\n  \"where\": {\r\n    \"status.created_at\": {\r\n      \"gte\": \"2015-09-13T15:30.000Z\",\r\n      \"lte\": \"2015-09-15T15:45.000Z\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWork\r\n```json\r\n{\r\n  \"where\": {\r\n    \"status.timestamp_ms\": {\r\n      \"gte\": 1442169000000, \r\n      \"lte\": 1442342700000 \r\n    } \r\n  } \r\n}\r\n```\r\n\r\nI believe that is related to this issues #123 and  #517 too\r\n"}}