hasAll query now works as expected