123456789101112131415161718192021222324 |
- # import * from './database/generated/prisma.graphql'
- type Query {
- users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]!
- training(where: TrainingWhereUniqueInput!): Training
- trainings(where: TrainingWhereInput, orderBy: TrainingOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Training]!
- trainingTypes(where: TrainingTypeWhereInput, orderBy: TrainingTypeOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [TrainingType]!
- blocks(where: BlockWhereInput, orderBy: BlockOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Block]!
- me: User!
- }
- type Mutation {
- createUser(data: UserCreateInput!): User!
- updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
- deleteUser(where: UserWhereUniqueInput!): User
- createTraining(title: String!): Training!
- createTrainingType(name: String!, description: String!): TrainingType!
- createBlock(sequence: Int!, title: String!, duration: Int!, variation: String, format: ID, tracks: [ID]!, exercises: [ID]!, description: String!): Block!
- login(email: String!, password: String!): User!
- logout: String!
- signup(name: String!, email: String!, password: String!): User!
- requestReset(email: String!): String!
- resetPassword(token: String!, password: String!): User!
- }
|