@Prasad_Saya Unfortunately I cannot use pipeline operators such as $inc this way. Getting error
[distribution] MongoError: Unrecognized expression '$inc'
[distribution] at Function.create (/app/node_modules/mongoose/node_modules/mongodb/lib/core/error.js:51:12)
[distribution] at toError (/app/node_modules/mongoose/node_modules/mongodb/lib/utils.js:149:22)
[distribution] at /app/node_modules/mongoose/node_modules/mongodb/lib/operations/common_functions.js:376:39
[distribution] at handler (/app/node_modules/mongoose/node_modules/mongodb/lib/core/sdam/topology.js:913:24)
[distribution] at /app/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection_pool.js:356:13
[distribution] at handleOperationResult (/app/node_modules/mongoose/node_modules/mongodb/lib/core/sdam/server.js:493:5)
[distribution] at commandResponseHandler (/app/node_modules/mongoose/node_modules/mongodb/lib/core/wireprotocol/command.js:123:25)
[distribution] at MessageStream.messageHandler (/app/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:272:5)
[distribution] at MessageStream.emit (node:events:376:20)
[distribution] at processIncomingData (/app/node_modules/mongoose/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
[distribution] at MessageStream._write (/app/node_modules/mongoose/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
[distribution] at writeOrBuffer (node:internal/streams/writable:395:12)
[distribution] at MessageStream.Writable.write (node:internal/streams/writable:340:10)
[distribution] at TLSSocket.ondata (node:internal/streams/readable:748:22)
[distribution] at TLSSocket.emit (node:events:376:20)
[distribution] at addChunk (node:internal/streams/readable:311:12) {
[distribution] driver: true,
[distribution] index: 0,
[distribution] code: 168
[distribution] }