0 votes
2.9k views
in MongoDB by
How to show all collections in mongo ? or how to show all tables in selected mongo database ?

1 Answer

0 votes
by

show collections command provide us to see all collections or tables in selected mongoDB database (testDB). testDB collection contains only one collection like: user.

Following commands type on mongo console:
show collections

Output:
> show collections
system.indexes
user

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...