GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB

  1. # A Chapter is the main content body of a story.
  2. type Chapter {
  3. # The chapter's ID
  4. id: String!
  5. # The chapter's title
  6. title: String!
  7. # The chapter's author
  8. author: String!
  9. # The chapter's source
  10. source: String!
  11. # When the chapter was posted initialy
  12. createdDate: String!
  13. # The in-universe date and time of the chapter
  14. fictionalDate: String!
  15. # The date of edit.
  16. editedDate: String!
  17. }
  18. # Input for addChapter mutation
  19. input ChapterAddInput {
  20. # The story to add a chapter to
  21. storyId: String!
  22. # The title to give the chapter. It can not be left empty
  23. title: String!
  24. # The author to set for the chapter. It will use the logged in user ID, and only
  25. # users with appropriate permissions can post as another author. Even then, it's only
  26. # for importing/moving content. This author name will not be used when logging the
  27. # submission
  28. author: String
  29. # The markdown source for the content
  30. source: String!
  31. # Optionally, assign a fictional date for the chapter
  32. fictionalDate: String
  33. }
  34. # Input for editChapter mutation
  35. input ChapterEditInput {
  36. # The chapter to edit
  37. id: String!
  38. # Change the chapter's title
  39. title: String
  40. # Change the source
  41. source: String
  42. # Set the fictional date for a chapter
  43. fictionalDate: String
  44. }