I am just learning mongodb and have one important question. Is in mongodb something for security like its in php? In php I could use something like:
$stmt = $this->conn->prepare("UPDATE news SET shown = shown+1 WHERE newsID = :newsID");
$stmt->bindValue(":newsID", $id, PDO::PARAM_INT);
$stmt->execute();
But what in mongodb? Its weird to see inserting variables directly into mongodb insert statement like:
db.products.insertOne( { _id: 10, "item": itemName, "qty": itemQuantity } );
Thank you for your explanation!