Let’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!
Hi @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
1 Like
Thank you @cocreature