Mongo client can’t access collections prefixed with an underscore

Mongo client can’t access collections prefixed with an underscore

Asked on January 4, 2019 in Meteor.
Add Comment


  • 2 Answer(s)

    Shell not address with it ordinary helper syntax. The problem other than that, Still access at the collections named like in the shell:

    db.createCollection("_assignments")
    { "ok" : 1 }
    db.getCollection("_assignments").find()
    db.getCollection("_assignments").insert({ "a": 1 })
    WriteResult({ "nInserted" : 1 })
    db.getCollection("_assignments").find({ "a": 1 })
    { "_id" : ObjectId("53a36a4047234c4e9bb4feac"), "a" : 1 }
    
    Answered on January 4, 2019.
    Add Comment

    It can be called bug. Not prefix collections with underscores.

    Try to see this link:

    https://jira.mongodb.org/browse/SERVER-445

    Answered on January 4, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.