schema.graphql 653 B

12345678910111213141516171819202122232425262728293031323334353637
  1. type Query {
  2. projects: [Project]!,
  3. connectionCommand(connectionId: String!, command: String!): String!
  4. me: User!
  5. }
  6. type Mutation {
  7. createUser(name: String!, email: String!, abbreviation: String!, password: String!): User!
  8. userLogin(email: String!, password: String!): User!
  9. userLogout: String!
  10. }
  11. type User {
  12. id: ID!
  13. email: String!
  14. name: String!
  15. abbreviation: String!
  16. password: String!
  17. images: [File]!
  18. }
  19. type File {
  20. id: ID!
  21. filename: String!
  22. mimetype: String!
  23. truncated: Boolean!
  24. size: Int!
  25. md5: String!
  26. }
  27. type Project {
  28. id: ID!
  29. name: String!
  30. abbreviation: String!
  31. description: String
  32. images: [File]!
  33. }