rubensworks / GraphQL-LD.js

Linked Data Querying with GraphQL
https://gist.github.com/rubensworks/9d6eccce996317677d71944ed1087ea6
MIT License
103 stars 7 forks source link

No support for pagination: OFFSET, LIMIT, ORDER BY #49

Closed sparkling closed 1 year ago

sparkling commented 1 year ago

Seems like this is missing, which makes the tool unusable for anything but the smallest of datasets. What would be involved for adding this? Can I help?

rubensworks commented 1 year ago

Offset and limit should be possible via first and offset: https://github.com/rubensworks/graphql-to-sparql.js#pagination

sparkling commented 1 year ago

Thanks - but how about ordering? Without ordering, pagination is non-deterministic in some cases

rubensworks commented 1 year ago

Ordering is not possible yet indeed. Might be possible to add it similar to the first and offset keywords. PRs are definitely welcome on https://github.com/rubensworks/graphql-to-sparql.js