{"action":"closed","number":44,"pull_request":{"url":"https://api.github.com/repos/bojand/lounge/pulls/44","id":85065317,"html_url":"https://github.com/bojand/lounge/pull/44","diff_url":"https://github.com/bojand/lounge/pull/44.diff","patch_url":"https://github.com/bojand/lounge/pull/44.patch","issue_url":"https://api.github.com/repos/bojand/lounge/issues/44","number":44,"state":"closed","locked":false,"title":"Add compound index","user":{"login":"atrites","id":2098911,"avatar_url":"https://avatars.githubusercontent.com/u/2098911?v=3","gravatar_id":"","url":"https://api.github.com/users/atrites","html_url":"https://github.com/atrites","followers_url":"https://api.github.com/users/atrites/followers","following_url":"https://api.github.com/users/atrites/following{/other_user}","gists_url":"https://api.github.com/users/atrites/gists{/gist_id}","starred_url":"https://api.github.com/users/atrites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrites/subscriptions","organizations_url":"https://api.github.com/users/atrites/orgs","repos_url":"https://api.github.com/users/atrites/repos","events_url":"https://api.github.com/users/atrites/events{/privacy}","received_events_url":"https://api.github.com/users/atrites/received_events","type":"User","site_admin":false},"body":"Using the schema.index() function we can now pass an array to create a compound index. This will result in properties being index by all fields passed.\r\n\r\neg - \r\n\r\nschema.index(['email', 'username']); \r\n\r\nwill index the document as $ref_by_email_and_username_{$email}_{$username}","created_at":"2016-09-13T14:59:39Z","updated_at":"2016-09-13T14:59:57Z","closed_at":"2016-09-13T14:59:57Z","merged_at":null,"merge_commit_sha":"667f2076a7d5d82f5d6508808db61c8d18b1e85b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bojand/lounge/pulls/44/commits","review_comments_url":"https://api.github.com/repos/bojand/lounge/pulls/44/comments","review_comment_url":"https://api.github.com/repos/bojand/lounge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bojand/lounge/issues/44/comments","statuses_url":"https://api.github.com/repos/bojand/lounge/statuses/e22a14767f23f340fe6f2f4c7919bb54a58f32be","head":{"label":"atrites:add_compound_index","ref":"add_compound_index","sha":"e22a14767f23f340fe6f2f4c7919bb54a58f32be","user":{"login":"atrites","id":2098911,"avatar_url":"https://avatars.githubusercontent.com/u/2098911?v=3","gravatar_id":"","url":"https://api.github.com/users/atrites","html_url":"https://github.com/atrites","followers_url":"https://api.github.com/users/atrites/followers","following_url":"https://api.github.com/users/atrites/following{/other_user}","gists_url":"https://api.github.com/users/atrites/gists{/gist_id}","starred_url":"https://api.github.com/users/atrites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrites/subscriptions","organizations_url":"https://api.github.com/users/atrites/orgs","repos_url":"https://api.github.com/users/atrites/repos","events_url":"https://api.github.com/users/atrites/events{/privacy}","received_events_url":"https://api.github.com/users/atrites/received_events","type":"User","site_admin":false},"repo":{"id":66298705,"name":"lounge","full_name":"atrites/lounge","owner":{"login":"atrites","id":2098911,"avatar_url":"https://avatars.githubusercontent.com/u/2098911?v=3","gravatar_id":"","url":"https://api.github.com/users/atrites","html_url":"https://github.com/atrites","followers_url":"https://api.github.com/users/atrites/followers","following_url":"https://api.github.com/users/atrites/following{/other_user}","gists_url":"https://api.github.com/users/atrites/gists{/gist_id}","starred_url":"https://api.github.com/users/atrites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrites/subscriptions","organizations_url":"https://api.github.com/users/atrites/orgs","repos_url":"https://api.github.com/users/atrites/repos","events_url":"https://api.github.com/users/atrites/events{/privacy}","received_events_url":"https://api.github.com/users/atrites/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atrites/lounge","description":"Simple Mongoose-inspired ODM for Couchbase.","fork":true,"url":"https://api.github.com/repos/atrites/lounge","forks_url":"https://api.github.com/repos/atrites/lounge/forks","keys_url":"https://api.github.com/repos/atrites/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atrites/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atrites/lounge/teams","hooks_url":"https://api.github.com/repos/atrites/lounge/hooks","issue_events_url":"https://api.github.com/repos/atrites/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/atrites/lounge/events","assignees_url":"https://api.github.com/repos/atrites/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/atrites/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/atrites/lounge/tags","blobs_url":"https://api.github.com/repos/atrites/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atrites/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atrites/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/atrites/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atrites/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/atrites/lounge/languages","stargazers_url":"https://api.github.com/repos/atrites/lounge/stargazers","contributors_url":"https://api.github.com/repos/atrites/lounge/contributors","subscribers_url":"https://api.github.com/repos/atrites/lounge/subscribers","subscription_url":"https://api.github.com/repos/atrites/lounge/subscription","commits_url":"https://api.github.com/repos/atrites/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/atrites/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/atrites/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/atrites/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/atrites/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/atrites/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atrites/lounge/merges","archive_url":"https://api.github.com/repos/atrites/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atrites/lounge/downloads","issues_url":"https://api.github.com/repos/atrites/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/atrites/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/atrites/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/atrites/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atrites/lounge/labels{/name}","releases_url":"https://api.github.com/repos/atrites/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/atrites/lounge/deployments","created_at":"2016-08-22T18:42:02Z","updated_at":"2016-08-22T18:42:03Z","pushed_at":"2016-09-13T14:57:19Z","git_url":"git://github.com/atrites/lounge.git","ssh_url":"git@github.com:atrites/lounge.git","clone_url":"https://github.com/atrites/lounge.git","svn_url":"https://github.com/atrites/lounge","homepage":"http://bojand.github.io/lounge","size":2205,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"bojand:master","ref":"master","sha":"25919c18e0a3c32de64c784b04ddfe1fedf0ee11","user":{"login":"bojand","id":2081100,"avatar_url":"https://avatars.githubusercontent.com/u/2081100?v=3","gravatar_id":"","url":"https://api.github.com/users/bojand","html_url":"https://github.com/bojand","followers_url":"https://api.github.com/users/bojand/followers","following_url":"https://api.github.com/users/bojand/following{/other_user}","gists_url":"https://api.github.com/users/bojand/gists{/gist_id}","starred_url":"https://api.github.com/users/bojand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojand/subscriptions","organizations_url":"https://api.github.com/users/bojand/orgs","repos_url":"https://api.github.com/users/bojand/repos","events_url":"https://api.github.com/users/bojand/events{/privacy}","received_events_url":"https://api.github.com/users/bojand/received_events","type":"User","site_admin":false},"repo":{"id":21148505,"name":"lounge","full_name":"bojand/lounge","owner":{"login":"bojand","id":2081100,"avatar_url":"https://avatars.githubusercontent.com/u/2081100?v=3","gravatar_id":"","url":"https://api.github.com/users/bojand","html_url":"https://github.com/bojand","followers_url":"https://api.github.com/users/bojand/followers","following_url":"https://api.github.com/users/bojand/following{/other_user}","gists_url":"https://api.github.com/users/bojand/gists{/gist_id}","starred_url":"https://api.github.com/users/bojand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojand/subscriptions","organizations_url":"https://api.github.com/users/bojand/orgs","repos_url":"https://api.github.com/users/bojand/repos","events_url":"https://api.github.com/users/bojand/events{/privacy}","received_events_url":"https://api.github.com/users/bojand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bojand/lounge","description":"Simple Mongoose-inspired ODM for Couchbase.","fork":false,"url":"https://api.github.com/repos/bojand/lounge","forks_url":"https://api.github.com/repos/bojand/lounge/forks","keys_url":"https://api.github.com/repos/bojand/lounge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bojand/lounge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bojand/lounge/teams","hooks_url":"https://api.github.com/repos/bojand/lounge/hooks","issue_events_url":"https://api.github.com/repos/bojand/lounge/issues/events{/number}","events_url":"https://api.github.com/repos/bojand/lounge/events","assignees_url":"https://api.github.com/repos/bojand/lounge/assignees{/user}","branches_url":"https://api.github.com/repos/bojand/lounge/branches{/branch}","tags_url":"https://api.github.com/repos/bojand/lounge/tags","blobs_url":"https://api.github.com/repos/bojand/lounge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bojand/lounge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bojand/lounge/git/refs{/sha}","trees_url":"https://api.github.com/repos/bojand/lounge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bojand/lounge/statuses/{sha}","languages_url":"https://api.github.com/repos/bojand/lounge/languages","stargazers_url":"https://api.github.com/repos/bojand/lounge/stargazers","contributors_url":"https://api.github.com/repos/bojand/lounge/contributors","subscribers_url":"https://api.github.com/repos/bojand/lounge/subscribers","subscription_url":"https://api.github.com/repos/bojand/lounge/subscription","commits_url":"https://api.github.com/repos/bojand/lounge/commits{/sha}","git_commits_url":"https://api.github.com/repos/bojand/lounge/git/commits{/sha}","comments_url":"https://api.github.com/repos/bojand/lounge/comments{/number}","issue_comment_url":"https://api.github.com/repos/bojand/lounge/issues/comments{/number}","contents_url":"https://api.github.com/repos/bojand/lounge/contents/{+path}","compare_url":"https://api.github.com/repos/bojand/lounge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bojand/lounge/merges","archive_url":"https://api.github.com/repos/bojand/lounge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bojand/lounge/downloads","issues_url":"https://api.github.com/repos/bojand/lounge/issues{/number}","pulls_url":"https://api.github.com/repos/bojand/lounge/pulls{/number}","milestones_url":"https://api.github.com/repos/bojand/lounge/milestones{/number}","notifications_url":"https://api.github.com/repos/bojand/lounge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bojand/lounge/labels{/name}","releases_url":"https://api.github.com/repos/bojand/lounge/releases{/id}","deployments_url":"https://api.github.com/repos/bojand/lounge/deployments","created_at":"2014-06-24T01:41:50Z","updated_at":"2016-09-01T21:14:50Z","pushed_at":"2016-09-13T14:59:39Z","git_url":"git://github.com/bojand/lounge.git","ssh_url":"git@github.com:bojand/lounge.git","clone_url":"https://github.com/bojand/lounge.git","svn_url":"https://github.com/bojand/lounge","homepage":"http://bojand.github.io/lounge","size":2464,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bojand/lounge/pulls/44"},"html":{"href":"https://github.com/bojand/lounge/pull/44"},"issue":{"href":"https://api.github.com/repos/bojand/lounge/issues/44"},"comments":{"href":"https://api.github.com/repos/bojand/lounge/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/bojand/lounge/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/bojand/lounge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bojand/lounge/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/bojand/lounge/statuses/e22a14767f23f340fe6f2f4c7919bb54a58f32be"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":771,"deletions":58,"changed_files":7}}
{"actor":{"display_login":"atrites"}}