Users
Last updated on September 25, 2024
ReferenceWhat is a User?
Users are the people who use the Hardcover platform. Users can perform actions like adding books to their shelves, following other users, and writing reviews.
User Schema
The user schema contains the following fields:
Fields
Field | Type | Description |
---|---|---|
id | String | The unique identifier of the user |
username | String | The username of the user |
birthdate | String | The birthdate of the user |
books_count | Int | The number of books the user has added |
flair | String | The flair of the user |
followers_count | Int | The number of followers the user has |
followed_users_count | Int | The number of users the user follows |
location | String | The location of the user |
name | String | The name of the user |
pro | Boolean | |
pronoun_personal | String | The personal pronoun of the user |
pronoun_possessive | String | The possessive pronoun of the user |
sign_in_count | Int | The number of times the user has signed in |
Related Schemas
- me — The currently authenticated user
Example Queries
Get my user information
query { me { id username birthdate books_count flair followers_count followed_users_count location name pro pronoun_personal pronoun_possessive sign_in_count }}
Get a User by ID
query { users(where: {id: {_eq: "1"}}, limit: 1) { id, username }}
Get a User by Username
query { users(where: {username: {_eq: "adam"}}, limit: 1) { id, username }}