Selectively query DB based on GraphQL query field collection

Fixes #5
This commit is contained in:
David Stotijn
2020-10-05 18:34:41 +02:00
parent 073bcea565
commit 5f4bff0155
12 changed files with 354 additions and 247 deletions

View File

@ -23,8 +23,8 @@ const HTTP_REQUEST_LOG = gql`
key
value
}
status
statusCode
statusReason
body
}
}

View File

@ -16,8 +16,8 @@ const HTTP_REQUEST_LOGS = gql`
url
timestamp
response {
status
statusCode
statusReason
}
}
}

View File

@ -128,7 +128,9 @@ function RequestListTable({
{response && (
<div>
<HttpStatusIcon status={response.statusCode} />{" "}
<code>{response.status}</code>
<code>
{response.statusCode} {response.statusReason}
</code>
</div>
)}
</TableCell>

View File

@ -8,7 +8,7 @@ interface Props {
response: {
proto: string;
statusCode: number;
status: string;
statusReason: string;
headers: Array<{ key: string; value: string }>;
body?: string;
};
@ -42,7 +42,7 @@ function ResponseDetail({ response }: Props): JSX.Element {
{response.proto}
</Typography>
</Typography>{" "}
{response.status}
{response.statusCode} {response.statusReason}
</Typography>
</Box>