{"action":"created","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/44","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/44/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/44/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/44","id":94464919,"number":44,"title":"How to specify that a field is indexed in MongoDB?","user":{"login":"dpdonohue","id":3017475,"avatar_url":"https://avatars.githubusercontent.com/u/3017475?v=3","gravatar_id":"","url":"https://api.github.com/users/dpdonohue","html_url":"https://github.com/dpdonohue","followers_url":"https://api.github.com/users/dpdonohue/followers","following_url":"https://api.github.com/users/dpdonohue/following{/other_user}","gists_url":"https://api.github.com/users/dpdonohue/gists{/gist_id}","starred_url":"https://api.github.com/users/dpdonohue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpdonohue/subscriptions","organizations_url":"https://api.github.com/users/dpdonohue/orgs","repos_url":"https://api.github.com/users/dpdonohue/repos","events_url":"https://api.github.com/users/dpdonohue/events{/privacy}","received_events_url":"https://api.github.com/users/dpdonohue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T11:46:32Z","updated_at":"2015-07-11T16:16:16Z","closed_at":null,"body":"Apologies if I missed this somewhere.  Thanks for an awesome product!"},"comment":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/comments/120636885","html_url":"https://github.com/jagi/meteor-astronomy/issues/44#issuecomment-120636885","issue_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/44","id":120636885,"user":{"login":"jagi","id":1051229,"avatar_url":"https://avatars.githubusercontent.com/u/1051229?v=3","gravatar_id":"","url":"https://api.github.com/users/jagi","html_url":"https://github.com/jagi","followers_url":"https://api.github.com/users/jagi/followers","following_url":"https://api.github.com/users/jagi/following{/other_user}","gists_url":"https://api.github.com/users/jagi/gists{/gist_id}","starred_url":"https://api.github.com/users/jagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagi/subscriptions","organizations_url":"https://api.github.com/users/jagi/orgs","repos_url":"https://api.github.com/users/jagi/repos","events_url":"https://api.github.com/users/jagi/events{/privacy}","received_events_url":"https://api.github.com/users/jagi/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T16:16:16Z","updated_at":"2015-07-11T16:16:16Z","body":"This feature is already available but not published yet. I will publish it on Monday :)\r\n\r\nYou will define it in the schema definition:\r\n\r\n```js\r\nPost = Astro.class({\r\n  collection: Posts,\r\n  fields: {\r\n    name: 'string'\r\n  },\r\n  indexes: {\r\n    indexName: {\r\n      fields: {\r\n        name: 1\r\n      },\r\n      options: {}\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nWhere the value in the field is an index order. In fact it just passes an index definition to standard `ensureIndex` function of the MongoDB collection."}}