{"action":"created","issue":{"url":"https://api.github.com/repos/okgrow/analytics/issues/45","labels_url":"https://api.github.com/repos/okgrow/analytics/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/okgrow/analytics/issues/45/comments","events_url":"https://api.github.com/repos/okgrow/analytics/issues/45/events","html_url":"https://github.com/okgrow/analytics/issues/45","id":98083209,"number":45,"title":"The publish function wipes out other projections I have ","user":{"login":"adamgins","id":7233741,"avatar_url":"https://avatars.githubusercontent.com/u/7233741?v=3","gravatar_id":"","url":"https://api.github.com/users/adamgins","html_url":"https://github.com/adamgins","followers_url":"https://api.github.com/users/adamgins/followers","following_url":"https://api.github.com/users/adamgins/following{/other_user}","gists_url":"https://api.github.com/users/adamgins/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgins/subscriptions","organizations_url":"https://api.github.com/users/adamgins/orgs","repos_url":"https://api.github.com/users/adamgins/repos","events_url":"https://api.github.com/users/adamgins/events{/privacy}","received_events_url":"https://api.github.com/users/adamgins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T04:33:07Z","updated_at":"2015-07-31T13:44:40Z","closed_at":null,"body":"The publish Users function, uses the following projection:\r\n\r\n```\r\n{fields: {  'services.facebook.email': 1,\r\n                  'services.google.email': 1,\r\n                  'services.github.email': 1 }});\r\n``` \r\nhttps://github.com/okgrow/analytics/blob/master/lib/server/publications.js\r\n\r\nFor example, if I had to get `services.facebook.<some other attribute>`\r\n\r\nI need to get additional fields for my user record, so this publish wipes them out.\r\n\r\nIs there some way to workaround this please? "},"comment":{"url":"https://api.github.com/repos/okgrow/analytics/issues/comments/126695635","html_url":"https://github.com/okgrow/analytics/issues/45#issuecomment-126695635","issue_url":"https://api.github.com/repos/okgrow/analytics/issues/45","id":126695635,"user":{"login":"tsemana","id":573540,"avatar_url":"https://avatars.githubusercontent.com/u/573540?v=3","gravatar_id":"","url":"https://api.github.com/users/tsemana","html_url":"https://github.com/tsemana","followers_url":"https://api.github.com/users/tsemana/followers","following_url":"https://api.github.com/users/tsemana/following{/other_user}","gists_url":"https://api.github.com/users/tsemana/gists{/gist_id}","starred_url":"https://api.github.com/users/tsemana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsemana/subscriptions","organizations_url":"https://api.github.com/users/tsemana/orgs","repos_url":"https://api.github.com/users/tsemana/repos","events_url":"https://api.github.com/users/tsemana/events{/privacy}","received_events_url":"https://api.github.com/users/tsemana/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T13:44:40Z","updated_at":"2015-07-31T13:44:40Z","body":"@adamgins - thanks for pointing this out. We think it might be a bug in how meteor handles sub-documents specified in separate publications. I'm going to create a meteorpad and submit a bug on meteor.\r\nIn the meantime unfortunately it looks like you might need to include the package source in your codebase and modify it to remove the facebook field from the package and ensure you include `services.facebook.email` in your project publication.\r\nPlease let me know if you find a different workaround. I'll link to this issue when I submit the meteor issue."}}