{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/56","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/56/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/56/events","html_url":"https://github.com/Automattic/mongoose/issues/56","id":323121,"number":56,"title":"Unique indexes not working","user":{"login":"diogobaeder","id":207168,"avatar_url":"https://avatars.githubusercontent.com/u/207168?v=3","gravatar_id":"","url":"https://api.github.com/users/diogobaeder","html_url":"https://github.com/diogobaeder","followers_url":"https://api.github.com/users/diogobaeder/followers","following_url":"https://api.github.com/users/diogobaeder/following{/other_user}","gists_url":"https://api.github.com/users/diogobaeder/gists{/gist_id}","starred_url":"https://api.github.com/users/diogobaeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogobaeder/subscriptions","organizations_url":"https://api.github.com/users/diogobaeder/orgs","repos_url":"https://api.github.com/users/diogobaeder/repos","events_url":"https://api.github.com/users/diogobaeder/events{/privacy}","received_events_url":"https://api.github.com/users/diogobaeder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2010-09-19T06:09:15Z","updated_at":"2015-07-09T13:55:46Z","closed_at":"2010-10-13T07:35:14Z","body":"Hi, I'm trying to use model indexes with unique properties, but it's not working as expected by the native ensureIndex method from MongoDB. This is a sample of my model code:\r\n    indexes: [\r\n        [{username: 1}, {unique: true, dropDups: true}]\r\n    ],\r\nthe instance save calls are generating subsequential records in the base."},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/119981333","html_url":"https://github.com/Automattic/mongoose/issues/56#issuecomment-119981333","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/56","id":119981333,"user":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T13:55:46Z","updated_at":"2015-07-09T13:55:46Z","body":"@alexbooker please provide more information and open up a new issue"}}