schema.graphql 629 B

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