“Cannot use a session that has ended” error when querying MongoDB
i am trying to get a string from all documents in a mongo db collection, but when it starts it give me an error:
mongodb update query throws ts error ‘incompatible with index signature’
I updated mongodb from v4 to v6 and now I do get a typescript error in my function which I do not understand: