Console output correctly displays new 'hero' and 'suggest' object data:
{"data":{"_id":{"$oid":"55352e5a2e402e53598b456f"},"ceeb":"10000","name":"Abbeville High School","state":"AL","street_1":"411 Graball Cutoff","suggest":{"input":["Abbeville High School","Abbeville","AL"],"output":"Abbeville High School - Abbeville, AL","payload":{"ceeb":"10000"}},"type":"highschool","updated_at":{"$date":1429548634000},"zipcode":"36310","zipcode4":"2073"},"ns":"luminous-live.luminous_ceebs","op":"insert","ts":1461873170}
However, .save output shows the new object as empty:
{"_id":"55352e5a2e402e53598b456f","ceeb":"10000","hero":{},"name":"Abbeville High School","state":"AL","street_1":"411 Graball Cutoff","suggest":{},"type":"highschool","updated_at":"2015-04-20T16:50:34Z","zipcode":"36310","zipcode4":"2073"}
When creating / adding a new object to data in a transformer:
Console output correctly displays new 'hero' and 'suggest' object data:
{"data":{"_id":{"$oid":"55352e5a2e402e53598b456f"},"ceeb":"10000","name":"Abbeville High School","state":"AL","street_1":"411 Graball Cutoff","suggest":{"input":["Abbeville High School","Abbeville","AL"],"output":"Abbeville High School - Abbeville, AL","payload":{"ceeb":"10000"}},"type":"highschool","updated_at":{"$date":1429548634000},"zipcode":"36310","zipcode4":"2073"},"ns":"luminous-live.luminous_ceebs","op":"insert","ts":1461873170}
However, .save output shows the new object as empty:
{"_id":"55352e5a2e402e53598b456f","ceeb":"10000","hero":{},"name":"Abbeville High School","state":"AL","street_1":"411 Graball Cutoff","suggest":{},"type":"highschool","updated_at":"2015-04-20T16:50:34Z","zipcode":"36310","zipcode4":"2073"}
Config:
js pipeline: