I’m working with MongoDB and Node.js. I have scraped a bunch of HTML tables and inserted them into preexisting records using
await collection.updateOne({ "_id": m._id }, { $set: m.myObj });
Unfortunately, these are in string format. I’d like to do some mongo filtering by treating them as numbers. Is there a way to do this?