critiques and vis data stored properly in MongoDb, created object literal in order to return both the new crit and any corresponding details. Just realized, however, I need to account for no visData in return object before populating feedback area
failing with push() array method to update critiques and details. Will try $push method seen in Stack Overflow
Trying solution derived from StackOverflow: findOneAndUpdate using critique_id as identifier and $push command
Minor change to second query
On the right track! Finally able to store vis data as sub sub doc. Last issue is figuring out why update script is returning a truncated string instead of an object
After having a mental breakdown when vis data storage stopped working all of a sudden, I found the bug and things are fixed. Note to self: when renaming object properties, make sure to do it EVERYWHERE. Also took a shortcut with the immediate display of vis data. Instead of using regurgitated server response data, I simpoly appended the submitted form data to the generic feedback data provided by the http.post callback. Totally fine with that at this point!