Skip to content

Conversation

mastercactapus
Copy link
Member

Description:
This PR adds a new stats field to the MessageLogsConnection type that will generate time-series data server-side.

Which issue(s) this PR fixes:
Backend component of #2481 (original issue: #2460)

Describe any introduced API changes:
The MessageLogConnection type got a new stats field containing timeSeries the new types for time-series are generic so that this pattern can be applied to other paginated queries as needed.

Additional Info:
Example query:

query {
  messageLogs {
    stats {
      timeSeries(input:{bucketDuration:"P1D"}) {
        count
        start
        end
      }
    }
  }
}

Forfold
Forfold previously approved these changes May 31, 2023
@mastercactapus mastercactapus merged commit db00b9e into master Jun 1, 2023
@mastercactapus mastercactapus deleted the msg-logs-timeseries-query branch June 1, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants