Last active
March 14, 2019 17:31
-
-
Save jonico/3a9bbf3b4f2ead8df3caab9e0ad20390 to your computer and use it in GitHub Desktop.
GraphQL Examples with GitHub business account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query getOrgsInBusiness($slug: String!) { | |
business(slug: $slug) { | |
... on Business { | |
name | |
resourcePath | |
avatarUrl | |
members(first: 100) { | |
edges { | |
organizations(first: 100) { | |
edges { | |
node { | |
login | |
} | |
} | |
} | |
node { | |
login | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query getOrgsInBusiness($slug: String!) { | |
business(slug: $slug) { | |
... on Business { | |
name | |
resourcePath | |
avatarUrl | |
organizations(first: 100) { | |
edges { | |
node { | |
login | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query getBusiness($slug: String!) { | |
business(slug: $slug) { | |
... on Business { | |
adminInfo { | |
outsideCollaborators(first: 10, orderBy: {field: LOGIN, direction: DESC}) { | |
edges { | |
node { | |
login | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
needs
admin:business
scope andAccept: application/vnd.github.gwenpool-preview+json
header, slug should be the name of your business account (remove the https://github.com/businesses/" part from the URL)