Specifying pagination in select query

I am using rockset node.js module to write select queries.

    const response = await client.queries.query({
      sql: {
        query: `select _id, updatedAt FROM ${workspace}.${collection} ${condition}`,
      },
      max_initial_results: 10000,
      pagination: {
        cursor: 'YnBjw==',
        docs: 20,
      }
    });

However, I get the following error:

Error selecting documents: {
  message: 'Invalid key "pagination" in request.

What’s the correct way to specify pagination ?

We’ve spoken privately but posting here in case anyone comes across this public post. Pagination is supported on the new rockset node client @rockset/client not the old rockset client. Please be sure to use the most up to date client to implement your pagination.