Skip to content

Instantly share code, notes, and snippets.

@ojacques
Created July 22, 2021 11:19
Show Gist options
  • Save ojacques/9201d45230bc1ac394e9b03d0e8b474c to your computer and use it in GitHub Desktop.
Save ojacques/9201d45230bc1ac394e9b03d0e8b474c to your computer and use it in GitHub Desktop.
GraphQL queries for GitHub
  • Get a collection of opened issues within repositories which have the topic "dojo"
{
  search(query: "topic:dojo", type: REPOSITORY, first: 50) {
    repositoryCount
    pageInfo {
      endCursor
      startCursor
    }
    nodes {
      ... on Repository {
        id
        name
        issues(first: 10, filterBy: {states: OPEN}) {
          nodes {
            number
            createdAt
          }
        }
        owner {
          login
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment