Customize Connection
bosconian-dynamics opened this issue · 2 comments
Is there a way to customize the Connection object?
I would like to add a pageCursors
property with cursors resolved to page numbers to assist in instances of traditional pagination, similar to the approach described in this article.
...or at least play with it, anyway. I suspect a hybrid approach which could alternately use offsets instead of cursors when a page number is supplied would probably be the most efficient in the short term :)
Right now there is no way to customize the connection in the way you are intending since this package is pretty tuned to the way that specifically the Relay connection is defined.
You should be able to fork it to play with it tho, the codebase is pretty small. If you feel like it would be useful after the experimentation feel free to open a PR!
Fair fair - understood! I appreciate the insight :)