ponder-sh / ponder

A backend framework for crypto apps
https://ponder.sh
MIT License
609 stars 89 forks source link

[Bug] Set up standardized pagination method for graphql #956

Closed hskang9 closed 3 months ago

hskang9 commented 3 months ago

I see the official documentation follows Relay GraphQL Cursor Connection, but Ponder does not follow it. Edge type is missing, so developers cannot navigate between pages with cursors. Total count of an item is also not returned, so developer cannot return how much item is in the stored data. Current implementation of pagination in Ponder is just self-proclaimed schema which it pretends to implement pagination. This flaw made a critical consequences on developing a new dapp, and I would recommend people to use only SQL until this is fixed.