subql
subql copied to clipboard
Update subql-node to use cursors in dictionary queries
It is best practice to use graphql cursors as a way of paginating results (instead of take
/skip
).
We should update subql-node
to use cursors instead of other pagination tools, and also allow it to fall back to the old way if not supported
Also need some testing to ensure that the query performance is there. This may also need some updates to the query service to make sure that cursors are being used properly
This would need to fall back to current method if cursors aren't supported
There is an issue with postgraphile v4 which means this isn't possible. This can be reassessed when the query service is updated https://github.com/subquery/subql/issues/1982