I am trying to figure out how can I fetch the total number of scenarios per team, and while trying things out I got returnTotalCount: false
in the response of this request:
const response = await this.make.fetch('/scenarios', {
method: 'GET',
query: {
teamId,
pg: {
limit,
offset,
},
},
})
This got me thinking that I can get the total number of scenarios if I can set returnTotalCount to true, but I cannot figure out how to do so, I tried setting it to true in the pg (pagination) object like this:
pg: {
limit,
offset,
returnTotalCount: true,
},
but still this did not work, I tried some other ways, but nothing worked.
How can I set returnTotalCount to true, or is there any other way to get the total number of scenarios via the make make-typescript-sdk?
Thank you in advance!