DEV Community

ivkeMilioner
ivkeMilioner

Posted on • Updated 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();

Top comments (0)