Javascript – convert object literal notation to dot notation for mongoose
In NodeJS I receive from Postman an object like: sysData: { status: 'active' } This needs to be dynamically converted to dot notation like { 'sysData.status': 'active' } so I can do a find with Mongoose. The object can change.…