0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHub GraphQL API Explorer の使い方

Last updated at Posted at 2019-04-08

https://developer.github.com/v4/explorer/
にアクセスして、ログインします。

github_00.png

  1. 次をクリックして、実行します。
    sankaku.png

実行結果
github_01.png

  1. 左の窓のデータを変更して実行
{
  user(login: "ekzemplaro") { name location url}
}

実行結果
gotjib_02.png

3) 別のデータを入れてみます。

{
 viewer {
    repositories(first: 1) {
      edges {
        node {
          name
          description
        }
      }
    }
  }
}

実行結果
github_03.png

4) 更に別のデータを入れてみます。

{
 viewer {
    repositories(last: 2) {
      edges {
        node {
          name
          description
        }
      }
    }
  }
}

実行結果
github_04.png

参考
GitHub で GraphQL を使う (curl)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?