import * as Client from '@prisma/client' import { Context } from './context' import { GraphQLResolveInfo } from 'graphql' type Resolver = ( parent: T, args: A, context: Context, info: GraphQLResolveInfo, ) => Promise export interface Resolvers { [key: string]: { [key: string]: Resolver } Post?: Post Comment?: Comment User?: User Query?: Query Mutation?: Mutation AggregatePost?: AggregatePost PostGroupByOutputType?: PostGroupByOutputType AggregateComment?: AggregateComment CommentGroupByOutputType?: CommentGroupByOutputType AggregateUser?: AggregateUser UserGroupByOutputType?: UserGroupByOutputType AffectedRowsOutput?: AffectedRowsOutput PostCountOutputType?: PostCountOutputType PostCountAggregateOutputType?: PostCountAggregateOutputType PostMinAggregateOutputType?: PostMinAggregateOutputType PostMaxAggregateOutputType?: PostMaxAggregateOutputType CommentCountAggregateOutputType?: CommentCountAggregateOutputType CommentMinAggregateOutputType?: CommentMinAggregateOutputType CommentMaxAggregateOutputType?: CommentMaxAggregateOutputType UserCountOutputType?: UserCountOutputType UserCountAggregateOutputType?: UserCountAggregateOutputType UserMinAggregateOutputType?: UserMinAggregateOutputType UserMaxAggregateOutputType?: UserMaxAggregateOutputType } export interface Post { [key: string]: Resolver id?: Resolver slug?: Resolver title?: Resolver body?: Resolver comments?: Resolver user?: Resolver userId?: Resolver _count?: Resolver } export interface Comment { [key: string]: Resolver id?: Resolver post?: Resolver postId?: Resolver comment?: Resolver } export interface User { [key: string]: Resolver id?: Resolver email?: Resolver name?: Resolver username?: Resolver posts?: Resolver _count?: Resolver } export interface Query { [key: string]: Resolver findFirstPost?: Resolver<{}, FindFirstPostArgs, Client.Post | null> findManyPost?: Resolver<{}, FindManyPostArgs, Client.Post[]> findManyPostCount?: Resolver<{}, FindManyPostArgs, number> aggregatePost?: Resolver< {}, AggregatePostArgs, Client.Prisma.GetPostAggregateType > groupByPost?: Resolver< {}, GroupByPostArgs, Client.Prisma.PostGroupByOutputType[] > findUniquePost?: Resolver<{}, FindUniquePostArgs, Client.Post | null> findFirstComment?: Resolver<{}, FindFirstCommentArgs, Client.Comment | null> findManyComment?: Resolver<{}, FindManyCommentArgs, Client.Comment[]> findManyCommentCount?: Resolver<{}, FindManyCommentArgs, number> aggregateComment?: Resolver< {}, AggregateCommentArgs, Client.Prisma.GetCommentAggregateType > groupByComment?: Resolver< {}, GroupByCommentArgs, Client.Prisma.CommentGroupByOutputType[] > findUniqueComment?: Resolver<{}, FindUniqueCommentArgs, Client.Comment | null> findFirstUser?: Resolver<{}, FindFirstUserArgs, Client.User | null> findManyUser?: Resolver<{}, FindManyUserArgs, Client.User[]> findManyUserCount?: Resolver<{}, FindManyUserArgs, number> aggregateUser?: Resolver< {}, AggregateUserArgs, Client.Prisma.GetUserAggregateType > groupByUser?: Resolver< {}, GroupByUserArgs, Client.Prisma.UserGroupByOutputType[] > findUniqueUser?: Resolver<{}, FindUniqueUserArgs, Client.User | null> } export interface Mutation { [key: string]: Resolver createOnePost?: Resolver<{}, CreateOnePostArgs, Client.Post> upsertOnePost?: Resolver<{}, UpsertOnePostArgs, Client.Post> createManyPost?: Resolver<{}, CreateManyPostArgs, Client.Prisma.BatchPayload> deleteOnePost?: Resolver<{}, DeleteOnePostArgs, Client.Post | null> updateOnePost?: Resolver<{}, UpdateOnePostArgs, Client.Post | null> updateManyPost?: Resolver<{}, UpdateManyPostArgs, Client.Prisma.BatchPayload> deleteManyPost?: Resolver<{}, DeleteManyPostArgs, Client.Prisma.BatchPayload> createOneComment?: Resolver<{}, CreateOneCommentArgs, Client.Comment> upsertOneComment?: Resolver<{}, UpsertOneCommentArgs, Client.Comment> createManyComment?: Resolver< {}, CreateManyCommentArgs, Client.Prisma.BatchPayload > deleteOneComment?: Resolver<{}, DeleteOneCommentArgs, Client.Comment | null> updateOneComment?: Resolver<{}, UpdateOneCommentArgs, Client.Comment | null> updateManyComment?: Resolver< {}, UpdateManyCommentArgs, Client.Prisma.BatchPayload > deleteManyComment?: Resolver< {}, DeleteManyCommentArgs, Client.Prisma.BatchPayload > createOneUser?: Resolver<{}, CreateOneUserArgs, Client.User> upsertOneUser?: Resolver<{}, UpsertOneUserArgs, Client.User> createManyUser?: Resolver<{}, CreateManyUserArgs, Client.Prisma.BatchPayload> deleteOneUser?: Resolver<{}, DeleteOneUserArgs, Client.User | null> updateOneUser?: Resolver<{}, UpdateOneUserArgs, Client.User | null> updateManyUser?: Resolver<{}, UpdateManyUserArgs, Client.Prisma.BatchPayload> deleteManyUser?: Resolver<{}, DeleteManyUserArgs, Client.Prisma.BatchPayload> } export interface AggregatePost { [key: string]: Resolver _count?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostCountAggregateOutputType | null > count?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostMinAggregateOutputType | null > min?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostMaxAggregateOutputType | null > max?: Resolver< Client.Prisma.AggregatePost, {}, Client.Prisma.PostMaxAggregateOutputType | null > } export interface PostGroupByOutputType { [key: string]: Resolver id?: Resolver slug?: Resolver title?: Resolver body?: Resolver userId?: Resolver _count?: Resolver< Client.Prisma.PostGroupByOutputType, {}, Client.Prisma.PostCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.PostGroupByOutputType, {}, Client.Prisma.PostMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.PostGroupByOutputType, {}, Client.Prisma.PostMaxAggregateOutputType | null > } export interface AggregateComment { [key: string]: Resolver _count?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentCountAggregateOutputType | null > count?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentMinAggregateOutputType | null > min?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentMaxAggregateOutputType | null > max?: Resolver< Client.Prisma.AggregateComment, {}, Client.Prisma.CommentMaxAggregateOutputType | null > } export interface CommentGroupByOutputType { [key: string]: Resolver id?: Resolver postId?: Resolver comment?: Resolver _count?: Resolver< Client.Prisma.CommentGroupByOutputType, {}, Client.Prisma.CommentCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.CommentGroupByOutputType, {}, Client.Prisma.CommentMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.CommentGroupByOutputType, {}, Client.Prisma.CommentMaxAggregateOutputType | null > } export interface AggregateUser { [key: string]: Resolver _count?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserCountAggregateOutputType | null > count?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserMinAggregateOutputType | null > min?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserMaxAggregateOutputType | null > max?: Resolver< Client.Prisma.AggregateUser, {}, Client.Prisma.UserMaxAggregateOutputType | null > } export interface UserGroupByOutputType { [key: string]: Resolver id?: Resolver email?: Resolver name?: Resolver username?: Resolver _count?: Resolver< Client.Prisma.UserGroupByOutputType, {}, Client.Prisma.UserCountAggregateOutputType | null > _min?: Resolver< Client.Prisma.UserGroupByOutputType, {}, Client.Prisma.UserMinAggregateOutputType | null > _max?: Resolver< Client.Prisma.UserGroupByOutputType, {}, Client.Prisma.UserMaxAggregateOutputType | null > } export interface AffectedRowsOutput { [key: string]: Resolver count?: Resolver } export interface PostCountOutputType { [key: string]: Resolver comments?: Resolver } export interface PostCountAggregateOutputType { [key: string]: Resolver id?: Resolver slug?: Resolver title?: Resolver body?: Resolver userId?: Resolver _all?: Resolver } export interface PostMinAggregateOutputType { [key: string]: Resolver id?: Resolver slug?: Resolver title?: Resolver body?: Resolver userId?: Resolver } export interface PostMaxAggregateOutputType { [key: string]: Resolver id?: Resolver slug?: Resolver title?: Resolver body?: Resolver userId?: Resolver } export interface CommentCountAggregateOutputType { [key: string]: Resolver id?: Resolver postId?: Resolver comment?: Resolver _all?: Resolver } export interface CommentMinAggregateOutputType { [key: string]: Resolver id?: Resolver postId?: Resolver< Client.Prisma.CommentMinAggregateOutputType, {}, string | null > comment?: Resolver< Client.Prisma.CommentMinAggregateOutputType, {}, string | null > } export interface CommentMaxAggregateOutputType { [key: string]: Resolver id?: Resolver postId?: Resolver< Client.Prisma.CommentMaxAggregateOutputType, {}, string | null > comment?: Resolver< Client.Prisma.CommentMaxAggregateOutputType, {}, string | null > } export interface UserCountOutputType { [key: string]: Resolver posts?: Resolver } export interface UserCountAggregateOutputType { [key: string]: Resolver id?: Resolver email?: Resolver name?: Resolver username?: Resolver _all?: Resolver } export interface UserMinAggregateOutputType { [key: string]: Resolver id?: Resolver email?: Resolver name?: Resolver username?: Resolver< Client.Prisma.UserMinAggregateOutputType, {}, string | null > } export interface UserMaxAggregateOutputType { [key: string]: Resolver id?: Resolver email?: Resolver name?: Resolver username?: Resolver< Client.Prisma.UserMaxAggregateOutputType, {}, string | null > } export interface PostCommentsArgs { where?: CommentWhereInput | null orderBy?: CommentOrderByInput[] | null cursor?: CommentWhereUniqueInput | null take?: number | null skip?: number | null distinct?: CommentScalarFieldEnum[] | null } export interface UserPostsArgs { where?: PostWhereInput | null orderBy?: PostOrderByInput[] | null cursor?: PostWhereUniqueInput | null take?: number | null skip?: number | null distinct?: PostScalarFieldEnum[] | null } export interface FindFirstPostArgs { where?: PostWhereInput | null orderBy?: PostOrderByInput[] | null cursor?: PostWhereUniqueInput | null take?: number | null skip?: number | null distinct?: PostScalarFieldEnum[] | null } export interface FindManyPostArgs { where?: PostWhereInput orderBy?: PostOrderByInput[] cursor?: PostWhereUniqueInput take?: number skip?: number distinct?: PostScalarFieldEnum[] } export interface AggregatePostArgs { where?: PostWhereInput orderBy?: PostOrderByInput[] cursor?: PostWhereUniqueInput take?: number skip?: number _count?: Client.Prisma.PostCountAggregateInputType count?: Client.Prisma.PostCountAggregateInputType _min?: Client.Prisma.PostMinAggregateInputType min?: Client.Prisma.PostMinAggregateInputType _max?: Client.Prisma.PostMaxAggregateInputType max?: Client.Prisma.PostMaxAggregateInputType } export interface GroupByPostArgs { where?: PostWhereInput orderBy?: PostOrderByInput[] by: PostScalarFieldEnum[] having?: PostScalarWhereWithAggregatesInput take?: number skip?: number } export interface FindUniquePostArgs { where: PostWhereUniqueInput | null } export interface FindFirstCommentArgs { where?: CommentWhereInput | null orderBy?: CommentOrderByInput[] | null cursor?: CommentWhereUniqueInput | null take?: number | null skip?: number | null distinct?: CommentScalarFieldEnum[] | null } export interface FindManyCommentArgs { where?: CommentWhereInput orderBy?: CommentOrderByInput[] cursor?: CommentWhereUniqueInput take?: number skip?: number distinct?: CommentScalarFieldEnum[] } export interface AggregateCommentArgs { where?: CommentWhereInput orderBy?: CommentOrderByInput[] cursor?: CommentWhereUniqueInput take?: number skip?: number _count?: Client.Prisma.CommentCountAggregateInputType count?: Client.Prisma.CommentCountAggregateInputType _min?: Client.Prisma.CommentMinAggregateInputType min?: Client.Prisma.CommentMinAggregateInputType _max?: Client.Prisma.CommentMaxAggregateInputType max?: Client.Prisma.CommentMaxAggregateInputType } export interface GroupByCommentArgs { where?: CommentWhereInput orderBy?: CommentOrderByInput[] by: CommentScalarFieldEnum[] having?: CommentScalarWhereWithAggregatesInput take?: number skip?: number } export interface FindUniqueCommentArgs { where: CommentWhereUniqueInput | null } export interface FindFirstUserArgs { where?: UserWhereInput | null orderBy?: UserOrderByInput[] | null cursor?: UserWhereUniqueInput | null take?: number | null skip?: number | null distinct?: UserScalarFieldEnum[] | null } export interface FindManyUserArgs { where?: UserWhereInput orderBy?: UserOrderByInput[] cursor?: UserWhereUniqueInput take?: number skip?: number distinct?: UserScalarFieldEnum[] } export interface AggregateUserArgs { where?: UserWhereInput orderBy?: UserOrderByInput[] cursor?: UserWhereUniqueInput take?: number skip?: number _count?: Client.Prisma.UserCountAggregateInputType count?: Client.Prisma.UserCountAggregateInputType _min?: Client.Prisma.UserMinAggregateInputType min?: Client.Prisma.UserMinAggregateInputType _max?: Client.Prisma.UserMaxAggregateInputType max?: Client.Prisma.UserMaxAggregateInputType } export interface GroupByUserArgs { where?: UserWhereInput orderBy?: UserOrderByInput[] by: UserScalarFieldEnum[] having?: UserScalarWhereWithAggregatesInput take?: number skip?: number } export interface FindUniqueUserArgs { where: UserWhereUniqueInput | null } export interface CreateOnePostArgs { data: PostCreateInput } export interface UpsertOnePostArgs { where: PostWhereUniqueInput create: PostCreateInput update: PostUpdateInput } export interface CreateManyPostArgs { data: PostCreateManyInput[] } export interface DeleteOnePostArgs { where: PostWhereUniqueInput | null } export interface UpdateOnePostArgs { data: PostUpdateInput | null where: PostWhereUniqueInput | null } export interface UpdateManyPostArgs { data: PostUpdateManyMutationInput where?: PostWhereInput } export interface DeleteManyPostArgs { where?: PostWhereInput } export interface CreateOneCommentArgs { data: CommentCreateInput } export interface UpsertOneCommentArgs { where: CommentWhereUniqueInput create: CommentCreateInput update: CommentUpdateInput } export interface CreateManyCommentArgs { data: CommentCreateManyInput[] } export interface DeleteOneCommentArgs { where: CommentWhereUniqueInput | null } export interface UpdateOneCommentArgs { data: CommentUpdateInput | null where: CommentWhereUniqueInput | null } export interface UpdateManyCommentArgs { data: CommentUpdateManyMutationInput where?: CommentWhereInput } export interface DeleteManyCommentArgs { where?: CommentWhereInput } export interface CreateOneUserArgs { data: UserCreateInput } export interface UpsertOneUserArgs { where: UserWhereUniqueInput create: UserCreateInput update: UserUpdateInput } export interface CreateManyUserArgs { data: UserCreateManyInput[] } export interface DeleteOneUserArgs { where: UserWhereUniqueInput | null } export interface UpdateOneUserArgs { data: UserUpdateInput | null where: UserWhereUniqueInput | null } export interface UpdateManyUserArgs { data: UserUpdateManyMutationInput where?: UserWhereInput } export interface DeleteManyUserArgs { where?: UserWhereInput } export interface PostWhereInput { AND?: PostWhereInput[] OR?: PostWhereInput[] NOT?: PostWhereInput[] id?: StringFilter slug?: StringFilter title?: StringFilter body?: StringFilter comments?: CommentListRelationFilter user?: UserWhereInput userId?: StringFilter } export interface PostOrderByInput { id?: SortOrder slug?: SortOrder title?: SortOrder body?: SortOrder userId?: SortOrder } export interface PostWhereUniqueInput { id?: string slug?: string } export interface PostScalarWhereWithAggregatesInput { AND?: PostScalarWhereWithAggregatesInput[] OR?: PostScalarWhereWithAggregatesInput[] NOT?: PostScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter slug?: StringWithAggregatesFilter title?: StringWithAggregatesFilter body?: StringWithAggregatesFilter userId?: StringWithAggregatesFilter } export interface CommentWhereInput { AND?: CommentWhereInput[] OR?: CommentWhereInput[] NOT?: CommentWhereInput[] id?: StringFilter post?: PostWhereInput postId?: StringFilter comment?: StringFilter } export interface CommentOrderByInput { id?: SortOrder postId?: SortOrder comment?: SortOrder } export interface CommentWhereUniqueInput { id?: string } export interface CommentScalarWhereWithAggregatesInput { AND?: CommentScalarWhereWithAggregatesInput[] OR?: CommentScalarWhereWithAggregatesInput[] NOT?: CommentScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter postId?: StringWithAggregatesFilter comment?: StringWithAggregatesFilter } export interface UserWhereInput { AND?: UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput[] id?: StringFilter email?: StringFilter name?: StringNullableFilter | null username?: StringNullableFilter | null posts?: PostListRelationFilter } export interface UserOrderByInput { id?: SortOrder email?: SortOrder name?: SortOrder username?: SortOrder } export interface UserWhereUniqueInput { id?: string email?: string } export interface UserScalarWhereWithAggregatesInput { AND?: UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter email?: StringWithAggregatesFilter name?: StringNullableWithAggregatesFilter | null username?: StringNullableWithAggregatesFilter | null } export interface PostCreateInput { id?: string slug: string title: string body: string comments?: CommentCreateNestedManyWithoutPostInput user: UserCreateNestedOneWithoutPostsInput } export interface PostUncheckedCreateInput { id?: string slug: string title: string body: string userId: string comments?: CommentUncheckedCreateNestedManyWithoutPostInput } export interface PostUpdateInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput comments?: CommentUpdateManyWithoutPostInput user?: UserUpdateOneRequiredWithoutPostsInput } export interface PostUncheckedUpdateInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput userId?: StringFieldUpdateOperationsInput comments?: CommentUncheckedUpdateManyWithoutPostInput } export interface PostCreateManyInput { id?: string slug: string title: string body: string userId: string } export interface PostUpdateManyMutationInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput } export interface PostUncheckedUpdateManyInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput userId?: StringFieldUpdateOperationsInput } export interface CommentCreateInput { id?: string comment: string post: PostCreateNestedOneWithoutCommentsInput } export interface CommentUncheckedCreateInput { id?: string postId: string comment: string } export interface CommentUpdateInput { comment?: StringFieldUpdateOperationsInput post?: PostUpdateOneRequiredWithoutCommentsInput } export interface CommentUncheckedUpdateInput { postId?: StringFieldUpdateOperationsInput comment?: StringFieldUpdateOperationsInput } export interface CommentCreateManyInput { id?: string postId: string comment: string } export interface CommentUpdateManyMutationInput { comment?: StringFieldUpdateOperationsInput } export interface CommentUncheckedUpdateManyInput { postId?: StringFieldUpdateOperationsInput comment?: StringFieldUpdateOperationsInput } export interface UserCreateInput { id?: string email: string name?: string | null username?: string | null posts?: PostCreateNestedManyWithoutUserInput } export interface UserUncheckedCreateInput { id?: string email: string name?: string | null username?: string | null posts?: PostUncheckedCreateNestedManyWithoutUserInput } export interface UserUpdateInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null posts?: PostUpdateManyWithoutUserInput } export interface UserUncheckedUpdateInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null posts?: PostUncheckedUpdateManyWithoutUserInput } export interface UserCreateManyInput { id?: string email: string name?: string | null username?: string | null } export interface UserUpdateManyMutationInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null } export interface UserUncheckedUpdateManyInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null } export interface StringFilter { equals?: string in?: string[] notIn?: string[] lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string mode?: QueryMode not?: NestedStringFilter } export interface CommentListRelationFilter { every?: CommentWhereInput some?: CommentWhereInput none?: CommentWhereInput } export interface UserRelationFilter { is?: UserWhereInput isNot?: UserWhereInput } export interface StringWithAggregatesFilter { equals?: string in?: string[] notIn?: string[] lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string mode?: QueryMode not?: NestedStringWithAggregatesFilter _count?: NestedIntFilter count?: NestedIntFilter _min?: NestedStringFilter min?: NestedStringFilter _max?: NestedStringFilter max?: NestedStringFilter } export interface PostRelationFilter { is?: PostWhereInput isNot?: PostWhereInput } export interface StringNullableFilter { equals?: string | null in?: string[] | null notIn?: string[] | null lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string mode?: QueryMode not?: NestedStringNullableFilter | null } export interface PostListRelationFilter { every?: PostWhereInput some?: PostWhereInput none?: PostWhereInput } export interface StringNullableWithAggregatesFilter { equals?: string | null in?: string[] | null notIn?: string[] | null lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter | null _count?: NestedIntNullableFilter count?: NestedIntNullableFilter _min?: NestedStringNullableFilter min?: NestedStringNullableFilter _max?: NestedStringNullableFilter max?: NestedStringNullableFilter } export interface CommentCreateNestedManyWithoutPostInput { create?: CommentCreateWithoutPostInput[] connectOrCreate?: CommentCreateOrConnectWithoutPostInput[] createMany?: CommentCreateManyPostInputEnvelope connect?: CommentWhereUniqueInput[] } export interface UserCreateNestedOneWithoutPostsInput { create?: UserUncheckedCreateWithoutPostsInput connectOrCreate?: UserCreateOrConnectWithoutPostsInput connect?: UserWhereUniqueInput } export interface CommentUncheckedCreateNestedManyWithoutPostInput { create?: CommentCreateWithoutPostInput[] connectOrCreate?: CommentCreateOrConnectWithoutPostInput[] createMany?: CommentCreateManyPostInputEnvelope connect?: CommentWhereUniqueInput[] } export interface StringFieldUpdateOperationsInput { set?: string } export interface CommentUpdateManyWithoutPostInput { create?: CommentCreateWithoutPostInput[] connectOrCreate?: CommentCreateOrConnectWithoutPostInput[] upsert?: CommentUpsertWithWhereUniqueWithoutPostInput[] createMany?: CommentCreateManyPostInputEnvelope connect?: CommentWhereUniqueInput[] set?: CommentWhereUniqueInput[] disconnect?: CommentWhereUniqueInput[] delete?: CommentWhereUniqueInput[] update?: CommentUpdateWithWhereUniqueWithoutPostInput[] updateMany?: CommentUpdateManyWithWhereWithoutPostInput[] deleteMany?: CommentScalarWhereInput[] } export interface UserUpdateOneRequiredWithoutPostsInput { create?: UserUncheckedCreateWithoutPostsInput connectOrCreate?: UserCreateOrConnectWithoutPostsInput upsert?: UserUpsertWithoutPostsInput connect?: UserWhereUniqueInput update?: UserUncheckedUpdateWithoutPostsInput } export interface CommentUncheckedUpdateManyWithoutPostInput { create?: CommentCreateWithoutPostInput[] connectOrCreate?: CommentCreateOrConnectWithoutPostInput[] upsert?: CommentUpsertWithWhereUniqueWithoutPostInput[] createMany?: CommentCreateManyPostInputEnvelope connect?: CommentWhereUniqueInput[] set?: CommentWhereUniqueInput[] disconnect?: CommentWhereUniqueInput[] delete?: CommentWhereUniqueInput[] update?: CommentUpdateWithWhereUniqueWithoutPostInput[] updateMany?: CommentUpdateManyWithWhereWithoutPostInput[] deleteMany?: CommentScalarWhereInput[] } export interface PostCreateNestedOneWithoutCommentsInput { create?: PostUncheckedCreateWithoutCommentsInput connectOrCreate?: PostCreateOrConnectWithoutCommentsInput connect?: PostWhereUniqueInput } export interface PostUpdateOneRequiredWithoutCommentsInput { create?: PostUncheckedCreateWithoutCommentsInput connectOrCreate?: PostCreateOrConnectWithoutCommentsInput upsert?: PostUpsertWithoutCommentsInput connect?: PostWhereUniqueInput update?: PostUncheckedUpdateWithoutCommentsInput } export interface PostCreateNestedManyWithoutUserInput { create?: PostCreateWithoutUserInput[] connectOrCreate?: PostCreateOrConnectWithoutUserInput[] createMany?: PostCreateManyUserInputEnvelope connect?: PostWhereUniqueInput[] } export interface PostUncheckedCreateNestedManyWithoutUserInput { create?: PostCreateWithoutUserInput[] connectOrCreate?: PostCreateOrConnectWithoutUserInput[] createMany?: PostCreateManyUserInputEnvelope connect?: PostWhereUniqueInput[] } export interface NullableStringFieldUpdateOperationsInput { set?: string | null } export interface PostUpdateManyWithoutUserInput { create?: PostCreateWithoutUserInput[] connectOrCreate?: PostCreateOrConnectWithoutUserInput[] upsert?: PostUpsertWithWhereUniqueWithoutUserInput[] createMany?: PostCreateManyUserInputEnvelope connect?: PostWhereUniqueInput[] set?: PostWhereUniqueInput[] disconnect?: PostWhereUniqueInput[] delete?: PostWhereUniqueInput[] update?: PostUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PostUpdateManyWithWhereWithoutUserInput[] deleteMany?: PostScalarWhereInput[] } export interface PostUncheckedUpdateManyWithoutUserInput { create?: PostCreateWithoutUserInput[] connectOrCreate?: PostCreateOrConnectWithoutUserInput[] upsert?: PostUpsertWithWhereUniqueWithoutUserInput[] createMany?: PostCreateManyUserInputEnvelope connect?: PostWhereUniqueInput[] set?: PostWhereUniqueInput[] disconnect?: PostWhereUniqueInput[] delete?: PostWhereUniqueInput[] update?: PostUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PostUpdateManyWithWhereWithoutUserInput[] deleteMany?: PostScalarWhereInput[] } export interface NestedStringFilter { equals?: string in?: string[] notIn?: string[] lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string not?: NestedStringFilter } export interface NestedStringWithAggregatesFilter { equals?: string in?: string[] notIn?: string[] lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string not?: NestedStringWithAggregatesFilter _count?: NestedIntFilter count?: NestedIntFilter _min?: NestedStringFilter min?: NestedStringFilter _max?: NestedStringFilter max?: NestedStringFilter } export interface NestedIntFilter { equals?: number in?: number[] notIn?: number[] lt?: number lte?: number gt?: number gte?: number not?: NestedIntFilter } export interface NestedStringNullableFilter { equals?: string | null in?: string[] | null notIn?: string[] | null lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string not?: NestedStringNullableFilter | null } export interface NestedStringNullableWithAggregatesFilter { equals?: string | null in?: string[] | null notIn?: string[] | null lt?: string lte?: string gt?: string gte?: string contains?: string startsWith?: string endsWith?: string not?: NestedStringNullableWithAggregatesFilter | null _count?: NestedIntNullableFilter count?: NestedIntNullableFilter _min?: NestedStringNullableFilter min?: NestedStringNullableFilter _max?: NestedStringNullableFilter max?: NestedStringNullableFilter } export interface NestedIntNullableFilter { equals?: number | null in?: number[] | null notIn?: number[] | null lt?: number lte?: number gt?: number gte?: number not?: NestedIntNullableFilter | null } export interface CommentCreateWithoutPostInput { id?: string comment: string } export interface CommentUncheckedCreateWithoutPostInput { id?: string comment: string } export interface CommentCreateOrConnectWithoutPostInput { where: CommentWhereUniqueInput create: CommentUncheckedCreateWithoutPostInput } export interface CommentCreateManyPostInputEnvelope { data: CommentCreateManyPostInput[] } export interface UserCreateWithoutPostsInput { id?: string email: string name?: string | null username?: string | null } export interface UserUncheckedCreateWithoutPostsInput { id?: string email: string name?: string | null username?: string | null } export interface UserCreateOrConnectWithoutPostsInput { where: UserWhereUniqueInput create: UserUncheckedCreateWithoutPostsInput } export interface CommentUpsertWithWhereUniqueWithoutPostInput { where: CommentWhereUniqueInput update: CommentUncheckedUpdateWithoutPostInput create: CommentUncheckedCreateWithoutPostInput } export interface CommentUpdateWithWhereUniqueWithoutPostInput { where: CommentWhereUniqueInput data: CommentUncheckedUpdateWithoutPostInput } export interface CommentUpdateManyWithWhereWithoutPostInput { where: CommentScalarWhereInput data: CommentUncheckedUpdateManyWithoutCommentsInput } export interface CommentScalarWhereInput { AND?: CommentScalarWhereInput[] OR?: CommentScalarWhereInput[] NOT?: CommentScalarWhereInput[] id?: StringFilter postId?: StringFilter comment?: StringFilter } export interface UserUpsertWithoutPostsInput { update: UserUncheckedUpdateWithoutPostsInput create: UserUncheckedCreateWithoutPostsInput } export interface UserUpdateWithoutPostsInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null } export interface UserUncheckedUpdateWithoutPostsInput { email?: StringFieldUpdateOperationsInput name?: NullableStringFieldUpdateOperationsInput | null username?: NullableStringFieldUpdateOperationsInput | null } export interface PostCreateWithoutCommentsInput { id?: string slug: string title: string body: string user: UserCreateNestedOneWithoutPostsInput } export interface PostUncheckedCreateWithoutCommentsInput { id?: string slug: string title: string body: string userId: string } export interface PostCreateOrConnectWithoutCommentsInput { where: PostWhereUniqueInput create: PostUncheckedCreateWithoutCommentsInput } export interface PostUpsertWithoutCommentsInput { update: PostUncheckedUpdateWithoutCommentsInput create: PostUncheckedCreateWithoutCommentsInput } export interface PostUpdateWithoutCommentsInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput user?: UserUpdateOneRequiredWithoutPostsInput } export interface PostUncheckedUpdateWithoutCommentsInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput userId?: StringFieldUpdateOperationsInput } export interface PostCreateWithoutUserInput { id?: string slug: string title: string body: string comments?: CommentCreateNestedManyWithoutPostInput } export interface PostUncheckedCreateWithoutUserInput { id?: string slug: string title: string body: string comments?: CommentUncheckedCreateNestedManyWithoutPostInput } export interface PostCreateOrConnectWithoutUserInput { where: PostWhereUniqueInput create: PostUncheckedCreateWithoutUserInput } export interface PostCreateManyUserInputEnvelope { data: PostCreateManyUserInput[] } export interface PostUpsertWithWhereUniqueWithoutUserInput { where: PostWhereUniqueInput update: PostUncheckedUpdateWithoutUserInput create: PostUncheckedCreateWithoutUserInput } export interface PostUpdateWithWhereUniqueWithoutUserInput { where: PostWhereUniqueInput data: PostUncheckedUpdateWithoutUserInput } export interface PostUpdateManyWithWhereWithoutUserInput { where: PostScalarWhereInput data: PostUncheckedUpdateManyWithoutPostsInput } export interface PostScalarWhereInput { AND?: PostScalarWhereInput[] OR?: PostScalarWhereInput[] NOT?: PostScalarWhereInput[] id?: StringFilter slug?: StringFilter title?: StringFilter body?: StringFilter userId?: StringFilter } export interface CommentCreateManyPostInput { id?: string comment: string } export interface CommentUpdateWithoutPostInput { comment?: StringFieldUpdateOperationsInput } export interface CommentUncheckedUpdateWithoutPostInput { comment?: StringFieldUpdateOperationsInput } export interface CommentUncheckedUpdateManyWithoutCommentsInput { comment?: StringFieldUpdateOperationsInput } export interface PostCreateManyUserInput { id?: string slug: string title: string body: string } export interface PostUpdateWithoutUserInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput comments?: CommentUpdateManyWithoutPostInput } export interface PostUncheckedUpdateWithoutUserInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput comments?: CommentUncheckedUpdateManyWithoutPostInput } export interface PostUncheckedUpdateManyWithoutPostsInput { slug?: StringFieldUpdateOperationsInput title?: StringFieldUpdateOperationsInput body?: StringFieldUpdateOperationsInput } export enum PostScalarFieldEnum { id = 'id', slug = 'slug', title = 'title', body = 'body', userId = 'userId', } export enum CommentScalarFieldEnum { id = 'id', postId = 'postId', comment = 'comment', } export enum UserScalarFieldEnum { id = 'id', email = 'email', name = 'name', username = 'username', } export enum SortOrder { asc = 'asc', desc = 'desc', } export enum QueryMode { default = 'default', insensitive = 'insensitive', }