Open
Description
Queries can contain a block constraint like block: { number: 79 }
to execute the query at block 79. It is not possible to express 'give me data for the latest block' with that constraint which forces apps that want to sometime query at a certain block, and sometimes at the latest block, to change the text of their GraphQL query.
We should make it possible to always include block: { number: $block }
in a query, and have a special value that means 'latest block'. Using -1
as that special value would probably be best since some languages support negative array indexes to count from the back, where array[-1]
means 'give me the last array entry'.