Open wilsonianb opened 2 years ago
Should Open Payments list endpoint query parameters then support after
/before
instead of just cursor
?
https://github.com/interledger/rafiki/blob/3d30ce755b4218a777ec77f408be5d15dfa0e687/packages/backend/src/shared/pagination.ts#L9-L20
The relay pagination spec supports both
after
andbefore
being specified together: https://relay.dev/graphql/connections.htm#sec-Pagination-algorithmRafiki currently ignores
before
ifafter
is specified https://github.com/interledger/rafiki/blob/3d30ce755b4218a777ec77f408be5d15dfa0e687/packages/backend/src/shared/baseModel.ts#L64-L74