Skip to content

Instantly share code, notes, and snippets.

@leighhalliday
Last active September 18, 2020 20:18
Show Gist options
  • Save leighhalliday/8b5c7b1265c5d39ed9149abbc9eb9f91 to your computer and use it in GitHub Desktop.
Save leighhalliday/8b5c7b1265c5d39ed9149abbc9eb9f91 to your computer and use it in GitHub Desktop.
FlipGive Challenge

FlipGive Challenge

Using the GitHub GraphQL API, please use the GraphQL query below to find and display a list of repositories for the organization of your choosing.

This should be done within React, but you are welcome to use any React framework (Create React App, Next.js, Gatsby, React Native, etc...) you'd like, any way to query the data (Apollo Client, urql, React Query, etc...), and any UI framework to display it nicely. It is a very open ended challenge!

We would like to see a solution within 48 hours after receiving this challenge.

{
  organization(login: "apollographql") {
    repositories(last: 10) {
      edges {
        node {
          id
          name
          url
          issues(last: 3) {
            edges {
              node {
                id
                title
                url
              }
            }
          }
          languages(first: 3) {
            edges {
              node {
                id
                name
                color
              }
            }
          }
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment