Files
blog/internal/strapi/queries/author_queries.graphql
2026-02-15 22:19:51 -05:00

16 lines
266 B
GraphQL

# Fragment for authors
fragment Author on Author {
name
email
bio
}
# Gets all authors
query GetAllAuthors($pageSize: Int = 10, $page: Int = 1) {
# @genqlient(flatten: true)
authors(pagination: { pageSize: $pageSize, page: $page }) {
...Author
}
}