2.1.5 • Published 6 years ago
@contentacms/contentajs-graphql v2.1.5
type Query {
lastRecipe: Recipe
@fromJsonApi(query: "/recipes?page[limit]=1&sort=createdAt&include=author")
recipesByAuthor(authorName: String!): [Recipe]
@fromJsonApi(
query: "/recipes?filter[author.name]={authorName}&include=author"
)
articlesByAuthor(authorName: String!): [Article]
@fromJsonApi(
query: "/articles?filter[owner.name]={authorName}&include=owner"
)
}