Github Graphql

Exploring the github api with graphql

graphql

Useful links:

Attempting to get the contents of the README.md file in each repo:


{
  viewer {
    repositories(last: 3, isFork: false) {
      nodes {
        name
        description
        updatedAt
        url
        defaultBranchRef{
          name
        }
        object(expression:"master:"){
          ... on Tree{
            entries{
              name
              object {
                ... on Blob {
                  text
                }
              }
            }
          }
        }
      }
      totalCount
      totalDiskUsage
    }
  }
}