I'm trying to limit the number of results returned by calendar-query.
For example I need to find only 10 first events. Can't find it in the description: https://www.rfc-editor.org/rfc/rfc4791#section-7.8.1 I can see that calendar service from google supports it:
https://developers.google.com/google-apps/calendar/v3/reference/events/list
-maxResults
Is there anything like this for caldav REPORT ?
Thanks!
The calendar-query
REPORT
is documented in RFC 4791. As far as I can see it doesn't provide the client a way to limit the number of results. (Note that a server can apply a limit and return a number-of-matches-within-limits
precondition failure if it is hit by the query)
Having said that, the way it is usually done in clients is that they only fetch the URL and the ETag
of the matching events/todos as part of a calendar-query
REPORT
. Only then they retrieve the actual event payloads in batches using a calendar-multiget
REPORT
(that is, they can apply arbitrary limits in here).