query loans($block: Block_height, $where: Loan_filter, $orderBy: Loan_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
    loans(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
        id
        poolAddress
        borrower
        pool{
            id
            createdAtBlockNumber
            createdAtTimestamp
            poolSize
            t0debt
            inflator
            borrowRate
            lendRate
            borrowFeeRate
            depositFeeRate
            pledgedCollateral
            totalInterestEarned
            txCount
            poolType
            loansCount
            maxBorrower
            quoteTokenFlashloaned
            collateralFlashloaned
            hpb
            hpbIndex
            htp
            htpIndex
            lup
            lupIndex
            reserves
            claimableReserves
            claimableReservesRemaining
            burnEpoch
            totalAjnaBurned
            minDebtAmount
            actualUtilization
            targetUtilization
            totalBondEscrowed
            quoteTokenBalance
            collateralBalance
            subsetHash
            tokenIdsPledged
            bucketTokenIds
            tokenIdsAllowed
        }
        inLiquidation
        liquidationAuction{
            id
            borrower
            lastTakePrice
            collateral
            collateralRemaining
            debt
            debtRemaining
            kicker
            kickTime
            settleTime
            settled
            bondSize
            bondFactor
            neutralPrice
            referencePrice
            thresholdPrice
        }
        collateralPledged
        thresholdPrice
        tokenIdsPledged
        t0debt
        t0Np
    }
}