Skip to content

GraphQL API Queries

Murat Terzioğlu edited this page Jan 16, 2022 · 2 revisions
type Query {

Get All Authors => Type Author

authors: [Author!]!

Get Author by Id => Type Author

author(id: String!): Author!

Get All Contents by Type => Type Contents

can be: 'post' | 'comment' | 'all'

contents(type: String): [Contents!]!

Get Content by Id => Type Contents

content(id: String!): Contents!

Get Reactions => Type Reaction

reactions: [Reaction!]!

Get Reactions by Id => Type Reaction

reaction(id: String!): Reaction!
}