You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the events or actions query, there is no way to know what is the latest blockHeight currently in the database when the results set is empty.
This information is present within the SQL queries (height = (SELECT max(height) FROM blocks)) but it's not directly exposed by the graphql server (only distanceFromMaxBlockHeight is)
It could be helpful to know what is the maxBlockHeight when the query return an empty set of results.
Proposed solution :
One way would be to return a parent type from the events and actions query.
Issue
When running the events or actions query, there is no way to know what is the latest blockHeight currently in the database when the results set is empty.
This information is present within the SQL queries (
height = (SELECT max(height) FROM blocks)
) but it's not directly exposed by the graphql server (onlydistanceFromMaxBlockHeight
is)It could be helpful to know what is the
maxBlockHeight
when the query return an empty set of results.Proposed solution :
One way would be to return a parent type from the events and actions query.
Since that would be a breaking change, it might be easier to add a separated query :
The text was updated successfully, but these errors were encountered: