owl352
owl352
@pshenmic command: ``` grpcurl -insecure -proto ./platform.proto -d @ 127.0.0.1:1443 org.dash.platform.dapi.v0.Platform/getDocuments < quer.json ``` ___ ORDER BY transactionIndex ASC ``` { "v0": { "data_contract_id":"NmK7YeF/rj6ilM9gMZf7CqttURgL2LYQTElEpi/i2X8=", "document_type":"withdrawal", "limit": 5, "orderBy": "gYJwdHJhbnNhY3Rpb25JbmRleGNhc2M=" }...
one line commands: ``` grpcurl -insecure -proto ./platform.proto -d '{"v0":{"data_contract_id":"NmK7YeF/rj6ilM9gMZf7CqttURgL2LYQTElEpi/i2X8=","document_type":"withdrawal","limit":5,"orderBy":"gYJwdHJhbnNhY3Rpb25JbmRleGNhc2M="}}' 127.0.0.1:1443 org.dash.platform.dapi.v0.Platform/getDocuments ``` ``` grpcurl -insecure -proto ./platform.proto -d '{"v0":{"data_contract_id":"NmK7YeF/rj6ilM9gMZf7CqttURgL2LYQTElEpi/i2X8=","document_type":"withdrawal","limit":5,"orderBy":"gYJwdHJhbnNhY3Rpb25JbmRleGRkZXNj"}}' 127.0.0.1:1443 org.dash.platform.dapi.v0.Platform/getDocuments ``` ``` grpcurl -insecure -proto ./platform.proto -d '{"v0":{"data_contract_id":"NmK7YeF/rj6ilM9gMZf7CqttURgL2LYQTElEpi/i2X8=","document_type":"withdrawal","limit":5,"where":"gYNmc3RhdHVzYj09Aw==","orderBy":"gYJwdHJhbnNhY3Rpb25JbmRleGRkZXNj"}}'...
@shumkov Hm.. and how is this related to the fact that startAt works under any conditions, and startAfter returns an empty array with sorting enabled? I also didn't really understand...
I've been trying for months to make it clear to you that it doesn't work at all as described, but for some reason you persistently ignore it, and I get...
At the moment, any attempt to implement pagination on documents of the same withdrawals contract results in some crazy crutches and no normal sorting on documents by index. Is this...
About startAt and startAfter. ___ no sort startAt `MV4xg8XPUXL87T1b8mnUC2S3tdPRHJUnjXuoxFHuBsY` document id ``` grpcurl -insecure -proto ./platform.proto -d '{"v0":{"data_contract_id":"NmK7YeF/rj6ilM9gMZf7CqttURgL2LYQTElEpi/i2X8=","document_type":"withdrawal","limit":5,"startAt":"BT9aY3od7iaqcVxCgE2o4aTSVDZ9EDk15PVuAu3SOXs="}}' 127.0.0.1:1443 org.dash.platform.dapi.v0.Platform/getDocuments ``` ```json { "v0": { "documents": { "documents": [ "AAU/WmN6He4mqnFcQoBNqOGk0lQ2fRA5NeT1bgLt0jl7/2UOb6gicKPeEMeNobmLMssPiz1laS1UawlaaWjlKCMEAAMAAAGTDxhbYAAAAZMRW244AQAAAAAAAABgAQAAAAAAEVpFAAAAAAAEk+AAAAAAAAAAAQAAAAAAAAAAF6kUZP90nNjl3VyALTt3O28MuFHYlG2HAAAAAAAAAAM=",...