Notification Bar
App Development3 posts294 views1 likesLast activity Aug 2020
AL
alex_mOP
Aug 2020Let’s say you want to implement a notification bar that simply displays the number of contracts that are newly visible to you. How can you fetch this number without fetching all the data of all the contracts?
Thanks!
CO
cocreature
Aug 2020Hi @alex_m,
At the moment, you cannot do this. Both the gRPC API as well as the JSON API do not provide a way to only count results. However, we do already have an open issue for adding count queries to the JSON API which would address this Support for count queries in JSON API · Issue #6596 · digital-asset/daml · GitHub
AL
alex_m
Aug 2020Thank you @cocreature