amark on master
Thanks @gabriellemon Gabriel fo… (compare)
gun.get('chat').get('2021/06/31').put({stuff:'this is shown'}).once(Gun.log)
gun.get('chat').get({'.' : {'>' : '2021/06' },'%' : 50000 }).map().once(s=>{
console.log (s);
})
gun.get('chat').get({'.':{'>':'2021/06'},'%':50000}).map().once(Gun.log)
gun.get('chat').get({'.' : {'>' : '2021/06' },'%' : 50000 }).map().once(s=>{
console.log (s);
})
gun.get('chat').get({'.':{'>':'2021/06'},'%':50000}).map().once(Gun.log)
const gun = Gun({
localStorage : false,
axe : false,
file : "test",
})
https://cdn.jsdelivr.net/gh/user/repo@version/file
anybody have a working gists of
This will grab keys with '2019/06/' matching prefix (grab all chats in July!) up to a limited number of bytes.
like in the docs ? https://gun.eco/docs/RAD#lex
2019/06/22:10:10:10.33
I don't how lex sorting on multiple : : : would work, that's not a date format imo
{
"2019/05/25:10:10:10.30": {
"#": "chat/2019/05/25:10:10:10.30"
},
"2019/05/21:10:10:10.30": {
"#": "chat/2019/05/21:10:10:10.30"
},
"2019/05/22:10:10:10.30": {
"#": "chat/2019/05/22:10:10:10.30"
},
"2019/05/23:10:10:10.30": {
"#": "chat/2019/05/23:10:10:10.30"
},
"2019/06/23:10:10:10.30": {
"#": "chat/2019/06/23:10:10:10.30"
},
"2019/06/21:10:10:10.30": {
"#": "chat/2019/06/21:10:10:10.30"
},
"2019/06/22:10:10:10.30": {
"#": "chat/2019/06/22:10:10:10.30"
},
"2019/06/24:10:10:10.30": {
"#": "chat/2019/06/24:10:10:10.30"
},
"2019/06/25:10:10:10.30": {
"#": "chat/2019/06/25:10:10:10.30"
},
"2019/06/20:10:10:10.30": {
"#": "chat/2019/06/20:10:10:10.30"
},
"2019/05": {
"#": "chat/2019/05"
}
}
gunHeroku.get('chat').get({'.': {'*': '2019/05'}, "%" : 5000}).map().once(s=>{
console.log (s); //This only fired once
})
is this an expected result ?