I need to delete an array element using its index with mongoose, atm what I'm doing is splice the array and then update the database using $set, isn't there a more direct way to do this?
vcs = vcs.splice(vcIndex, 1);
await client.guildSchema.updateOne({guildID: oldState.guild.id}, {'$set':{'vcs':vcs}})