1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- # 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]!
- currentUser: User!
- }
- type Mutation {
- createUser(data: UserCreateInput!): User!
- updateUser(email: String!, data: UserUpdateInput!): User
- deleteUser(email: String!): 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!
- }
|