query($login: String!) {
  repositoryOwner(login: $login) {
    __typename
    login
    avatarUrl
    url
    ... on User {
      name
      bio
      company
      location
      email
      websiteUrl
      starredRepositories {
        totalCount
      }
      followers {
        totalCount
      }
      following {
        totalCount
      }
      repositories(
        first: 6
        ownerAffiliations: OWNER
        orderBy: { field: STARGAZERS, direction: DESC }
      ) {
        totalCount
        nodes {
          owner {
            login
            avatarUrl
          }
          name
          description
          isPrivate
          isFork
          stargazers {
            totalCount
          }
          forks {
            totalCount
          }
          primaryLanguage {
            color
            name
          }
        }
      }
      pinnedItems(first: 6) {
        totalCount # TODO: Add this for correct generated code
        nodes {
          __typename
          ... on Repository {
            owner {
              login
              avatarUrl
            }
            name
            description
            isPrivate
            isFork
            stargazers {
              totalCount
            }
            forks {
              totalCount
            }
            primaryLanguage {
              color
              name
            }
          }
        }
      }
      viewerCanFollow
      viewerIsFollowing
    }
    ... on Organization {
      name
      description
      location
      email
      websiteUrl
      pinnedItems(first: 6) {
        nodes {
          __typename
          ... on Repository {
            owner {
              login
              avatarUrl
            }
            name
            description
            isPrivate
            isFork
            stargazers {
              totalCount
            }
            forks {
              totalCount
            }
            primaryLanguage {
              color
              name
            }
          }
        }
      }
      pinnableItems(first: 6, types: [REPOSITORY]) {
        totalCount
        nodes {
          __typename
          ... on Repository {
            owner {
              login
              avatarUrl
            }
            name
            description
            isPrivate
            isFork
            stargazers {
              totalCount
            }
            forks {
              totalCount
            }
            primaryLanguage {
              color
              name
            }
          }
        }
      }
      membersWithRole {
        totalCount
      }
    }
  }
}
