Adding queryAll() to programatic API