> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dropkit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# User Queries

> Query user profiles and user-related data

## User Queries

Query users and user-related data using GraphQL.

## Basic User Queries

### Get Current User

Get the authenticated user's profile.

```graphql theme={null}
query GetMe {
  me {
    id
    privyId
    wallet
    username
    displayName
    bio
    email
    avatar
    createdAt
    updatedAt
    referredBy {
      id
      username
      displayName
    }
    referrals {
      id
      username
      displayName
    }
  }
}
```

### Get User by ID

```graphql theme={null}
query GetUser($id: ID!) {
  user(id: $id) {
    id
    username
    displayName
    bio
    avatar
    createdAt
  }
}
```

### Get User by Wallet

```graphql theme={null}
query GetUserByWallet($wallet: String!) {
  user(wallet: $wallet) {
    id
    username
    displayName
    bio
    avatar
  }
}
```

### List Users

```graphql theme={null}
query GetUsers($limit: Int, $offset: Int) {
  users(limit: $limit, offset: $offset) {
    id
    username
    displayName
    bio
    avatar
    createdAt
  }
}
```

## Common Use Cases

### Profile Display

```graphql theme={null}
query UserProfile($username: String!) {
  user(username: $username) {
    id
    username
    displayName
    bio
    avatar
    createdAt
  }
}
```

### Referral Information

```graphql theme={null}
query UserReferrals {
  me {
    id
    username
    referredBy {
      username
      displayName
    }
    referrals {
      id
      username
      displayName
      createdAt
    }
  }
}
```
