Hey Matthew -
Sorry that you had to run through so many hoops while implementing pagination.
The API limitations guide that you linked does show skip as an unsupported operation with find. It also doesn’t show skip as a supported operation at all. I’d love to get your feedback on how we can make this a more clear on our end and pass this onto the documentation team.
The fact that limit() does not work when preceded by a skip() is a bug we’re investigating. I’m happy to keep this thread updated when it is resolved.
In general (as pointed out in the thread you linked), we recommend using find() and limit() when implementing pagination due to the skip() limitation.
- In the tutorial for custom resolvers, make it clear the access to MongoDB is different than a NodeJS driver + link the relevant docs.
- Provide examples for implementing basic pagination with a custom resolver if that’s the recommended solution (even if it can’t be fully implemented on the server yet)
This is also feedback I will pass onto the documentation team.