An Introduction to GraphQL

Background

Using GraphQL

{
repository(owner: "librecores", name: "librecores-web") {
nameWithOwner name owner {
login avatarUrl
}
stargazers {
totalCount
}
forks {
totalCount
}
watchers {
totalCount
}
issues(states: [OPEN]) {
totalCount
}
description
license
}
}
{
"data": {
"repository": {
"nameWithOwner": "librecores/librecores-web",
"name": "librecores-web",
"owner": {
"login": "librecores",
"avatarUrl": "https://avatars5.githubusercontent.com/u/10119298?v=4"
},
"stargazers": {
"totalCount": 11
},
"forks": {
"totalCount": 5
},
"watchers": {
"totalCount": 14
},
"issues": {
"totalCount": 39
},
"description": "LibreCores Web Site",
"license": "Other"
}
}
}

When to use GraphQL

Using GraphQL

Product Engineer @ Gojek. Open-source contributor. Find me at https://amitosh.in/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store