Skip to content

Commit

Permalink
Update graphql schema
Browse files Browse the repository at this point in the history
Added the ID field to RequestPayload for apollo and added a
created_at timestamp for the UI.

Added ServerInfo.

Added a subscription for the RequestPayload websocket payload.

Added a mutation to clear requests from the UI.
  • Loading branch information
aaronvb committed Jun 29, 2021
1 parent dc1d54a commit 2828f3c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,32 @@ type ParamFields {
}

type RequestPayload {
id: String!
fields: RequestFields!
params: String
headers: MapSlice!
param_fields: ParamFields!
created_at: Time!
}

type ServerInfo {
request_address: String!
request_port: Int!
web_port: Int!
response_code: Int!
build_info: MapString
}

type Query {
requests: [RequestPayload!]!
serverInfo: ServerInfo
}

type Subscription {
request: RequestPayload!
}

type Mutation {
clearRequests: Boolean!
}

scalar Time
Expand Down

0 comments on commit 2828f3c

Please sign in to comment.