How do I create a view in mongo db which can expose all the documents from a collection? I have used following code:
java.util.List<Bson> tstL = new ArrayList<>();
db.createView("tst_view","collection_name",tstL);
I am trying it with empty list for pipeline but it doesn't work. Can you please help?