As someone new to MongoDB, I've put together this JavaScript file:
db=connection.getDB("TPMongo1028257");
var inversiones=[{
categoria:"Accion",
fdc:new Date(2019,07,05,0,0),
iin: NumberDecimal ("5214.365"),
cantidad:5,
precioac: NumberDecimal ("9005.3659"),
asesor:{
nombre:"Carlos Solange",
sitM:"Suba de las acciones",
recom:"Comprar mas acciones",
},
operacion:[{
cat:"Accion",
fdo:new Date(2019,10,15,0,0),
importe: NumberDecimal ("9055.3659"),
tipo:"Compra",
asesor: "Carlos Solange"
},
{
cat:"Accion",
fdo:new Date(2019,11,05,0,0),
importe: NumberDecimal ("9189.1789"),
tipo:"Compra",
asesor:"Carlos Solange"
}],
},
// More data here...
Upon loading the file, everything seems to be in order as it returns "true" and displays my collection when queried with db.getCollectionNames(). However, when I try running db.[INSERT_DB_NAME].find(), no results are returned. This issue occurs on multiple computers running Ubuntu 18.04.
I apologize if this is a basic question, but I could really use some guidance right now.