Database
[{"NDEfailedDate":[{"_id":"2022-04-08","count":6.0}],"NDEfailedCount":[{"totalCount":5}]}]
Query
db.collection.aggregate([{$project:{_id:{$first:"$NDEfailedDate._id"},count:{$first:"$NDEfailedCount.totalCount"}}}])