{"action":"created","issue":{"url":"https://api.github.com/repos/mongomock/mongomock/issues/400","repository_url":"https://api.github.com/repos/mongomock/mongomock","labels_url":"https://api.github.com/repos/mongomock/mongomock/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/mongomock/mongomock/issues/400/comments","events_url":"https://api.github.com/repos/mongomock/mongomock/issues/400/events","html_url":"https://github.com/mongomock/mongomock/issues/400","id":340244344,"node_id":"MDU6SXNzdWUzNDAyNDQzNDQ=","number":400,"title":"Api call that uses mongomock causes 500 INTERNAL SERVER ERROR but works with Mongodb","user":{"login":"daniellepintz","id":38207072,"node_id":"MDQ6VXNlcjM4MjA3MDcy","avatar_url":"https://avatars1.githubusercontent.com/u/38207072?v=4","gravatar_id":"","url":"https://api.github.com/users/daniellepintz","html_url":"https://github.com/daniellepintz","followers_url":"https://api.github.com/users/daniellepintz/followers","following_url":"https://api.github.com/users/daniellepintz/following{/other_user}","gists_url":"https://api.github.com/users/daniellepintz/gists{/gist_id}","starred_url":"https://api.github.com/users/daniellepintz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniellepintz/subscriptions","organizations_url":"https://api.github.com/users/daniellepintz/orgs","repos_url":"https://api.github.com/users/daniellepintz/repos","events_url":"https://api.github.com/users/daniellepintz/events{/privacy}","received_events_url":"https://api.github.com/users/daniellepintz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pcorpet","id":7937848,"node_id":"MDQ6VXNlcjc5Mzc4NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/7937848?v=4","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"assignees":[{"login":"pcorpet","id":7937848,"node_id":"MDQ6VXNlcjc5Mzc4NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/7937848?v=4","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-11T13:33:54Z","updated_at":"2018-08-08T21:45:54Z","closed_at":null,"author_association":"NONE","body":"The following code causes an error when using mongomock, but not when using mongodb:\r\n\r\n        result = self.logs_engine.LogCollection.objects(\r\n            __raw__={'app_id': app_id, \"results\": {\r\n        \"$gt\": [{\"$size\": \"results\"}, 0]}}).only(\r\n            \"user_input\", \"app_id\", \"results\", \"date_time\")\r\n        **print(result)**\r\n\r\nThe error is: TypeError: '>' not supported between instances of 'dict' and 'dict'"},"comment":{"url":"https://api.github.com/repos/mongomock/mongomock/issues/comments/411562780","html_url":"https://github.com/mongomock/mongomock/issues/400#issuecomment-411562780","issue_url":"https://api.github.com/repos/mongomock/mongomock/issues/400","id":411562780,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTU2Mjc4MA==","user":{"login":"pcorpet","id":7937848,"node_id":"MDQ6VXNlcjc5Mzc4NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/7937848?v=4","gravatar_id":"","url":"https://api.github.com/users/pcorpet","html_url":"https://github.com/pcorpet","followers_url":"https://api.github.com/users/pcorpet/followers","following_url":"https://api.github.com/users/pcorpet/following{/other_user}","gists_url":"https://api.github.com/users/pcorpet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcorpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcorpet/subscriptions","organizations_url":"https://api.github.com/users/pcorpet/orgs","repos_url":"https://api.github.com/users/pcorpet/repos","events_url":"https://api.github.com/users/pcorpet/events{/privacy}","received_events_url":"https://api.github.com/users/pcorpet/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T21:45:54Z","updated_at":"2018-08-08T21:45:54Z","author_association":"COLLABORATOR","body":"Note that the initial query probably does not work as the author intended: the `$size` is not computed as an operator at all, however it should not crash. Working on a fix."}}
{"actor":{"display_login":"pcorpet"}}