d-exclaimation / pioneer

GraphQL for Swift.
https://pioneer.dexclaimation.com
Apache License 2.0
40 stars 8 forks source link

Pagination #54

Closed ZirgVoice closed 2 years ago

ZirgVoice commented 2 years ago

Graphiti has Connection for adding pagination, can it be used somehow with QueryBuilder?

d-exclaimation commented 2 years ago

I don't think I understand your question properly, but:

ZirgVoice commented 2 years ago

My question is how to get items from database with cursor pagination. The example describes array-based pagination, but we do not get the entire array of data from the database, but only a part corresponding to the specified limit. I think it would be convenient if this library would have a Connection that would work with Fluent's QueryBuilder

d-exclaimation commented 2 years ago

I don't think that feature belongs here.

This library does not and should not dictate nor restrict how you would describe your schema, how you would resolve them, and what datastore is used.

d-exclaimation commented 2 years ago

Again, I don't think this is the responsibility and/or concern for this library. I will re-consider adding information (possibly with examples) on doing pagination on GraphQL in this library's documentation. Other than that, I have no plan on adding anything for this.

I am closing this issue for now as I would consider this issue resolved. However, If you have further questions about this, feel free to reopen this issue.