ClickHouse GraphQL pagination example
What does this MR do and why?
- Ensure you have dev fixtures.
- Ensure you have ClickHouse set up: https://docs.gitlab.com/integration/clickhouse/
- Ensure CH integration is enabled: https://docs.gitlab.com/administration/analytics/
- Manually run:
ClickHouse::EventsSyncWorker.new.performin console
Example query:
query test {
clickhouseEvents(first: 5) {
nodes {
id
createdAt
path
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
}
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.