GET_USER_INFO: DocumentNode = ...

Query to fetch basic user information from GitHub

Returns comprehensive user profile data including:

  • Basic Information:
    • User's name and login
    • Avatar URL
    • URL
    • Bio and location
  • Social Links:
    • Website URL
    • Twitter username
    • Other social accounts (first 10, only linkedin is implemented)
  • Network Statistics:
    • Follower count
    • Following count
const { data } = useQuery(GET_USER_INFO, {
variables: { username: "octocat" }
});