schema.graphql 1.1 KB

1234567891011121314151617181920
  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. instruments(where: InstrumentWhereInput, orderBy: InstrumentOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Instrument]!
  7. uploads: [File]
  8. me: User!
  9. }
  10. type Mutation {
  11. createCharacterization(name: String!, projectVersion: ID!): Characterization!
  12. createUser(name: String!, email: String!, abbreviation: String!, password: String!): User!
  13. createProject(name: String!, abbreviation: String!, description: String): Project!
  14. createProjectVersion(name: String!, date: String!, project: ID!, changes: [String]): ProjectVersion!
  15. userLogin(email: String!, password: String!): User!
  16. userLogout: String!
  17. uploadFiles(files: [Upload!]!, name: String!, description: String!): String!
  18. }