I want $matchonly empty objects in mine aggregate(). Is it possible? I know $exists, but a {}boolean true, so I'm stuck.
$match
aggregate()
$exists
{}
true
Did you try to just use {field: {}}?
{field: {}}
For instance:
db.users.aggregate([{$match: {val: {}}}])
Source: https://habr.com/ru/post/1666237/More articles:How to get calculations for each section in values ββin the range 0-10, 10-20, ... 90-100 - pythonjQuery element.closest (...). attr is not a function when using each - javascriptSpacer element in QML layouts - qtIs there a way to find C keyword information from linux command line? - cHow to set a specific spacing for elements in a QML layout? - qtProjecting independent references to multilevel objects in Entity Framework 6 - c #Text data is not correctly written to the marklogic database using the adoop connector - hadoopΠΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΠΈΠΉ ΠΈΡΡΠΎΡΠ½ΠΈΠΊ Π΄Π°Π½Π½ΡΡ Spark Ρ ΠΏΡΠΈΠΌΠΈΡΠΈΠ²Π½ΡΠΌΠΈ Π±Π°ΠΉΡΠΎΠ²ΡΠΌΠΈ ΠΌΠ°ΡΡΠΈΠ²Π°ΠΌΠΈ - ΠΈΠ·Π±Π΅Π³Π°ΠΉΡΠ΅ Π±ΠΎΠΊΡΠ°? - scalaCtrl + P and Ctrl + N for navigation on jupyter laptops - ipython-notebookAmazing result with lambdas - pythonAll Articles