Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Launching GitHub's Public GraphQL API

Launching GitHub's Public GraphQL API

Brooks Swinnerton

May 21, 2017
Tweet

More Decks by Brooks Swinnerton

Other Decks in Technology

Transcript

  1. + a

  2. { "data": { "repository": { "viewerHasStarred": false } }, "extensions":

    { "totalDuration": 42.06737782806158, "trackedAssociations": {}, "profiling": { "Repository:viewerHasStarred": { "type": "Boolean!", "sql": [ { "duration": 2.07, "sql": "SELECT 1 AS one FROM `repositories` INNER JOIN `stars` ON `repositories`.`id` = `stars`.`starrable_id` WHERE `stars`.`user_id` = 934497 AND `stars`.`starrable_type` = 'Repository' AND `repositories`.`id` = 8514 LIMIT 1 " } ] } } } }