Created
February 22, 2024 12:29
-
-
Save ilgooz/735d6e9eb2a8b726565745135d1142e6 to your computer and use it in GitHub Desktop.
query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test3.blocks.aggregate([ | |
{ | |
$search: { | |
index: "block-files-idx", | |
phrase: { | |
query: "// method proxies as public functions", | |
path: "block_body.block_data.txs.msg.package.files.body" | |
} | |
} | |
}, | |
{ | |
$match: { | |
"block_body.block_data.txs.msgs.type": "add_package", | |
"block_body.block_data.txs.memo": "Deployed through play.gno.land" | |
} | |
}, | |
{ | |
$group: { | |
_id: null, | |
"via Playground": { | |
$sum: 1 | |
} | |
} | |
}, | |
]) | |
test3.blocks.aggregate([ | |
{ | |
$search: { | |
index: "block-files-idx", | |
phrase: { | |
query: "// method proxies as public functions", | |
path: "block_body.block_data.txs.msg.package.files.body" | |
} | |
} | |
}, | |
{ | |
$match: { | |
"block_body.block_data.txs.msgs.type": "add_package", | |
"block_body.block_data.txs.memo": { | |
$ne: "Deployed through play.gno.land" | |
} | |
} | |
}, | |
{ | |
$group: { | |
_id: null, | |
"via Other Sources": { | |
$sum: 1 | |
} | |
} | |
}, | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment