Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The REST payload contains excessive data if your goal is to retrieve only member names and links to avatars. However, a GraphQL query returns only what you specify:

Code Block
query {
  viewer {
    organization(login:"Scope") {
      members(first: 10) {
        edges {
          node {
            name
            avatar { 
              fileUrl
            }
          }
        }
      }
    }
  }
}

Example: Nesting

...