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.

41 lines
952 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 by IDs. It's meant to allow other parts of the UI to link to a cluster of posts, e.g. for a room description for the
  16. # Mapp should it ever become a thing. This does not have a filter, since it's meant to be queried in the logs' response's selection set.
  17. posts(ids: [String!]!): [Post!]!
  18. # Find log by ID
  19. log(id: String!): Log!
  20. # Find logs
  21. logs(filter: LogsFilter): [Log!]!
  22. # Find all distinct tags used in stories
  23. tags: [Tag!]!
  24. }
  25. # A Date represents a RFC3339 encoded date with up to millisecond precision.
  26. scalar Date