Error on Mongo Shell

I’m trying to do an update and I’m getting errors. Also on “find” queries. Someon could help?

use _df_qa
switched to db _df_qa
show collections
_df_producto
db._df_producto.find({heladera:“0”})
2020-02-18T14:35:46.752-0300 E QUERY [js] uncaught exception: TypeError: db._df_producto is undefined :
@(shell):1:1

Re collection names beginning with underscore, please read:
https://docs.mongodb.com/manual/reference/limits/#Restriction-on-Collection-Names

3 Likes

Hi @Raul_13532,

I hope you found the link shared by @007_jb helpful.

You can rewrite it as :

db.getCollection("_df_producto").find({heladera:"0"})

Thanks,
Shubham Ranjan
Curriculum Services Engineer