.removeOne(index)

Just want to remove one object? You got it! Just give an index of the object you want to remove

db.find({type: "Human"})
    .then((data) => {
        data.removeOne(0)
    })

Again, to explain a bit more, This will delete the first element of the results of {type: "Human"} from .find()

results matching ""

    No results matching ""