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, where it represents the author of an article. An article contains an author field that returns an Author object with the author’s biographical information.

Example

query { author { id firstName lastName email bio homepage image } }

Implements

This type does not implement any interfaces.