Author
Represents an author of a blog post or article
Type Definition
type Author {
id: Int
firstName: String
lastName: String
email: String
bio: String
homepage: String
image: String
}Fields
| Field | Type | Description |
|---|---|---|
| id | Int | Unique identifier for the author |
| firstName | String | Author’s first name |
| lastName | String | Author’s last name |
| String | Author’s email address | |
| bio | String | Author’s biography or profile description |
| homepage | String | Author’s homepage URL |
| image | String | URL to the author’s avatar image |
Relationships
The Author type is used by the Article type through the author field, establishing a one-to-one relationship where each article can have an associated author.
Example
query {
articles {
author {
id
firstName
lastName
email
bio
homepage
image
}
}
}Implements
This type does not implement any interfaces.