react-admin and connection pagination
Asked Answered
W

1

7

I currently have a GraphQL API that uses connection based pagination as defined in https://graphql.org/learn/pagination/ which is what the Relay client uses.

I have looked at ra-data-graphql-simple but that expects the GraphQL server to return certain queries.

Are there any other examples of clients that would work with this format? If not is my best option to build on top of ra-data-graphql?

Thank you, Owen

Wessels answered 26/9, 2018 at 6:8 Comment(2)
Have you managed to implement a working solution? If so, can you share it please?Ismaelisman
Unfortunately not. I was using this against a ruby graphql api which luckily the cursors generated are sequential numbers so can be used with the pagination. This isn't really a fix though. github.com/owenbendavies/cms/blob/master/app/webpacker/admin/…Wessels
M
1

Indeed, we don't have any relay compatible dataProviders. You'll have to implement your own, using ra-data-graphql as the foundation

Machine answered 24/2, 2019 at 7:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.