From a mongo collection I have a deleted field, this field is null or has a date, I am trying to get only the documents whose deleted is with date, or in other words, to eliminate those whose deleted: null, for this I am using ramda but it only returns all the documents.
, deletedFilesList () {
return reject(equals(null))(this.rows);
}
Any idea??
2
Answers
For a Ramda approach, you’ll need a predicate that looks at a given prop:
Reject all items which their
deleted
prop is equal tonull
: