Pull data from array in mongodb, if data is more then 10 minutes older and temporary is true

Here is my data “data”: { “_id”: “5d7d265fe4157f1710679848”, “firstName”: “camperf44”, “lastName”: “camperl2”, “balance”: 300, “maximumUsable”: “100”, “transactions”: [ { “_id”: “5d7d265fe4157f171067984a”, “date”: “1970-01-01T00:00:11.545Z”, “description”: “this transection for camp only”, “amount”: 200 }, { “_id”: “5d7d265fe4157f1710679849”, “date”: “1970-01-01T00:01:28.787Z”, “description”: “this transection for camp only”, “amount”: 300 }, { “_id”: “5d7d269fe4157f171067984b”, “amount”: -100, “description”: “Order”, “date”: “2019-09-14T17:42:55.335Z”,…

Mongodb query for selecting embeded object

I have a collection whose documents look like this {‘_id’: ObjectId(‘5d7f4aa4d2394d86aacbfbe0’), ‘aeroplanes’: [{‘_id’: ObjectId(‘5d7f4aa4d2394d86aacbfbd8’), ‘capacity’: 1442, ‘flights’: [{‘_id’: ObjectId(‘5d7f4aa4d2394d86aacbfbd7’), ‘arrival_time’: datetime.datetime(2010, 10, 8, 3, 26, 50), ‘departure_time’: datetime.datetime(1988, 6, 29, 14, 10, 52), ‘gate_number’: 6, ‘seats’: [{‘_id’: ObjectId(‘5d7f4aa4d2394d86aacbfbd6’), ‘price’: 1779, ‘ticket’: None, ‘type’: ‘A’}]}], I want to select all the seats with None (null) type.…