Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12112

Docs should explicitly state the limitation that views cannot be created on collections present in another database

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual, Server
    • Labels:

      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.

       

        Attachments

          Activity

            People

            Assignee:
            isabella.siu Isabella Siu (Inactive)
            Reporter:
            harshad.dhavale Harshad Dhavale
            Participants:
            Last commenter:
            Isabella Siu Isabella Siu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              3 years, 14 weeks, 6 days ago
              Date of 1st Reply: