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.

67 lines
1.4KB

  1. # ------------------------------------------------------
  2. # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
  3. # ------------------------------------------------------
  4. type Person {
  5. _id: UUID!
  6. givenName: String!
  7. familyName: String!
  8. email: EmailAddress!
  9. token: String
  10. }
  11. """UUID"""
  12. scalar UUID
  13. """
  14. A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.
  15. """
  16. scalar EmailAddress
  17. type Apparatus {
  18. _id: UUID!
  19. name: String!
  20. logo: String
  21. }
  22. type Organizer {
  23. _id: UUID!
  24. name: String!
  25. logo: String
  26. _admins: [UUID!]
  27. _organizers: [UUID!]
  28. }
  29. type Timeslot {
  30. _id: UUID!
  31. time: Time!
  32. }
  33. """A time string HH:MM:SS"""
  34. scalar Time
  35. type Event {
  36. _id: UUID!
  37. date: Date!
  38. timeslots: [Timeslot!]!
  39. _organizer: UUID!
  40. }
  41. """A date string YYYY-MM-DD"""
  42. scalar Date
  43. type Query {
  44. Person(id: UUID!): Person
  45. PersonFind(offset: Int, limit: Int, email: String, familyName: String, givenName: String): [Person!]
  46. Apparatus(id: UUID!): Apparatus
  47. ApparatusFind(offset: Int, limit: Int, name: String): [Apparatus!]
  48. Organizer(id: UUID!): Organizer
  49. OrganizerFind(offset: Int, limit: Int, name: String): [Organizer!]
  50. Event(id: UUID!): Event
  51. EventFind(offset: Int, limit: Int, organizer: UUID, date: Date): [Event!]
  52. }
  53. type Mutation {
  54. login(token: String, passwort: String, email: String): Person
  55. }