Created
June 18, 2020 02:03
-
-
Save kjk/eff2b8c7a2544cb7e16a32a92dcb8eb7 to your computer and use it in GitHub Desktop.
github graphql examples (made with https://codeeval.dev)
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
{ | |
viewer { | |
gists(first: 10) { | |
nodes { | |
id | |
isPublic | |
isFork | |
name | |
pushedAt | |
createdAt | |
description | |
updatedAt | |
viewerHasStarred | |
url | |
files { | |
encodedName | |
encoding | |
isImage | |
isTruncated | |
name | |
size | |
text | |
language { | |
id | |
name | |
} | |
} | |
} | |
} | |
} | |
} | |
The problem is language.id (and language.color). Removing | |
{ | |
viewer { | |
gists(first: 10) { | |
nodes { | |
id | |
isPublic | |
isFork | |
name | |
pushedAt | |
createdAt | |
description | |
updatedAt | |
viewerHasStarred | |
url | |
files { | |
encodedName | |
encoding | |
isImage | |
isTruncated | |
name | |
size | |
text | |
} | |
} | |
} | |
} | |
} |
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
{ | |
"data": { | |
"viewer": { | |
"gists": { | |
"nodes": [ | |
{ | |
"id": "MDQ6R2lzdDQ1ODE4Ng==", | |
"isPublic": true, | |
"isFork": false, | |
"name": "458186", | |
"pushedAt": "2010-06-30T03:12:59Z", | |
"createdAt": "2010-06-30T03:12:59Z", | |
"description": null, | |
"updatedAt": "2015-09-05T07:44:40Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/458186", | |
"files": [ | |
{ | |
"encodedName": "ProgramVersion.cs", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "ProgramVersion.cs", | |
"size": 3768 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDQ1ODE4OA==", | |
"isPublic": true, | |
"isFork": false, | |
"name": "458188", | |
"pushedAt": "2010-06-30T03:14:20Z", | |
"createdAt": "2010-06-30T03:14:20Z", | |
"description": null, | |
"updatedAt": "2019-05-10T13:15:10Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/458188", | |
"files": [ | |
{ | |
"encodedName": "program_version.py", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "program_version.py", | |
"size": 2297 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDgwMTU5NTI=", | |
"isPublic": true, | |
"isFork": false, | |
"name": "8015952", | |
"pushedAt": "2013-12-18T01:36:04Z", | |
"createdAt": "2013-12-18T01:36:04Z", | |
"description": "Shows that one cannot append data to a gob file - the decoder will error out with 'extra data in buffer` when trying to decode data written by append.", | |
"updatedAt": "2015-12-31T16:49:08Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/8015952", | |
"files": [ | |
{ | |
"encodedName": "test_gob.go", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "test_gob.go", | |
"size": 1416 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDgwMzQ5MTM=", | |
"isPublic": true, | |
"isFork": false, | |
"name": "8034913", | |
"pushedAt": "2013-12-19T05:45:16Z", | |
"createdAt": "2013-12-19T05:43:46Z", | |
"description": "Shows that we can get the caller's function name without access to source code. go build -o test show_caller_name.go; rm show_caller_name.go; ./test", | |
"updatedAt": "2015-12-31T19:39:11Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/8034913", | |
"files": [ | |
{ | |
"encodedName": "show_caller_name.go", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "show_caller_name.go", | |
"size": 900 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDcyZWMzNWZiMTUwYzFmNDJlY2Ji", | |
"isPublic": true, | |
"isFork": false, | |
"name": "72ec35fb150c1f42ecbb", | |
"pushedAt": "2014-11-06T03:43:41Z", | |
"createdAt": "2014-11-06T03:43:41Z", | |
"description": "", | |
"updatedAt": "2016-09-10T20:26:57Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/72ec35fb150c1f42ecbb", | |
"files": [ | |
{ | |
"encodedName": "dump_pe.py", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "dump_pe.py", | |
"size": 470 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdGJlZTc3OGVkMzdkYjFjYmE1M2Vk", | |
"isPublic": true, | |
"isFork": false, | |
"name": "bee778ed37db1cba53ed", | |
"pushedAt": "2014-12-08T07:25:09Z", | |
"createdAt": "2014-12-08T07:25:09Z", | |
"description": "", | |
"updatedAt": "2015-08-29T14:10:57Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/bee778ed37db1cba53ed", | |
"files": [ | |
{ | |
"encodedName": "NoFreeAllocator.cpp", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "NoFreeAllocator.cpp", | |
"size": 6047 | |
}, | |
{ | |
"encodedName": "NoFreeAllocator.h", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "NoFreeAllocator.h", | |
"size": 2115 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdGNhZDI3MmIyYjI0MDg0YzYyMjdj", | |
"isPublic": true, | |
"isFork": false, | |
"name": "cad272b2b24084c6227c", | |
"pushedAt": "2014-12-11T01:33:13Z", | |
"createdAt": "2014-12-11T01:33:13Z", | |
"description": "Improving smaz benchmarking", | |
"updatedAt": "2015-08-29T14:11:12Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/cad272b2b24084c6227c", | |
"files": [ | |
{ | |
"encodedName": "go_smaz_faster.md", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "go_smaz_faster.md", | |
"size": 869 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDBjZDllMTNlOGI1ZjEwNDZiNjk3", | |
"isPublic": true, | |
"isFork": true, | |
"name": "0cd9e13e8b5f1046b697", | |
"pushedAt": "2014-12-11T19:57:55Z", | |
"createdAt": "2014-12-11T19:57:07Z", | |
"description": "", | |
"updatedAt": "2020-05-14T08:13:13Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/0cd9e13e8b5f1046b697", | |
"files": [ | |
{ | |
"encodedName": "latency.markdown", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "latency.markdown", | |
"size": 1286 | |
}, | |
{ | |
"encodedName": "latency_humanized.markdown", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "latency_humanized.markdown", | |
"size": 1286 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdDI5ODIxNmRhOGNiNGM2NjUwNzVi", | |
"isPublic": true, | |
"isFork": false, | |
"name": "298216da8cb4c665075b", | |
"pushedAt": "2015-09-03T05:26:35Z", | |
"createdAt": "2015-09-03T05:16:27Z", | |
"description": "clang-format styles", | |
"updatedAt": "2017-11-25T09:22:35Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/298216da8cb4c665075b", | |
"files": [ | |
{ | |
"encodedName": "3.5-chromium.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.5-chromium.txt", | |
"size": 1808 | |
}, | |
{ | |
"encodedName": "3.5-google.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.5-google.txt", | |
"size": 1794 | |
}, | |
{ | |
"encodedName": "3.5-llvm.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.5-llvm.txt", | |
"size": 1794 | |
}, | |
{ | |
"encodedName": "3.5-mozilla.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.5-mozilla.txt", | |
"size": 1804 | |
}, | |
{ | |
"encodedName": "3.5-webkit.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.5-webkit.txt", | |
"size": 1805 | |
}, | |
{ | |
"encodedName": "3.7-chromium.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.7-chromium.txt", | |
"size": 2122 | |
}, | |
{ | |
"encodedName": "3.7-google.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.7-google.txt", | |
"size": 2090 | |
}, | |
{ | |
"encodedName": "3.7-llvm.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.7-llvm.txt", | |
"size": 2093 | |
}, | |
{ | |
"encodedName": "3.7-mozilla.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.7-mozilla.txt", | |
"size": 2107 | |
}, | |
{ | |
"encodedName": "3.7-webkit.txt", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "3.7-webkit.txt", | |
"size": 2102 | |
} | |
] | |
}, | |
{ | |
"id": "MDQ6R2lzdGVhN2Q0MzdkZDg1NTg3ZTMwYWVkOGZhYjhjYjc3MDZk", | |
"isPublic": true, | |
"isFork": true, | |
"name": "ea7d437dd85587e30aed8fab8cb7706d", | |
"pushedAt": "2016-10-04T00:08:38Z", | |
"createdAt": "2016-10-04T00:08:38Z", | |
"description": "windows.h.js INFINITY", | |
"updatedAt": "2016-10-04T00:08:38Z", | |
"viewerHasStarred": false, | |
"url": "https://gist.github.com/ea7d437dd85587e30aed8fab8cb7706d", | |
"files": [ | |
{ | |
"encodedName": "windows.h__.js", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": false, | |
"name": "windows.h__.js", | |
"size": 521681 | |
}, | |
{ | |
"encodedName": "windows.h_functions.js", | |
"encoding": "UTF-8", | |
"isImage": false, | |
"isTruncated": true, | |
"name": "windows.h_functions.js", | |
"size": 556552 | |
} | |
] | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment