schema.graphql 699 B

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