Skip to content

Instantly share code, notes, and snippets.

@janbaer
Last active December 23, 2018 11:04
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 janbaer/4c62069773de445cdbcc0fea6d1ca06c to your computer and use it in GitHub Desktop.
Save janbaer/4c62069773de445cdbcc0fea6d1ca06c to your computer and use it in GitHub Desktop.
Some Github API GraphQL calls

Github API GraphQL calls

All repositories of a user

query { 
	user(login:"janbaer") {
    name,
    avatarUrl,
    repositories(first: 100) ,{
      edges {
        node {
          name
        }
      }
    }
    
  }
}

All files of a repository

query { 
  repository(name:"wiki-content", owner:"janbaer") {
    name,
      object(expression: "master:") {
        ... on Tree{
        entries {
          name
          type
          oid
        }
       }
    	}
  }    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment