[go: up one dir, main page]

Skip to content

ClickHouse GraphQL pagination example

What does this MR do and why?

  1. Ensure you have dev fixtures.
  2. Ensure you have ClickHouse set up: https://docs.gitlab.com/integration/clickhouse/
  3. Ensure CH integration is enabled: https://docs.gitlab.com/administration/analytics/
  4. Manually run: ClickHouse::EventsSyncWorker.new.perform in 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.

Merge request reports

Loading