[ARQ-1398] Made filtering by primary keys optional.