Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56053

Cannot insert or run find commands on a collection "hello"

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL
    • Hide

      Insert command on a servless instance (Mongo Shell 4.9.0)

      breaking-serverless-1-shard-00-01(mongos-4.9.0-rc0)[mongos] testing> show collections
      breaking-serverless-1-shard-00-01(mongos-4.9.0-rc0)[mongos] testing> db["hello"].insertOne({})
      uncaught exception: TypeError: db.hello.insertOne is not a function :
      @(shell):1:1

      Insert command on a local instance (Mongo Shell 4.2)

      MacBook-Pro-130(mongod-4.2.1) testing> show collections
      MacBook-Pro-130(mongod-4.2.1) testing> db["hello"].insertOne({})
      {
        "acknowledged": true,
        "insertedId": ObjectId("6074a28f20a52b4a6c924d97")
      }
      
      Show
      Insert command on a servless instance (Mongo Shell 4.9.0) breaking-serverless-1-shard-00-01(mongos-4.9.0-rc0)[mongos] testing> show collections breaking-serverless-1-shard-00-01(mongos-4.9.0-rc0)[mongos] testing> db[ "hello" ].insertOne({}) uncaught exception: TypeError: db.hello.insertOne is not a function : @(shell):1:1 Insert command on a local instance (Mongo Shell 4.2) MacBook-Pro-130(mongod-4.2.1) testing> show collections MacBook-Pro-130(mongod-4.2.1) testing> db[ "hello" ].insertOne({}) { "acknowledged" : true , "insertedId" : ObjectId( "6074a28f20a52b4a6c924d97" ) }

      • Unable to run find command or insert command on a "hello" collection

            Assignee:
            judah.schvimer@mongodb.com Judah Schvimer
            Reporter:
            andrew.marshall@mongodb.com Andrew Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: