{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/3098","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/3098/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/3098/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/3098/events","html_url":"https://github.com/Automattic/mongoose/issues/3098","id":90499810,"number":3098,"title":"How to get indexes from model instance","user":{"login":"skleeschulte","id":3659947,"avatar_url":"https://avatars.githubusercontent.com/u/3659947?v=3","gravatar_id":"","url":"https://api.github.com/users/skleeschulte","html_url":"https://github.com/skleeschulte","followers_url":"https://api.github.com/users/skleeschulte/followers","following_url":"https://api.github.com/users/skleeschulte/following{/other_user}","gists_url":"https://api.github.com/users/skleeschulte/gists{/gist_id}","starred_url":"https://api.github.com/users/skleeschulte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skleeschulte/subscriptions","organizations_url":"https://api.github.com/users/skleeschulte/orgs","repos_url":"https://api.github.com/users/skleeschulte/repos","events_url":"https://api.github.com/users/skleeschulte/events{/privacy}","received_events_url":"https://api.github.com/users/skleeschulte/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T21:52:23Z","updated_at":"2015-06-24T15:31:13Z","closed_at":"2015-06-24T15:31:13Z","body":"Given a model instance I need to find the indexes defined on it's schema. A model instance has a `schema` property, which in turn has an `_indexes` property which contains the information I'm looking for. But I guess the leading underscore marks this property as \"private\" in the sense of \"don't use this property, it's not meant to be accessed directly and can change at any time\". Am I right? And if so, what is the correct way to get the indexes from a model instance?"}}