Skip to content

GraphQL API Inputs

Murat Terzioğlu edited this page Jan 17, 2022 · 2 revisions

Input Author

input CreateAuthorInput {
  """Firstname of the author"""
  name: String!

  """Lastname of the author"""
  surname: String!

  """E-Mail address of the author, should be unique"""
  mail: String!
}

Input Content

input CreateContentInput {
  """Type of the content, post or comment"""
  type: String!

  """Author of the content"""
  author: String!

  """Title of the content"""
  title: String!

  """Full context of the content"""
  relation: String

  """Full context of the content"""
  context: String!
}

Input Reaction

input CreateReactionInput {
  """Content of the reaction"""
  content: String!

  """Author of the reaction"""
  author: String!

  """Reaction for the content"""
  reaction: String!
}
Clone this wiki locally