{"action":"opened","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1181","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1181/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1181/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1181/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/1181","id":120749653,"number":1181,"title":"Better error message than 'InvalidQueryError: Cannot resolve field \"x\"' when x contains '.'","user":{"login":"eli-b","id":834999,"avatar_url":"https://avatars.githubusercontent.com/u/834999?v=3","gravatar_id":"","url":"https://api.github.com/users/eli-b","html_url":"https://github.com/eli-b","followers_url":"https://api.github.com/users/eli-b/followers","following_url":"https://api.github.com/users/eli-b/following{/other_user}","gists_url":"https://api.github.com/users/eli-b/gists{/gist_id}","starred_url":"https://api.github.com/users/eli-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eli-b/subscriptions","organizations_url":"https://api.github.com/users/eli-b/orgs","repos_url":"https://api.github.com/users/eli-b/repos","events_url":"https://api.github.com/users/eli-b/events{/privacy}","received_events_url":"https://api.github.com/users/eli-b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T11:11:19Z","updated_at":"2015-12-07T11:11:19Z","closed_at":null,"body":"Since document fields can't contain '.', and trying to query using `objects(**{\"a.b\":\"c\"}` is a common mistake, MongoEngine should give a more helpful error when failing to resolve a field that appears to contain a '.', informing the user of the Mongoengine form `objects(a__b=\"c\")`.\r\n\r\nActually, if MongoEngine could just auto-convert queries of the first form into the second form it would be best."}}