schema.graphql 965 B

12345678910111213141516171819
  1. # import * from './database/generated/prisma.graphql'
  2. scalar Upload
  3. type Query {
  4. projects(where: ProjectWhereInput, orderBy: ProjectOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Project]!
  5. projectVersions(where: ProjectVersionWhereInput, orderBy: ProjectVersionOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [ProjectVersion]!
  6. uploads: [File]
  7. me: User!
  8. }
  9. type Mutation {
  10. createCharacterization(name: String!, projectVersion: ID!): Characterization!
  11. createUser(name: String!, email: String!, abbreviation: String!, password: String!): User!
  12. createProject(name: String!, abbreviation: String!, description: String): Project!
  13. createProjectVersion(name: String!, date: String!, project: ID!, changes: [String]): ProjectVersion!
  14. userLogin(email: String!, password: String!): User!
  15. userLogout: String!
  16. uploadFiles(files: [Upload!]!, name: String!, description: String!): String!
  17. }