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
982 B

  1. schema {
  2. query: Query
  3. }
  4. type Query {
  5. # Find character by either an ID or a nick.
  6. character(id: String, nick: String): Character!
  7. # Find characters
  8. characters(filter: CharactersFilter): [Character!]!
  9. # Find channel by name
  10. channel(name: String!): Channel!
  11. # Find channels
  12. channels(filter: ChannelsFilter): [Channel!]!
  13. # Find post by ID.
  14. post(id: String!): Post!
  15. # Find posts
  16. posts(filter: PostsFilter): [Post!]!
  17. # Find log by ID
  18. log(id: String!): Log!
  19. # Find logs
  20. logs(filter: LogsFilter): [Log!]!
  21. # Find story chapter by ID
  22. chapter(id: String!): Chapter!
  23. # Find all distinct tags used in stories
  24. tags: [Tag!]!
  25. # Find story by ID
  26. story(id: String!): Story!
  27. # Find stories
  28. stories(filter: StoriesFilter): [Story!]!
  29. # Find file by ID
  30. file(id: String!): File!
  31. # Find files
  32. files(filter: FilesFilter): [File!]!
  33. }
  34. # A Date represents a RFC3339 encoded date with up to millisecond precision.
  35. scalar Date