Skip to content

Instantly share code, notes, and snippets.

@ilgooz
Created February 22, 2024 12:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilgooz/735d6e9eb2a8b726565745135d1142e6 to your computer and use it in GitHub Desktop.
Save ilgooz/735d6e9eb2a8b726565745135d1142e6 to your computer and use it in GitHub Desktop.
query
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