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
  • 34,719
  • 24
  • 185
  • 251
Rohit Funde
  • 974
  • 1
  • 12
  • 20

0 Answers0