{"action":"opened","number":908,"pull_request":{"url":"https://api.github.com/repos/mongodb/morphia/pulls/908","id":61291568,"html_url":"https://github.com/mongodb/morphia/pull/908","diff_url":"https://github.com/mongodb/morphia/pull/908.diff","patch_url":"https://github.com/mongodb/morphia/pull/908.patch","issue_url":"https://api.github.com/repos/mongodb/morphia/issues/908","number":908,"state":"open","locked":false,"title":"Add example of using a raw DBObject style query","user":{"login":"a-h","id":1029947,"avatar_url":"https://avatars.githubusercontent.com/u/1029947?v=3","gravatar_id":"","url":"https://api.github.com/users/a-h","html_url":"https://github.com/a-h","followers_url":"https://api.github.com/users/a-h/followers","following_url":"https://api.github.com/users/a-h/following{/other_user}","gists_url":"https://api.github.com/users/a-h/gists{/gist_id}","starred_url":"https://api.github.com/users/a-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-h/subscriptions","organizations_url":"https://api.github.com/users/a-h/orgs","repos_url":"https://api.github.com/users/a-h/repos","events_url":"https://api.github.com/users/a-h/events{/privacy}","received_events_url":"https://api.github.com/users/a-h/received_events","type":"User","site_admin":false},"body":"I spent a while working out how to do this, I'd totally missed the DBObject overload of the createQuery method and couldn't find an example of how to mix it with Morphia's built-in querying style. In fact, I'd started writing a \"raw\" addition to the \"filter\" method before I realised it must already be there.","created_at":"2016-03-01T19:07:37Z","updated_at":"2016-03-01T19:07:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/morphia/pulls/908/commits","review_comments_url":"https://api.github.com/repos/mongodb/morphia/pulls/908/comments","review_comment_url":"https://api.github.com/repos/mongodb/morphia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/morphia/issues/908/comments","statuses_url":"https://api.github.com/repos/mongodb/morphia/statuses/e12582fb6c88433e763527f5d4008b4bbc982359","head":{"label":"a-h:patch-2","ref":"patch-2","sha":"e12582fb6c88433e763527f5d4008b4bbc982359","user":{"login":"a-h","id":1029947,"avatar_url":"https://avatars.githubusercontent.com/u/1029947?v=3","gravatar_id":"","url":"https://api.github.com/users/a-h","html_url":"https://github.com/a-h","followers_url":"https://api.github.com/users/a-h/followers","following_url":"https://api.github.com/users/a-h/following{/other_user}","gists_url":"https://api.github.com/users/a-h/gists{/gist_id}","starred_url":"https://api.github.com/users/a-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-h/subscriptions","organizations_url":"https://api.github.com/users/a-h/orgs","repos_url":"https://api.github.com/users/a-h/repos","events_url":"https://api.github.com/users/a-h/events{/privacy}","received_events_url":"https://api.github.com/users/a-h/received_events","type":"User","site_admin":false},"repo":{"id":51510983,"name":"morphia","full_name":"a-h/morphia","owner":{"login":"a-h","id":1029947,"avatar_url":"https://avatars.githubusercontent.com/u/1029947?v=3","gravatar_id":"","url":"https://api.github.com/users/a-h","html_url":"https://github.com/a-h","followers_url":"https://api.github.com/users/a-h/followers","following_url":"https://api.github.com/users/a-h/following{/other_user}","gists_url":"https://api.github.com/users/a-h/gists{/gist_id}","starred_url":"https://api.github.com/users/a-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-h/subscriptions","organizations_url":"https://api.github.com/users/a-h/orgs","repos_url":"https://api.github.com/users/a-h/repos","events_url":"https://api.github.com/users/a-h/events{/privacy}","received_events_url":"https://api.github.com/users/a-h/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a-h/morphia","description":"MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver","fork":true,"url":"https://api.github.com/repos/a-h/morphia","forks_url":"https://api.github.com/repos/a-h/morphia/forks","keys_url":"https://api.github.com/repos/a-h/morphia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a-h/morphia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a-h/morphia/teams","hooks_url":"https://api.github.com/repos/a-h/morphia/hooks","issue_events_url":"https://api.github.com/repos/a-h/morphia/issues/events{/number}","events_url":"https://api.github.com/repos/a-h/morphia/events","assignees_url":"https://api.github.com/repos/a-h/morphia/assignees{/user}","branches_url":"https://api.github.com/repos/a-h/morphia/branches{/branch}","tags_url":"https://api.github.com/repos/a-h/morphia/tags","blobs_url":"https://api.github.com/repos/a-h/morphia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a-h/morphia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a-h/morphia/git/refs{/sha}","trees_url":"https://api.github.com/repos/a-h/morphia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a-h/morphia/statuses/{sha}","languages_url":"https://api.github.com/repos/a-h/morphia/languages","stargazers_url":"https://api.github.com/repos/a-h/morphia/stargazers","contributors_url":"https://api.github.com/repos/a-h/morphia/contributors","subscribers_url":"https://api.github.com/repos/a-h/morphia/subscribers","subscription_url":"https://api.github.com/repos/a-h/morphia/subscription","commits_url":"https://api.github.com/repos/a-h/morphia/commits{/sha}","git_commits_url":"https://api.github.com/repos/a-h/morphia/git/commits{/sha}","comments_url":"https://api.github.com/repos/a-h/morphia/comments{/number}","issue_comment_url":"https://api.github.com/repos/a-h/morphia/issues/comments{/number}","contents_url":"https://api.github.com/repos/a-h/morphia/contents/{+path}","compare_url":"https://api.github.com/repos/a-h/morphia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a-h/morphia/merges","archive_url":"https://api.github.com/repos/a-h/morphia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a-h/morphia/downloads","issues_url":"https://api.github.com/repos/a-h/morphia/issues{/number}","pulls_url":"https://api.github.com/repos/a-h/morphia/pulls{/number}","milestones_url":"https://api.github.com/repos/a-h/morphia/milestones{/number}","notifications_url":"https://api.github.com/repos/a-h/morphia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a-h/morphia/labels{/name}","releases_url":"https://api.github.com/repos/a-h/morphia/releases{/id}","deployments_url":"https://api.github.com/repos/a-h/morphia/deployments","created_at":"2016-02-11T11:40:02Z","updated_at":"2016-02-11T11:40:04Z","pushed_at":"2016-03-01T19:07:28Z","git_url":"git://github.com/a-h/morphia.git","ssh_url":"git@github.com:a-h/morphia.git","clone_url":"https://github.com/a-h/morphia.git","svn_url":"https://github.com/a-h/morphia","homepage":"","size":9373,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"04c9a0ca8227eb101e955755ba744d89c2f3206c","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":9677593,"name":"morphia","full_name":"mongodb/morphia","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/morphia","description":"MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver","fork":false,"url":"https://api.github.com/repos/mongodb/morphia","forks_url":"https://api.github.com/repos/mongodb/morphia/forks","keys_url":"https://api.github.com/repos/mongodb/morphia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/morphia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/morphia/teams","hooks_url":"https://api.github.com/repos/mongodb/morphia/hooks","issue_events_url":"https://api.github.com/repos/mongodb/morphia/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/morphia/events","assignees_url":"https://api.github.com/repos/mongodb/morphia/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/morphia/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/morphia/tags","blobs_url":"https://api.github.com/repos/mongodb/morphia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/morphia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/morphia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/morphia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/morphia/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/morphia/languages","stargazers_url":"https://api.github.com/repos/mongodb/morphia/stargazers","contributors_url":"https://api.github.com/repos/mongodb/morphia/contributors","subscribers_url":"https://api.github.com/repos/mongodb/morphia/subscribers","subscription_url":"https://api.github.com/repos/mongodb/morphia/subscription","commits_url":"https://api.github.com/repos/mongodb/morphia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/morphia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/morphia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/morphia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/morphia/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/morphia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/morphia/merges","archive_url":"https://api.github.com/repos/mongodb/morphia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/morphia/downloads","issues_url":"https://api.github.com/repos/mongodb/morphia/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/morphia/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/morphia/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/morphia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/morphia/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/morphia/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/morphia/deployments","created_at":"2013-04-25T17:41:02Z","updated_at":"2016-02-29T04:51:08Z","pushed_at":"2016-03-01T19:07:37Z","git_url":"git://github.com/mongodb/morphia.git","ssh_url":"git@github.com:mongodb/morphia.git","clone_url":"https://github.com/mongodb/morphia.git","svn_url":"https://github.com/mongodb/morphia","homepage":"","size":10756,"stargazers_count":888,"watchers_count":888,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":259,"mirror_url":null,"open_issues_count":98,"forks":259,"open_issues":98,"watchers":888,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/morphia/pulls/908"},"html":{"href":"https://github.com/mongodb/morphia/pull/908"},"issue":{"href":"https://api.github.com/repos/mongodb/morphia/issues/908"},"comments":{"href":"https://api.github.com/repos/mongodb/morphia/issues/908/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/morphia/pulls/908/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/morphia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/morphia/pulls/908/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/morphia/statuses/e12582fb6c88433e763527f5d4008b4bbc982359"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":2,"changed_files":1}}