Indexes are added to query with keyPath