Increase the paging limit

How can I use RequestOptions to increase the paging limit? I couldn’t find any example of this.
I am using Node.js
what should I replace undefined with? I get this error Expected value to be of type ‘Optional’ but found ‘object’

const response = await client.catalogApi.listCatalog(undefined,

The undefined in that call is the value for cursor. On the initial ListCatalog call it will be undefined. If a cursor is returned in the response there are additional catalog objects. You’ll set the returned cursor and call ListCatalog again till no cursor is returned which means that you have all the objects for that call. :slightly_smiling_face:

This is clear now, is there is any way to increase the limit in the initial call?

No, unfortunately the ability to increase the limit of the initial call isn’t available. :slightly_smiling_face:

1 Like