DEV Community

ivkeMilioner
ivkeMilioner

Posted on

I want to show the names of all but two collections.

I want to get all the collections names I have and show them, and I want to skip two collections "middle", and "xxx". How to do that?

Pice of my code.
await db.listCollections({name:"middle","xxx"} ).toArray();

Discussion (0)