Skip to Content

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

FieldTypeDescription
idIntUnique identifier for the author
firstNameStringAuthor’s first name
lastNameStringAuthor’s last name
emailStringAuthor’s email address
bioStringAuthor’s biography or profile description
homepageStringAuthor’s homepage URL
imageStringURL 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.