Using variables to build dynamic MongoDB/Mongoose query of nested object – Twitter API
My app has 4 identical Node/Express API routes that are meant to remove an nested object property within a MongoDB database. The only difference in syntax between these 4 routes is a string value (either "facebook", "google", "twitter" or "github".…