Skip to content

Instantly share code, notes, and snippets.

@KEINOS
Last active March 12, 2023 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KEINOS/71e8f8ef9df2433f7af25f68cfcffb87 to your computer and use it in GitHub Desktop.
Save KEINOS/71e8f8ef9df2433f7af25f68cfcffb87 to your computer and use it in GitHub Desktop.
[GitHub API v4] GraphQL API Example to retrieve/get comments in Gist.

GitHub GraphQL API (GitHub API v4) example to retrieve/get comments in Gist.

{
  viewer {
    gist(name: "78cc23f37e55e848905fc4224483763d") {
      comments(last: 100) {
        edges {
          node {
            author {
              avatarUrl
              login
            }
            id
            createdAt
            authorAssociation
            body
          }
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment