query invoicesForWallet($walletId: WalletId!, $first: Int, $after: String) { me { defaultAccount { id displayCurrency walletById(walletId: $walletId) { id invoices(first: $first, after: $after) { ...InvoiceList } } } } } fragment InvoiceList on InvoiceConnection { pageInfo { hasNextPage } edges { cursor node { __typename paymentHash } } }