HN2new | past | comments | ask | show | jobs | submitlogin

Nice tool it will be more nicer if it have graphql.


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/.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: