{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/255","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/255/comments","events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/255/events","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/255","id":78616220,"number":255,"title":"--fields should allow nested fields","user":{"login":"llvtt","id":5168837,"avatar_url":"https://avatars.githubusercontent.com/u/5168837?v=3","gravatar_id":"","url":"https://api.github.com/users/llvtt","html_url":"https://github.com/llvtt","followers_url":"https://api.github.com/users/llvtt/followers","following_url":"https://api.github.com/users/llvtt/following{/other_user}","gists_url":"https://api.github.com/users/llvtt/gists{/gist_id}","starred_url":"https://api.github.com/users/llvtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llvtt/subscriptions","organizations_url":"https://api.github.com/users/llvtt/orgs","repos_url":"https://api.github.com/users/llvtt/repos","events_url":"https://api.github.com/users/llvtt/events{/privacy}","received_events_url":"https://api.github.com/users/llvtt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/labels/new%20feature","name":"new feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/milestones/3","html_url":"https://github.com/mongodb-labs/mongo-connector/milestones/2.2","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/milestones/3/labels","id":1189712,"number":3,"title":"2.2","description":"","creator":{"login":"llvtt","id":5168837,"avatar_url":"https://avatars.githubusercontent.com/u/5168837?v=3","gravatar_id":"","url":"https://api.github.com/users/llvtt","html_url":"https://github.com/llvtt","followers_url":"https://api.github.com/users/llvtt/followers","following_url":"https://api.github.com/users/llvtt/following{/other_user}","gists_url":"https://api.github.com/users/llvtt/gists{/gist_id}","starred_url":"https://api.github.com/users/llvtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llvtt/subscriptions","organizations_url":"https://api.github.com/users/llvtt/orgs","repos_url":"https://api.github.com/users/llvtt/repos","events_url":"https://api.github.com/users/llvtt/events{/privacy}","received_events_url":"https://api.github.com/users/llvtt/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-07-01T20:49:16Z","updated_at":"2015-07-01T20:53:04Z","due_on":"2015-08-05T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-05-20T17:25:03Z","updated_at":"2015-10-10T20:23:57Z","closed_at":null,"body":"Right now, `--fields` only works with top-level fields in a document. It would be nice if `--fields` would be able to handle fields in a sub-document as well.\r\n\r\n#### Sub-feature: wildcard characters\r\nso that all fields within a sub-document can be specified more easily in the config file or the command-line. e.g.:\r\n\r\n    {\r\n        \"subdoc\": {\r\n            \"a\": ...,\r\n            \"b\": ...,\r\n            \"c\": ...\r\n        }\r\n        \"otherField\": 42\r\n    }\r\n\r\nwe can include all fields within `subdoc` like this:\r\n\r\n    mongo-connector --fields 'subdoc.*'\r\n\r\ninstead of this:\r\n\r\n    mongo-connector --fields subdoc.a,subdoc.b,subdoc.c\r\n\r\nAllowing wildcard characters only at the end of field names is probably enough for now.\r\n"},"comment":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/comments/147122723","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/255#issuecomment-147122723","issue_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/255","id":147122723,"user":{"login":"gairom","id":10984403,"avatar_url":"https://avatars.githubusercontent.com/u/10984403?v=3","gravatar_id":"","url":"https://api.github.com/users/gairom","html_url":"https://github.com/gairom","followers_url":"https://api.github.com/users/gairom/followers","following_url":"https://api.github.com/users/gairom/following{/other_user}","gists_url":"https://api.github.com/users/gairom/gists{/gist_id}","starred_url":"https://api.github.com/users/gairom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gairom/subscriptions","organizations_url":"https://api.github.com/users/gairom/orgs","repos_url":"https://api.github.com/users/gairom/repos","events_url":"https://api.github.com/users/gairom/events{/privacy}","received_events_url":"https://api.github.com/users/gairom/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T20:23:57Z","updated_at":"2015-10-10T20:23:57Z","body":"I don't understand why it doesn't work...\r\nMy oplog record look like this (both \"op\" \"i\" & \"u\" include the doc):\r\n \"o\" : {\r\n                \"_id\" : ObjectId(\"xxxxxx\"),\r\n                \"field1\" : \"aaaa\",\r\n                \"field2\" : NumberLong(\"11111\"),\r\n                \"field3\" : \"bbbb\",\r\n                \"field4\" : {\r\n                        \"sf1\" : \"ccccc\",\r\n                        \"sf2\" : NumberLong(\"222222\"),\r\n                        \"sf3\" : \"ddddd\"\r\n                 }\r\n}\r\n\r\nMy --fields is \"field1\",\"field2\",\"field4.sf1\",\"field4.sf2\"\r\nFor both inserts and updates I see only field1 & field2...\r\nI don't see in the oplog things like \"field4.0\"\r\n\r\nIf I want it to work I need to change my --field to \"field4.0\",\"field4.1\"??"}}