I just started using MongoDB and everything that goes with it. Whenever I enter a query in Mongosh, I either get no output or this error :
"Error: clone(t={}){const r=t.loc||{};return e({loc:new Position("line"in r?r.line:this.loc.line,"column"in r?r.column:......)} could not be cloned." the error
For example here is the query : "db.restaurants.find( { $or : [ { " cuisine ": " Italian " }, { " address . zipcode ":"10075" } ] } )
Several other find methods didn't work and I couldn't use "mongoimport −−db sid −−collection restaurants −−drop −−file data.json" to import my json file, I had to manually import it into Compass (I had the exact same error).
Am I missing something here? Thanks in advance.