schema.graphql 606 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. scalar Upload
  2. type Query {
  3. projects: [Project]!
  4. uploads: [File]
  5. connectionCommand(connectionId: String!, command: String!): String!
  6. }
  7. type Mutation {
  8. createUser(name: String!, email: String!): User!
  9. uploadFile(file: Upload!): File!
  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. path: String!
  22. filename: String!
  23. mimetype: String!
  24. truncated: Boolean!
  25. size: Int!
  26. md5: String!
  27. }
  28. type Project {
  29. id: ID!
  30. name: String!
  31. abbreviation: String!
  32. description: String
  33. images: [File]!
  34. }