Support query by collection of ids