I want to modify the validation of my collection using collmod command. but when I call the runCommand() function it gives me error runCommand is not a function. I am trying to connect using nodejs driver
const uri = "mongodb://localhost:27017";
const client = new MongoClient(uri);
client.db('E-commerce').runCommand({collmod:'category',categorySchema})