Re:Show HN: Prestige, a text based HTTP client, for working ...
by tanaypingalkar on Sunday June 06, 2021 @03:50PM
(#27415757)
Nice tool it will be more nicer if it have graphql.
[ Parent
| on HN ]
Re:Show HN: Prestige, a text based HTTP client, for working ...
by sharat87 on Sunday June 06, 2021 @09:53PM
(#27418149)
Hey, glad you asked. GraphQL queries are actually just POST requests to a GraphQL endpoint. Although the experience is not something I'm proud of, it's indeed possible to hit GraphQL queries in the following manner:
POST https://api.github.com/graphql
Content-Type: application/json
Authorization: Bearer github-personal-api-token
={query: `
{
repository(owner: "appsmithorg", name: "appsmith") {
releases(orderBy: {field: CREATED_AT, direction: DESC}, first: 20) {
nodes {
tagName
name
url
descriptionHtml: descriptionHTML
createdAt
publishedAt
isDraft
isPrerelease
}
totalCount
}
}
}
`}
Know more about this way of running queries at http://localhost:3045/docs/guides/templating/.