Skip to content
Discussion options

You must be logged in to vote

Vector's GraphQL API implements the GraphQL Cursor Connections Specification, to aid cursoring and pagination through potentially large datasets.

As an example, consider this Vector config:

[api]
  enabled = true

[sources.one]
  type = "generator"
  format = "json"

[sources.two]
  type = "generator"
  format = "json"

[sources.three]
  type = "generator"
  format = "json"

[sinks.blackhole]
  type = "blackhole"
  inputs = ["one", "two", "three"]

There are 3x sources, each feeding into a blackhole sink.

If we wanted to return all the sources in this config, along with the name of the sink(s) they feed into, we could issue this query:

{
  sources {
    pageInfo {
      startCursor
      e…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by niyue
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@leebenson
Comment options

@kumarmah1981
Comment options

@leebenson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
domain: api Anything related to Vector's GraphQL API
3 participants