Describe the bug
When selecting rows and clicking Update, it changes to NodeShell with a UpdateMany snippet.
The snippet works fine for a collection such products (return await products.updateMany).
When it's a collection such as products.details (return await distributors.catalog.updateMany), it won't work because of the dot, leading to a TypeError: Cannot read properties of undefined (reading 'updateMany').
A suggestion would be to detect the dot and instead the snippet uses return await db.collection("products.details").updateMany
Screenshots
Desktop (please complete the following information):
Describe the bug When selecting rows and clicking Update, it changes to NodeShell with a UpdateMany snippet. The snippet works fine for a collection such products (
return await products.updateMany
). When it's a collection such as products.details (return await distributors.catalog.updateMany
), it won't work because of the dot, leading to a TypeError: Cannot read properties of undefined (reading 'updateMany').A suggestion would be to detect the dot and instead the snippet uses
return await db.collection("products.details").updateMany
Screenshots
Desktop (please complete the following information):