improve QueryOption $filter for multiple categories
right now, it's only possible to use the QueryOption $filter on a single category like so:
new QueryOption("$filter", "categories/any(a:a eq 'MyCategory')"
I would suggest to allow multiple categories to be filtered, perhaps with an in-clause, regex, or chaining of logical operators.
use case:
While polling users their calendars, I'm only interested in 3 of the 8 possible categories our employees use to label their workload during a day.
Previously, I've used a dirty workaround creating a query which manually filtered on start- and endtime, repeating the String for each and every category. This worked for .events().
However, because .events() doesn't pick up on recurring items, I had to switch to calendar().calendarView() which explicitly needs the QueryOptions of 'StartDateTime' and 'EndDateTime'. This prevents me from adequatly chaining multiple categories filters myself.
For now, I filter the events with a Java Stream().