Can we create sub Collection inside a mongoDB document as we can create in firebase firestore?
MongoDB's logical architecture is:
Cluster
- Database
-- Collection
--- Document
You can have multiple databases, each with multiple collections, each with multiple documents, each with what ever you want to put in your documents.
Documents can have complex fields like objects/dictionaries and lists/arrays.
You can index on inner fields, not only on the top level ones.