This package implements a GraphQL interface for HubProxy that mirrors the functionality of the REST API.
The GraphQL interface is available at /graphql
on the API server.
query {
events(
type: String
repository: String
sender: String
status: String
since: DateTime
until: DateTime
limit: Int
offset: Int
) {
events {
id
type
payload
createdAt
status
error
repository
sender
replayedFrom
originalTime
}
total
}
}
query {
event(id: "event-id") {
id
type
payload
createdAt
status
error
repository
sender
replayedFrom
originalTime
}
}
query {
stats(since: "2023-01-01T00:00:00Z") {
type
count
}
}
mutation {
replayEvent(id: "event-id") {
replayedCount
events {
id
type
payload
createdAt
status
repository
sender
replayedFrom
originalTime
}
}
}
mutation {
replayRange(
since: "2023-01-01T00:00:00Z"
until: "2023-01-02T00:00:00Z"
type: String
repository: String
sender: String
limit: Int
) {
replayedCount
events {
id
type
payload
createdAt
status
repository
sender
replayedFrom
originalTime
}
}
}
The GraphQL endpoint includes:
- GraphiQL: An interactive in-browser GraphQL IDE
- Playground: An alternative GraphQL IDE
These tools are available directly at the /graphql
endpoint when accessed from a browser.