Skip to content

Instantly share code, notes, and snippets.

@mczachurski
Last active October 10, 2017 07:52
Show Gist options
  • Save mczachurski/b62cf851dd4ecc430877ca262afe1176 to your computer and use it in GitHub Desktop.
Save mczachurski/b62cf851dd4ecc430877ca262afe1176 to your computer and use it in GitHub Desktop.
GraphQL - JSON with status codes
{
"data": {
"project": {
"statusCode": "Success",
"errorMessage": null,
"data": {
"id": "projectA",
"name": "Project A",
"visibleBranches": [
"Latest"
],
"tags": [
"Data admin"
]
}
},
"projects": {
"statusCode": "Success",
"errorMessage": null,
"data": {
"allResults": 3,
"results": [
{
"name": "Project A",
"id": "project-a"
},
{
"name": "Project B",
"id": "project-b"
},
{
"name": "Project C",
"id": "project-c"
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment