Options

pageSize for graphql api

Nate_SimonsenNate_Simonsen Member Posts: 2

Hello, I have a python script which queries for invoices and I noticed that I can only get 50 results, even if i increase the pageSize variable beyond that, I have not seen any documentation (yet) about a limit for the query for the invoices.

Note: the pageSize variable works for smaller values, I.e. 4 or 10 and it will limit the variables as expected

is this expected behavior, or is it paginating and I just need to change the page variable?

here is the gist of the graphql query

query($id: ID!) { business(id: $id) { invoices(pageSize: 75) { edges { node { id } } } }

Thanks in advance

Tagged:
Sign In or Register to comment.