How are we supposed to use pagination if the `getAll` function doesn't have a parameter for the page and the `query` function is private?