This PR improves the validation of the results slice and paginated fields and exposes the error so clients can better handle them. Paginated fields are validated before executing the query by leveraging the results' struct bson tags.
I added the improvements to mgo as well but we drop support at some point.
This PR improves the validation of the results slice and paginated fields and exposes the error so clients can better handle them. Paginated fields are validated before executing the query by leveraging the results' struct bson tags.
I added the improvements to mgo as well but we drop support at some point.