Details
-
Task
-
Resolution: Fixed
-
Minor - P4
-
None
Description
Currently, it is not possible to create a view in one database sourced from a collection in another database. As indicated in the db.createView() documentation (https://docs.mongodb.com/v3.6/reference/method/db.createView/#db.createView), the source parameter for the view does not include the database name and implies the same database as the view to create. However this statement is buried deep and is very subtle.
It would help if the documentation on views and db.createView explicitly state the limitation that it is not possible to create a view in one database sourced from a collection in another database.