There seems to be a bug with using org.springframework.data.document.mongodb.query.Qu ery. Particularly, the limit() and skip() methods don't seem to take effect when trying to use it to paginate. The entire result set is still returned.

If I do use org.springframework.data.document.mongodb.query.Ba sicQuery instead and call setLimit() and setSkip(), that works.

Is this by design or is it a bug?