123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # 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!]!
- trainingType(where: TrainingTypeWhereUniqueInput!): TrainingType
- 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!]!
- formats(
- where: FormatWhereInput
- orderBy: FormatOrderByInput
- skip: Int
- after: String
- before: String
- first: Int
- last: Int
- ): [Format!]!
- currentUser: User!
- }
- type Mutation {
- createUser(data: UserCreateInput!): User!
- updateUser(email: String!, data: UserUpdateInput!): User
- deleteUser(email: String!): User
- createTraining(
- title: String!
- type: TrainingTypeCreateOneInput!
- trainingDate: DateTime!
- location: String!
- attendance: Int!
- published: Boolean!
- blocks: BlockCreateManyInput
- ): 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!
- createFormat(name: String!, description: String!): Format!
- userLogin(email: String!, password: String!): User!
- userLogout: String!
- userSignup(name: String!, email: String!, password: String!): User!
- requestReset(email: String!): String!
- resetPassword(token: String!, password: String!): User!
- }
|