-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 16
-
Fix Version/s: None
-
Component/s: API, CDR Reports
-
Labels:None
-
Bug Tracker:Customer Issue
-
Asterisk Version:18.6.0
-
Distro Version:16.0.26
-
Distro:FreePBX Distro
I'm trying to run a GraphQL query to fetch CDR records, for example:
query {
fetchAllCdrs (first: 10, after: 0, orderby: date, startDate: "2022-12-10", endDate: "2022-12-30") {
cdrs {
uniqueid
clid
}
totalCount
}
}
This works and gives me 10 records. However changing the "after" parameter seems to have no effect, it just returns the same 10 records every time.
Also, the totalCount property always returns the total number of CDR records in the whole database - I think it would be helpful to fetch the total number in the supplied date range, maybe as a different property?
Thanks!