{"action":"created","issue":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/249","repository_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose","labels_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/249/comments","events_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/249/events","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/issues/249","id":132855351,"number":249,"title":"populate all refs","user":{"login":"alfredopacino","id":6325475,"avatar_url":"https://avatars.githubusercontent.com/u/6325475?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredopacino","html_url":"https://github.com/alfredopacino","followers_url":"https://api.github.com/users/alfredopacino/followers","following_url":"https://api.github.com/users/alfredopacino/following{/other_user}","gists_url":"https://api.github.com/users/alfredopacino/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredopacino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredopacino/subscriptions","organizations_url":"https://api.github.com/users/alfredopacino/orgs","repos_url":"https://api.github.com/users/alfredopacino/repos","events_url":"https://api.github.com/users/alfredopacino/events{/privacy}","received_events_url":"https://api.github.com/users/alfredopacino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T00:10:42Z","updated_at":"2016-02-11T07:32:33Z","closed_at":null,"body":"Hi, I have several refs in my docs, there is a way to populate all without explicit list?\r\n\r\nThis is my sample schema: refs, array of refs and even array of embedded document with refs in it.\r\n\r\n```\r\nvar mySchema = new Schema({\r\n    name:{type:String,description:\"Title\"},\r\n    ref:{type: ObjectId, ref: 'mod0' },\r\n    array:[{type: ObjectId, ref: 'mod1' }],\r\n    embedded:[{ref:{type: ObjectId, ref: 'mod2' },comment:String}]\r\n...\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/comments/182747613","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/issues/249#issuecomment-182747613","issue_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/249","id":182747613,"user":{"login":"Zertz","id":2636763,"avatar_url":"https://avatars.githubusercontent.com/u/2636763?v=3","gravatar_id":"","url":"https://api.github.com/users/Zertz","html_url":"https://github.com/Zertz","followers_url":"https://api.github.com/users/Zertz/followers","following_url":"https://api.github.com/users/Zertz/following{/other_user}","gists_url":"https://api.github.com/users/Zertz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zertz/subscriptions","organizations_url":"https://api.github.com/users/Zertz/orgs","repos_url":"https://api.github.com/users/Zertz/repos","events_url":"https://api.github.com/users/Zertz/events{/privacy}","received_events_url":"https://api.github.com/users/Zertz/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T07:32:33Z","updated_at":"2016-02-11T07:32:33Z","body":"We mirror mongoose behavior so you must call populate with all the fields you need."}}