I know that the Pymogno update_many method supports array_filter. but find method does not support array_filter. What should I do?
here is my json:
[{'milestones': [{'content': 'The idea of multiwallet + debit card integration '
'was born. ',
'title': 'September, 2017 '},
{'content': 'The team of 10 professionals, including coders, '
'designer, lawyer and CFO was\r\n'
'founded. ',
'title': 'September, 2017-January 2018'},
{'content': 'Deal with Estonian private-owned bank, issuing '
'pre-paid Mastercard® for\r\n'
'ZANTEPAY.',
'title': 'February 1st, 2018'}]}]
here is my code:
db = MongoClient("localhost:27017")
db.collection.find({'milestones.title':{'$regex':'September'}},{'milestones.$.title'})
and result:
[{'milestones': [{'content': 'The idea of multiwallet + debit card integration '
'was born. ',
'title': 'September, 2017 '}]}]
The result I want is as follows:
[{'milestones': [{'content': 'The idea of multiwallet + debit card integration '
'was born. ',
'title': 'September, 2017 '},
{'content': 'The team of 10 professionals, including coders, '
'designer, lawyer and CFO was\r\n'
'founded. ',
'title': 'September, 2017-January 2018'}]}]
I'd like to get some advice. Thank you.