1

In mongoDB I am creating collection which contains special names for ex-

> db.createCollection("collection-demo")
{ "ok" : 1 }

but when I am trying to access the collection it gives error

> db.collection-demo.find()
2015-07-09T14:44:56.603+0530 ReferenceError: demo is not defined

How to access this collection using command line?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Rohit Funde
  • 1,080
  • 1
  • 13
  • 20

0 Answers0