query invoices($walletIds: [WalletId], $first: Int, $after: String) { me { defaultAccount { defaultWallet { id } invoices(walletIds: $walletIds, first: $first, after: $after) { ...InvoiceList } } } } fragment InvoiceList on InvoiceConnection { pageInfo { hasNextPage } edges { cursor node { __typename paymentHash } } }