I want to delete the empty strings and empty arrays within a document. Is there a way to do this with the MongoDB Aggregation Framework? Here is an example of an incoming document:
"item": [{
"array_objects":[{
"text": '',
"second_text": '',
"empty_array": [],
"empty_array_2":[],
}]
}]