Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23931

fetchAllCdrs GraphQL query - paging does not work

    XMLWordPrintable

    Details

    • 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

      Description

      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!

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aca02djr aca02djr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.