DEV Community

ivkeMilioner
ivkeMilioner

Posted on • Edited on

1 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more