Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Consider to GraphQL #7

Open
maxbeier opened this issue Jun 1, 2018 · 0 comments
Open

Consider to GraphQL #7

maxbeier opened this issue Jun 1, 2018 · 0 comments

Comments

@maxbeier
Copy link
Member

maxbeier commented Jun 1, 2018

GitHubs GraphQL API currently needs an OAuth token which cannot be used in the web app.

An example Statement for the Explorer (https://developer.github.com/v4/explorer/) is:

query SearchTawian($queryString: String = "topic:tawian") {
  search(query: $queryString, type: REPOSITORY, first: 10) {
    repositoryCount
    edges {
      node {
        ... on Repository {
          name
          description
          url
          homepageUrl
          stargazers {
            totalCount
          }
          updatedAt
          licenseInfo {
            name
            key
          }
          object(expression: "master:") {
            ... on Tree {
              entries() {
                name
                type
                # object() {
                #   ... on Blob {
                #     text
                #   }
                # }
              }
            }
          }
        }
      }
    }
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant