I can't find a simple example to run https://www.mongodb.com/docs/v6.0/reference/command/insert/#insert-a-single-document using MongoDB Java Sync driver 4.7 version?
I want to execute this simple example:
db.runCommand(
{
insert: "users",
documents: [ { _id: 1, user: "abc123", status: "A" } ]
}
)
FWIW, I do not want to execute insertOne or insertMany here and want to use plain JSON. Thank you in advance!