Promisify queryView