From 6bfa271184a3a7788fad2507b74acd97546c7a2c Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 15:49:14 +0800 Subject: [PATCH 01/19] feat: initialize GraphQL ORM with Prisma and GQloom --- orm/graphql-gqloom/package.json | 34 + orm/graphql-gqloom/prisma/schema.prisma | 34 + orm/graphql-gqloom/prisma/seed.ts | 77 + orm/graphql-gqloom/schema.graphql | 272 + orm/graphql-gqloom/src/db.ts | 13 + .../src/generated/gqloom/index.cjs | 11 + .../src/generated/gqloom/index.d.ts | 113 + .../src/generated/gqloom/index.js | 11 + .../src/generated/gqloom/model-meta.json | 14649 ++++++++++++++++ .../src/generated/prisma/browser.ts | 28 + .../src/generated/prisma/client.ts | 52 + .../src/generated/prisma/commonInputTypes.ts | 351 + .../src/generated/prisma/enums.ts | 14 + .../src/generated/prisma/internal/class.ts | 242 + .../prisma/internal/prismaNamespace.ts | 826 + .../prisma/internal/prismaNamespaceBrowser.ts | 105 + .../src/generated/prisma/models.ts | 12 + .../src/generated/prisma/models/Post.ts | 1527 ++ .../src/generated/prisma/models/User.ts | 1312 ++ orm/graphql-gqloom/src/resolvers/post.ts | 155 + orm/graphql-gqloom/src/resolvers/user.ts | 34 + orm/graphql-gqloom/src/server.ts | 38 + orm/graphql-gqloom/tsconfig.json | 11 + 23 files changed, 19921 insertions(+) create mode 100644 orm/graphql-gqloom/package.json create mode 100644 orm/graphql-gqloom/prisma/schema.prisma create mode 100644 orm/graphql-gqloom/prisma/seed.ts create mode 100644 orm/graphql-gqloom/schema.graphql create mode 100644 orm/graphql-gqloom/src/db.ts create mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.cjs create mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.d.ts create mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.js create mode 100644 orm/graphql-gqloom/src/generated/gqloom/model-meta.json create mode 100644 orm/graphql-gqloom/src/generated/prisma/browser.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/client.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/enums.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/class.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/models.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/models/Post.ts create mode 100644 orm/graphql-gqloom/src/generated/prisma/models/User.ts create mode 100644 orm/graphql-gqloom/src/resolvers/post.ts create mode 100644 orm/graphql-gqloom/src/resolvers/user.ts create mode 100644 orm/graphql-gqloom/src/server.ts create mode 100644 orm/graphql-gqloom/tsconfig.json diff --git a/orm/graphql-gqloom/package.json b/orm/graphql-gqloom/package.json new file mode 100644 index 000000000000..c0961c6d05f5 --- /dev/null +++ b/orm/graphql-gqloom/package.json @@ -0,0 +1,34 @@ +{ + "name": "typescript-graphql-gqloom", + "private": true, + "type": "commonjs", + "scripts": { + "init-tables": "node scripts/init_tables.cjs", + "generate": "prisma generate", + "start": "tsx watch src/server.ts", + "postinstall": "npm run generate", + "push": "prisma db push", + "seed": "prisma db seed" + }, + "devDependencies": { + "@types/node": "^24.8.1", + "prisma": "^6.17.1", + "tsx": "^4.20.6", + "typescript": "^5.9.3" + }, + "dependencies": { + "@gqloom/core": "^0.12.1", + "@gqloom/prisma": "^0.12.2", + "@gqloom/zod": "^0.12.2", + "@prisma/adapter-better-sqlite3": "^6.17.1", + "@prisma/adapter-libsql": "^6.17.1", + "@prisma/client": "^6.17.1", + "graphql": "^16.11.0", + "graphql-scalars": "^1.25.0", + "graphql-yoga": "^5.16.0", + "zod": "^4.1.12" + }, + "prisma": { + "seed": "tsx prisma/seed.ts" + } +} diff --git a/orm/graphql-gqloom/prisma/schema.prisma b/orm/graphql-gqloom/prisma/schema.prisma new file mode 100644 index 000000000000..248fd8e6d795 --- /dev/null +++ b/orm/graphql-gqloom/prisma/schema.prisma @@ -0,0 +1,34 @@ +datasource db { + provider = "sqlite" + url = "file:./dev.db" +} + +generator client { + provider = "prisma-client" + engineType = "client" + output = "../src/generated/prisma" +} + +generator gqloom { + provider = "prisma-gqloom" + output = "../src/generated/gqloom" +} + +model User { + id Int @id @default(autoincrement()) + email String @unique + name String? + posts Post[] +} + +model Post { + id Int @id @default(autoincrement()) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + title String + content String? + published Boolean @default(false) + viewCount Int @default(0) + author User? @relation(fields: [authorId], references: [id]) + authorId Int? +} diff --git a/orm/graphql-gqloom/prisma/seed.ts b/orm/graphql-gqloom/prisma/seed.ts new file mode 100644 index 000000000000..7775e24377ca --- /dev/null +++ b/orm/graphql-gqloom/prisma/seed.ts @@ -0,0 +1,77 @@ +import * as path from 'node:path' +import { PrismaLibSQL } from '@prisma/adapter-libsql' +import { type Prisma, PrismaClient } from '../src/generated/prisma/client' + +const adapter = new PrismaLibSQL({ + url: `file:${path.join(__dirname, '../prisma/dev.db')}`, +}) +const prisma = new PrismaClient({ adapter }) + +const userData: Prisma.UserCreateInput[] = [ + { + name: 'Alice', + email: 'alice@prisma.io', + posts: { + create: [ + { + title: 'Join the Prisma Discord', + content: 'https://pris.ly/discord', + published: true, + }, + ], + }, + }, + { + name: 'Nilu', + email: 'nilu@prisma.io', + posts: { + create: [ + { + title: 'Follow Prisma on Twitter', + content: 'https://www.twitter.com/prisma', + published: true, + viewCount: 42, + }, + ], + }, + }, + { + name: 'Mahmoud', + email: 'mahmoud@prisma.io', + posts: { + create: [ + { + title: 'Ask a question about Prisma on GitHub', + content: 'https://www.github.com/prisma/prisma/discussions', + published: true, + viewCount: 128, + }, + { + title: 'Prisma on YouTube', + content: 'https://pris.ly/youtube', + }, + ], + }, + }, +] + +async function main() { + console.log(`Start seeding ...`) + for (const u of userData) { + const user = await prisma.user.create({ + data: u, + }) + console.log(`Created user with id: ${user.id}`) + } + console.log(`Seeding finished.`) +} + +main() + .then(async () => { + await prisma.$disconnect() + }) + .catch(async (e) => { + console.error(e) + await prisma.$disconnect() + process.exit(1) + }) diff --git a/orm/graphql-gqloom/schema.graphql b/orm/graphql-gqloom/schema.graphql new file mode 100644 index 000000000000..df9132cfb6b2 --- /dev/null +++ b/orm/graphql-gqloom/schema.graphql @@ -0,0 +1,272 @@ +input BoolFilter { + equals: Boolean + not: NestedBoolFilter +} + +""" +A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. +""" +scalar DateTime + +input DateTimeFilter { + equals: DateTime + gt: DateTime + gte: DateTime + in: [DateTime!] + lt: DateTime + lte: DateTime + not: NestedDateTimeFilter + notIn: [DateTime!] +} + +input FeedOrderByInput { + updatedAt: FeedOrderByUpdatedAtInput +} + +enum FeedOrderByUpdatedAtInput { + asc + desc +} + +input IntFilter { + equals: Int + gt: Int + gte: Int + in: [Int!] + lt: Int + lte: Int + not: NestedIntFilter + notIn: [Int!] +} + +input IntNullableFilter { + equals: Int + gt: Int + gte: Int + in: [Int!] + lt: Int + lte: Int + not: NestedIntNullableFilter + notIn: [Int!] +} + +type Mutation { + createDraft(authorEmail: String!, data: PostCreateInput!): Post! + deletePost(id: Float!): Post! + incrementPostViewCount(id: Float!): Post! + signupUser(data: SignupUserDataInput!): User! + togglePublishPost(id: Float!): Post! +} + +input NestedBoolFilter { + equals: Boolean + not: NestedBoolFilter +} + +input NestedDateTimeFilter { + equals: DateTime + gt: DateTime + gte: DateTime + in: [DateTime!] + lt: DateTime + lte: DateTime + not: NestedDateTimeFilter + notIn: [DateTime!] +} + +input NestedIntFilter { + equals: Int + gt: Int + gte: Int + in: [Int!] + lt: Int + lte: Int + not: NestedIntFilter + notIn: [Int!] +} + +input NestedIntNullableFilter { + equals: Int + gt: Int + gte: Int + in: [Int!] + lt: Int + lte: Int + not: NestedIntNullableFilter + notIn: [Int!] +} + +input NestedStringFilter { + contains: String + endsWith: String + equals: String + gt: String + gte: String + in: [String!] + lt: String + lte: String + not: NestedStringFilter + notIn: [String!] + startsWith: String +} + +input NestedStringNullableFilter { + contains: String + endsWith: String + equals: String + gt: String + gte: String + in: [String!] + lt: String + lte: String + not: NestedStringNullableFilter + notIn: [String!] + startsWith: String +} + +enum NullsOrder { + first + last +} + +type Post { + author: User + content: String + createdAt: DateTime! + id: ID! + published: Boolean! + title: String! + updatedAt: DateTime! + viewCount: Int! +} + +input PostCreateInput { + content: String + title: String! +} + +input PostListRelationFilter { + every: PostWhereInput + none: PostWhereInput + some: PostWhereInput +} + +input PostOrderByRelationAggregateInput { + _count: SortOrder +} + +input PostWhereInput { + AND: [PostWhereInput!] + NOT: [PostWhereInput!] + OR: [PostWhereInput!] + author: UserNullableScalarRelationFilter + authorId: IntNullableFilter + content: StringNullableFilter + createdAt: DateTimeFilter + id: IntFilter + published: BoolFilter + title: StringFilter + updatedAt: DateTimeFilter + viewCount: IntFilter +} + +type Query { + allUsers(cursor: UserWhereUniqueInput, distinct: [UserScalarFieldEnum!], orderBy: [UserOrderByWithRelationInput!], skip: Int, take: Int, where: UserWhereInput): [User!]! + draftsByUser(userUniqueInput: UserUniqueInput!): [Post!]! + feed(orderBy: FeedOrderByInput, searchString: String, skip: Float, take: Float): [Post!]! + postById(id: Float!): Post +} + +input SignupUserDataInput { + email: String! + name: String + posts: [PostCreateInput!]! +} + +enum SortOrder { + asc + desc +} + +input SortOrderInput { + nulls: NullsOrder + sort: SortOrder! +} + +input StringFilter { + contains: String + endsWith: String + equals: String + gt: String + gte: String + in: [String!] + lt: String + lte: String + not: NestedStringFilter + notIn: [String!] + startsWith: String +} + +input StringNullableFilter { + contains: String + endsWith: String + equals: String + gt: String + gte: String + in: [String!] + lt: String + lte: String + not: NestedStringNullableFilter + notIn: [String!] + startsWith: String +} + +type User { + email: String! + id: ID! + name: String + posts: [Post!]! +} + +input UserNullableScalarRelationFilter { + is: UserWhereInput + isNot: UserWhereInput +} + +input UserOrderByWithRelationInput { + email: SortOrder + id: SortOrder + name: SortOrderInput + posts: PostOrderByRelationAggregateInput +} + +enum UserScalarFieldEnum { + email + id + name +} + +input UserUniqueInput { + email: String + id: Float +} + +input UserWhereInput { + AND: [UserWhereInput!] + NOT: [UserWhereInput!] + OR: [UserWhereInput!] + email: StringFilter + id: IntFilter + name: StringNullableFilter + posts: PostListRelationFilter +} + +input UserWhereUniqueInput { + AND: [UserWhereInput!] + NOT: [UserWhereInput!] + OR: [UserWhereInput!] + email: String + id: Int + name: StringNullableFilter + posts: PostListRelationFilter +} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/db.ts b/orm/graphql-gqloom/src/db.ts new file mode 100644 index 000000000000..9b05125cb631 --- /dev/null +++ b/orm/graphql-gqloom/src/db.ts @@ -0,0 +1,13 @@ +import * as path from 'node:path' +import { PrismaLibSQL } from '@prisma/adapter-libsql' +import { PrismaClient } from './generated/prisma/client' + +const url = `file:${path.join(__dirname, '../prisma/dev.db')}` + +const adapter = new PrismaLibSQL({ + url, +}) +export const prisma = new PrismaClient({ + adapter, + log: [{ emit: 'stdout', level: 'query' }], +}) diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.cjs b/orm/graphql-gqloom/src/generated/gqloom/index.cjs new file mode 100644 index 000000000000..ae7d6b62f861 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/gqloom/index.cjs @@ -0,0 +1,11 @@ +const { PrismaWeaver } = require("@gqloom/prisma") +const mm = require("./model-meta.json") + +const User = PrismaWeaver.unravel(mm.models.User, mm) +const Post = PrismaWeaver.unravel(mm.models.Post, mm) + + +module.exports = { + User, + Post, +} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.d.ts b/orm/graphql-gqloom/src/generated/gqloom/index.d.ts new file mode 100644 index 000000000000..c03fa95e5f0e --- /dev/null +++ b/orm/graphql-gqloom/src/generated/gqloom/index.d.ts @@ -0,0 +1,113 @@ +import type { PrismaModelSilk, PrismaEnumSilk } from "@gqloom/prisma"; +import type { User as IUser, Post as IPost, Prisma } from "../prisma/client.ts"; + +export const User: PrismaModelSilk; +export const Post: PrismaModelSilk; + +declare module "@gqloom/prisma" { + interface PrismaTypes { + User: { + UserWhereInput: Prisma.UserWhereInput + UserOrderByWithRelationInput: Prisma.UserOrderByWithRelationInput + UserWhereUniqueInput: Prisma.UserWhereUniqueInput + UserOrderByWithAggregationInput: Prisma.UserOrderByWithAggregationInput + UserScalarWhereWithAggregatesInput: Prisma.UserScalarWhereWithAggregatesInput + UserCreateInput: Prisma.UserCreateInput + UserUncheckedCreateInput: Prisma.UserUncheckedCreateInput + UserUpdateInput: Prisma.UserUpdateInput + UserUncheckedUpdateInput: Prisma.UserUncheckedUpdateInput + UserCreateManyInput: Prisma.UserCreateManyInput + UserUpdateManyMutationInput: Prisma.UserUpdateManyMutationInput + UserUncheckedUpdateManyInput: Prisma.UserUncheckedUpdateManyInput + UserCountOrderByAggregateInput: Prisma.UserCountOrderByAggregateInput + UserAvgOrderByAggregateInput: Prisma.UserAvgOrderByAggregateInput + UserMaxOrderByAggregateInput: Prisma.UserMaxOrderByAggregateInput + UserMinOrderByAggregateInput: Prisma.UserMinOrderByAggregateInput + UserSumOrderByAggregateInput: Prisma.UserSumOrderByAggregateInput + UserNullableScalarRelationFilter: Prisma.UserNullableScalarRelationFilter + StringFieldUpdateOperationsInput: Prisma.StringFieldUpdateOperationsInput + NullableStringFieldUpdateOperationsInput: Prisma.NullableStringFieldUpdateOperationsInput + IntFieldUpdateOperationsInput: Prisma.IntFieldUpdateOperationsInput + UserCreateNestedOneWithoutPostsInput: Prisma.UserCreateNestedOneWithoutPostsInput + UserUpdateOneWithoutPostsNestedInput: Prisma.UserUpdateOneWithoutPostsNestedInput + UserCreateWithoutPostsInput: Prisma.UserCreateWithoutPostsInput + UserUncheckedCreateWithoutPostsInput: Prisma.UserUncheckedCreateWithoutPostsInput + UserCreateOrConnectWithoutPostsInput: Prisma.UserCreateOrConnectWithoutPostsInput + UserUpsertWithoutPostsInput: Prisma.UserUpsertWithoutPostsInput + UserUpdateToOneWithWhereWithoutPostsInput: Prisma.UserUpdateToOneWithWhereWithoutPostsInput + UserUpdateWithoutPostsInput: Prisma.UserUpdateWithoutPostsInput + UserUncheckedUpdateWithoutPostsInput: Prisma.UserUncheckedUpdateWithoutPostsInput + } + Post: { + PostWhereInput: Prisma.PostWhereInput + PostOrderByWithRelationInput: Prisma.PostOrderByWithRelationInput + PostWhereUniqueInput: Prisma.PostWhereUniqueInput + PostOrderByWithAggregationInput: Prisma.PostOrderByWithAggregationInput + PostScalarWhereWithAggregatesInput: Prisma.PostScalarWhereWithAggregatesInput + PostCreateInput: Prisma.PostCreateInput + PostUncheckedCreateInput: Prisma.PostUncheckedCreateInput + PostUpdateInput: Prisma.PostUpdateInput + PostUncheckedUpdateInput: Prisma.PostUncheckedUpdateInput + PostCreateManyInput: Prisma.PostCreateManyInput + PostUpdateManyMutationInput: Prisma.PostUpdateManyMutationInput + PostUncheckedUpdateManyInput: Prisma.PostUncheckedUpdateManyInput + PostListRelationFilter: Prisma.PostListRelationFilter + PostOrderByRelationAggregateInput: Prisma.PostOrderByRelationAggregateInput + PostCountOrderByAggregateInput: Prisma.PostCountOrderByAggregateInput + PostAvgOrderByAggregateInput: Prisma.PostAvgOrderByAggregateInput + PostMaxOrderByAggregateInput: Prisma.PostMaxOrderByAggregateInput + PostMinOrderByAggregateInput: Prisma.PostMinOrderByAggregateInput + PostSumOrderByAggregateInput: Prisma.PostSumOrderByAggregateInput + PostCreateNestedManyWithoutAuthorInput: Prisma.PostCreateNestedManyWithoutAuthorInput + PostUncheckedCreateNestedManyWithoutAuthorInput: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput + PostUpdateManyWithoutAuthorNestedInput: Prisma.PostUpdateManyWithoutAuthorNestedInput + PostUncheckedUpdateManyWithoutAuthorNestedInput: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput + DateTimeFieldUpdateOperationsInput: Prisma.DateTimeFieldUpdateOperationsInput + BoolFieldUpdateOperationsInput: Prisma.BoolFieldUpdateOperationsInput + NullableIntFieldUpdateOperationsInput: Prisma.NullableIntFieldUpdateOperationsInput + PostCreateWithoutAuthorInput: Prisma.PostCreateWithoutAuthorInput + PostUncheckedCreateWithoutAuthorInput: Prisma.PostUncheckedCreateWithoutAuthorInput + PostCreateOrConnectWithoutAuthorInput: Prisma.PostCreateOrConnectWithoutAuthorInput + PostCreateManyAuthorInputEnvelope: Prisma.PostCreateManyAuthorInputEnvelope + PostUpsertWithWhereUniqueWithoutAuthorInput: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput + PostUpdateWithWhereUniqueWithoutAuthorInput: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput + PostUpdateManyWithWhereWithoutAuthorInput: Prisma.PostUpdateManyWithWhereWithoutAuthorInput + PostScalarWhereInput: Prisma.PostScalarWhereInput + PostCreateManyAuthorInput: Prisma.PostCreateManyAuthorInput + PostUpdateWithoutAuthorInput: Prisma.PostUpdateWithoutAuthorInput + PostUncheckedUpdateWithoutAuthorInput: Prisma.PostUncheckedUpdateWithoutAuthorInput + PostUncheckedUpdateManyWithoutAuthorInput: Prisma.PostUncheckedUpdateManyWithoutAuthorInput + } + others: { + IntFilter: Prisma.IntFilter + StringFilter: Prisma.StringFilter + StringNullableFilter: Prisma.StringNullableFilter + SortOrderInput: Prisma.SortOrderInput + IntWithAggregatesFilter: Prisma.IntWithAggregatesFilter + StringWithAggregatesFilter: Prisma.StringWithAggregatesFilter + StringNullableWithAggregatesFilter: Prisma.StringNullableWithAggregatesFilter + DateTimeFilter: Prisma.DateTimeFilter + BoolFilter: Prisma.BoolFilter + IntNullableFilter: Prisma.IntNullableFilter + DateTimeWithAggregatesFilter: Prisma.DateTimeWithAggregatesFilter + BoolWithAggregatesFilter: Prisma.BoolWithAggregatesFilter + IntNullableWithAggregatesFilter: Prisma.IntNullableWithAggregatesFilter + NestedIntFilter: Prisma.NestedIntFilter + NestedStringFilter: Prisma.NestedStringFilter + NestedStringNullableFilter: Prisma.NestedStringNullableFilter + NestedIntWithAggregatesFilter: Prisma.NestedIntWithAggregatesFilter + NestedFloatFilter: Prisma.NestedFloatFilter + NestedStringWithAggregatesFilter: Prisma.NestedStringWithAggregatesFilter + NestedStringNullableWithAggregatesFilter: Prisma.NestedStringNullableWithAggregatesFilter + NestedIntNullableFilter: Prisma.NestedIntNullableFilter + NestedDateTimeFilter: Prisma.NestedDateTimeFilter + NestedBoolFilter: Prisma.NestedBoolFilter + NestedDateTimeWithAggregatesFilter: Prisma.NestedDateTimeWithAggregatesFilter + NestedBoolWithAggregatesFilter: Prisma.NestedBoolWithAggregatesFilter + NestedIntNullableWithAggregatesFilter: Prisma.NestedIntNullableWithAggregatesFilter + NestedFloatNullableFilter: Prisma.NestedFloatNullableFilter + } + } +} + +export { IUser, IPost }; diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.js b/orm/graphql-gqloom/src/generated/gqloom/index.js new file mode 100644 index 000000000000..94a0fc485f0a --- /dev/null +++ b/orm/graphql-gqloom/src/generated/gqloom/index.js @@ -0,0 +1,11 @@ +import { PrismaWeaver } from "@gqloom/prisma" +import mm from "./model-meta.json" with { type: "json" } + +const User = PrismaWeaver.unravel(mm.models.User, mm) +const Post = PrismaWeaver.unravel(mm.models.Post, mm) + + +export { + User, + Post, +} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/gqloom/model-meta.json b/orm/graphql-gqloom/src/generated/gqloom/model-meta.json new file mode 100644 index 000000000000..94428238533a --- /dev/null +++ b/orm/graphql-gqloom/src/generated/gqloom/model-meta.json @@ -0,0 +1,14649 @@ +{ + "models": { + "User": { + "name": "User", + "dbName": null, + "schema": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": true, + "type": "Int", + "nativeType": null, + "default": { + "name": "autoincrement", + "args": [] + }, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "email", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": true, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "name", + "kind": "scalar", + "isList": false, + "isRequired": false, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "posts", + "kind": "object", + "isList": true, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Post", + "nativeType": null, + "relationName": "PostToUser", + "relationFromFields": [], + "relationToFields": [], + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + }, + "Post": { + "name": "Post", + "dbName": null, + "schema": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": true, + "type": "Int", + "nativeType": null, + "default": { + "name": "autoincrement", + "args": [] + }, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "createdAt", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": true, + "type": "DateTime", + "nativeType": null, + "default": { + "name": "now", + "args": [] + }, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "updatedAt", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "DateTime", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": true + }, + { + "name": "title", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "content", + "kind": "scalar", + "isList": false, + "isRequired": false, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "published", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": true, + "type": "Boolean", + "nativeType": null, + "default": false, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "viewCount", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": true, + "type": "Int", + "nativeType": null, + "default": 0, + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "author", + "kind": "object", + "isList": false, + "isRequired": false, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "User", + "nativeType": null, + "relationName": "PostToUser", + "relationFromFields": [ + "authorId" + ], + "relationToFields": [ + "id" + ], + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "authorId", + "kind": "scalar", + "isList": false, + "isRequired": false, + "isUnique": false, + "isId": false, + "isReadOnly": true, + "hasDefaultValue": false, + "type": "Int", + "nativeType": null, + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + }, + "enums": {}, + "schema": { + "inputObjectTypes": { + "prisma": [ + { + "name": "UserWhereInput", + "meta": { + "source": "User", + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostListRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserOrderByWithRelationInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByRelationAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserWhereUniqueInput", + "meta": { + "source": "User", + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": 1, + "fields": [ + "id", + "email" + ] + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostListRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserOrderByWithAggregationInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCountOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserAvgOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserMaxOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserMinOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserSumOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserScalarWhereWithAggregatesInput", + "meta": { + "source": "User", + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostWhereInput", + "meta": { + "source": "Post", + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "IntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "author", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "UserNullableScalarRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostOrderByWithRelationInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "author", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostWhereUniqueInput", + "meta": { + "source": "Post", + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": 1, + "fields": [ + "id" + ] + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "IntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "author", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "UserNullableScalarRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostOrderByWithAggregationInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "SortOrderInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCountOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostAvgOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostMaxOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostMinOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostSumOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostScalarWhereWithAggregatesInput", + "meta": { + "source": "Post", + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BoolWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "IntNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserCreateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "email", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateNestedManyWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUncheckedCreateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUncheckedCreateNestedManyWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpdateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyWithoutAuthorNestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUncheckedUpdateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "posts", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUncheckedUpdateManyWithoutAuthorNestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserCreateManyInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpdateManyMutationInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUncheckedUpdateManyInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "author", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateNestedOneWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedCreateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "author", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateOneWithoutPostsNestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedUpdateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NullableIntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateManyInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateManyMutationInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedUpdateManyInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NullableIntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "IntFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringNullableFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostListRelationFilter", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "every", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "some", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "none", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "SortOrderInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "sort", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "nulls", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NullsOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostOrderByRelationAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserCountOrderByAggregateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserAvgOrderByAggregateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserMaxOrderByAggregateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserMinOrderByAggregateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserSumOrderByAggregateInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "IntWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedFloatFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringNullableWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "DateTimeFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BoolFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BooleanFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "IntNullableFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserNullableScalarRelationFilter", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "is", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "isNot", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCountOrderByAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostAvgOrderByAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostMaxOrderByAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostMinOrderByAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostSumOrderByAggregateInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "DateTimeWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "NestedDateTimeWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BoolWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BooleanFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "NestedBoolWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "IntNullableWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedFloatNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateNestedManyWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "createMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyAuthorInputEnvelope", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ] + }, + { + "name": "PostUncheckedCreateNestedManyWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "createMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyAuthorInputEnvelope", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ] + }, + { + "name": "StringFieldUpdateOperationsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "NullableStringFieldUpdateOperationsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateManyWithoutAuthorNestedInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "createMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyAuthorInputEnvelope", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "disconnect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "delete", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "updateMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyWithWhereWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpdateManyWithWhereWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "deleteMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ] + }, + { + "name": "IntFieldUpdateOperationsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "increment", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "decrement", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "multiply", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "divide", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedUpdateManyWithoutAuthorNestedInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateOrConnectWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "createMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyAuthorInputEnvelope", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "disconnect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "delete", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "updateMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyWithWhereWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUpdateManyWithWhereWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "deleteMany", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ] + }, + { + "name": "UserCreateNestedOneWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateOrConnectWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "DateTimeFieldUpdateOperationsInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BoolFieldUpdateOperationsInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpdateOneWithoutPostsNestedInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateOrConnectWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpsertWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "disconnect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "delete", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateToOneWithWhereWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NullableIntFieldUpdateOperationsInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "increment", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "decrement", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "multiply", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "divide", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedIntFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringNullableFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedIntWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedFloatFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedFloatFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "NestedFloatFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringNullableWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedIntNullableFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedDateTimeFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedBoolFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BooleanFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedDateTimeWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "NestedDateTimeWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedDateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedBoolWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BooleanFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "NestedBoolWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedBoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedIntNullableWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntNullableWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_avg", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedFloatNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_sum", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedFloatNullableFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": true + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "FloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + }, + { + "type": "NestedFloatNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedCreateWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateOrConnectWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateManyAuthorInputEnvelope", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateManyAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ] + }, + { + "name": "PostUpsertWithWhereUniqueWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateWithWhereUniqueWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateManyWithWhereWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateManyWithoutAuthorInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostScalarWhereInput", + "meta": { + "source": "Post", + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostScalarWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTimeFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "StringNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BoolFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "IntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "authorId", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "IntNullableFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserCreateWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "email", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUncheckedCreateWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserCreateOrConnectWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpsertWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpdateToOneWithWhereWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateWithoutPostsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUpdateWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "UserUncheckedUpdateWithoutPostsInput", + "meta": { + "grouping": "User" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "email", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "name", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostCreateManyAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUpdateWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedUpdateWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "PostUncheckedUpdateManyWithoutAuthorInput", + "meta": { + "grouping": "Post" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "createdAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "updatedAt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + }, + { + "type": "DateTimeFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "title", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "content", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NullableStringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "published", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "BoolFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "viewCount", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + } + ] + }, + "outputObjectTypes": { + "prisma": [ + { + "name": "Query", + "fields": [ + { + "name": "findFirstUser", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstUserOrThrow", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findManyUser", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "aggregateUser", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "UserOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AggregateUser", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "groupByUser", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "UserOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "by", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + }, + { + "type": "UserScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "having", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "UserGroupByOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "findUniqueUser", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findUniqueUserOrThrow", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstPost", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstPostOrThrow", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findManyPost", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "aggregatePost", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AggregatePost", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "groupByPost", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "by", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + }, + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "having", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "PostGroupByOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "findUniquePost", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findUniquePostOrThrow", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "Mutation", + "fields": [ + { + "name": "createOneUser", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "upsertOneUser", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyUser", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyUserAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "CreateManyUserAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteOneUser", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateOneUser", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyUser", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyUserAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "UserUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "UserUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "UpdateManyUserAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteManyUser", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createOnePost", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "upsertOnePost", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyPost", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyPostAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "CreateManyPostAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteOnePost", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateOnePost", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyPost", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyPostAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "PostUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "PostUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "UpdateManyPostAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteManyPost", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "limit", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "executeRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + }, + { + "name": "queryRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "AggregateUser", + "fields": [ + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_avg", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserAvgAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_sum", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserSumAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "UserGroupByOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_avg", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserAvgAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_sum", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserSumAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "UserMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "AggregatePost", + "fields": [ + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_avg", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostAvgAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_sum", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostSumAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "PostGroupByOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": false, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_avg", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostAvgAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_sum", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostSumAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "PostMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "AffectedRowsOutput", + "fields": [ + { + "name": "count", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserCountOutputType", + "fields": [ + { + "name": "posts", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserCountAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "_all", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserAvgAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Float", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserSumAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserMinAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UserMaxAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "PostCountAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "_all", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "PostAvgAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Float", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": true, + "outputType": { + "type": "Float", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Float", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "PostSumAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "PostMinAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": true, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": true, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": true, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "PostMaxAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": true, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": true, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": true, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + } + ], + "model": [ + { + "name": "User", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "posts", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "PostOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "PostScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "Post", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "_count", + "args": [], + "isNullable": false, + "outputType": { + "type": "UserCountOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "Post", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": false, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "author", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "CreateManyUserAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "UpdateManyUserAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "email", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "name", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "CreateManyPostAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": false, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "author", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "UpdateManyPostAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "createdAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "updatedAt", + "args": [], + "isNullable": false, + "outputType": { + "type": "DateTime", + "location": "scalar", + "isList": false + } + }, + { + "name": "title", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "content", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "published", + "args": [], + "isNullable": false, + "outputType": { + "type": "Boolean", + "location": "scalar", + "isList": false + } + }, + { + "name": "viewCount", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "authorId", + "args": [], + "isNullable": true, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "author", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "UserWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "User", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + } + ] + }, + "enumTypes": { + "prisma": [ + { + "name": "TransactionIsolationLevel", + "values": [ + "Serializable" + ] + }, + { + "name": "UserScalarFieldEnum", + "values": [ + "id", + "email", + "name" + ] + }, + { + "name": "PostScalarFieldEnum", + "values": [ + "id", + "createdAt", + "updatedAt", + "title", + "content", + "published", + "viewCount", + "authorId" + ] + }, + { + "name": "SortOrder", + "values": [ + "asc", + "desc" + ] + }, + { + "name": "NullsOrder", + "values": [ + "first", + "last" + ] + } + ] + }, + "fieldRefTypes": { + "prisma": [ + { + "name": "IntFieldRefInput", + "allowTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "StringFieldRefInput", + "allowTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "DateTimeFieldRefInput", + "allowTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BooleanFieldRefInput", + "allowTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "FloatFieldRefInput", + "allowTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/prisma/browser.ts b/orm/graphql-gqloom/src/generated/prisma/browser.ts new file mode 100644 index 000000000000..6c7c4f7a8fb5 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/browser.ts @@ -0,0 +1,28 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser.js' +export { Prisma } +export * as $Enums from './enums.js' +export * from './enums.js'; +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Post + * + */ +export type Post = Prisma.PostModel diff --git a/orm/graphql-gqloom/src/generated/prisma/client.ts b/orm/graphql-gqloom/src/generated/prisma/client.ts new file mode 100644 index 000000000000..3c19fca40914 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/client.ts @@ -0,0 +1,52 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' +import { fileURLToPath } from 'node:url' +globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.js" +import * as $Class from "./internal/class.js" +import * as Prisma from "./internal/prismaNamespace.js" + +export * as $Enums from './enums.js' +export * from "./enums.js" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). + */ +export const PrismaClient = $Class.getPrismaClientClass(__dirname) +export type PrismaClient = $Class.PrismaClient +export { Prisma } + + + +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Post + * + */ +export type Post = Prisma.PostModel diff --git a/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts b/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts new file mode 100644 index 000000000000..86c1bf8bd321 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts @@ -0,0 +1,351 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * ๐ŸŸข You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.js" +import type * as Prisma from "./internal/prismaNamespace.js" + + +export type IntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type IntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type DateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type IntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type BoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedIntNullableFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedDateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedIntNullableFilter<$PrismaModel> +} + +export type NestedFloatNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null +} + + diff --git a/orm/graphql-gqloom/src/generated/prisma/enums.ts b/orm/graphql-gqloom/src/generated/prisma/enums.ts new file mode 100644 index 000000000000..0189a3446d4f --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/enums.ts @@ -0,0 +1,14 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* ๐ŸŸข You can import this file directly. +*/ + + + +// This file is empty because there are no enums in the schema. +export {} diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/class.ts b/orm/graphql-gqloom/src/generated/prisma/internal/class.ts new file mode 100644 index 000000000000..e339773691f2 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/internal/class.ts @@ -0,0 +1,242 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace.js" + + +const config: runtime.GetPrismaClientConfig = { + "generator": { + "name": "client", + "provider": { + "fromEnvVar": null, + "value": "prisma-client" + }, + "output": { + "value": "/home/xcfox/code/demo/prisma-examples/orm/graphql-gqloom/src/generated/prisma", + "fromEnvVar": null + }, + "config": { + "engineType": "client" + }, + "binaryTargets": [ + { + "fromEnvVar": null, + "value": "debian-openssl-3.0.x", + "native": true + } + ], + "previewFeatures": [], + "sourceFilePath": "/home/xcfox/code/demo/prisma-examples/orm/graphql-gqloom/prisma/schema.prisma", + "isCustomOutput": true + }, + "relativePath": "../../../prisma", + "clientVersion": "6.17.1", + "engineVersion": "272a37d34178c2894197e17273bf937f25acdeac", + "datasourceNames": [ + "db" + ], + "activeProvider": "sqlite", + "postinstall": false, + "inlineDatasources": { + "db": { + "url": { + "fromEnvVar": null, + "value": "file:./dev.db" + } + } + }, + "inlineSchema": "datasource db {\n provider = \"sqlite\"\n url = \"file:./dev.db\"\n}\n\ngenerator client {\n provider = \"prisma-client\"\n engineType = \"client\"\n output = \"../src/generated/prisma\"\n}\n\ngenerator gqloom {\n provider = \"prisma-gqloom\"\n output = \"../src/generated/gqloom\"\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String?\n posts Post[]\n}\n\nmodel Post {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n title String\n content String?\n published Boolean @default(false)\n viewCount Int @default(0)\n author User? @relation(fields: [authorId], references: [id])\n authorId Int?\n}\n", + "inlineSchemaHash": "703ea5d1209eee6ddb5dd2625cdc7bfc05d3c542f09d738a49d70c0413758350", + "copyEngine": true, + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + }, + "dirname": "" +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"posts\",\"kind\":\"object\",\"type\":\"Post\",\"relationName\":\"PostToUser\"}],\"dbName\":null},\"Post\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"published\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"viewCount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"author\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PostToUser\"},{\"name\":\"authorId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") +config.engineWasm = undefined + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs") + return await decodeBase64AsWasm(wasm) + } +} + + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options?: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise; + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise; + +/** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). + */ + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * prisma.user.create({ data: { name: 'Alice' } }), + * ]) + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.user`: Exposes CRUD operations for the **User** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + */ + get user(): Prisma.UserDelegate; + + /** + * `prisma.post`: Exposes CRUD operations for the **Post** model. + * Example usage: + * ```ts + * // Fetch zero or more Posts + * const posts = await prisma.post.findMany() + * ``` + */ + get post(): Prisma.PostDelegate; +} + +export function getPrismaClientClass(dirname: string): PrismaClientConstructor { + config.dirname = dirname + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts new file mode 100644 index 000000000000..0fd2bd506181 --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts @@ -0,0 +1,826 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models.js" +import { type PrismaClient } from "./class.js" + +export type * from '../models.js' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** + * Metrics + */ +export type Metrics = runtime.Metrics +export type Metric = runtime.Metric +export type MetricHistogram = runtime.MetricHistogram +export type MetricHistogramBucket = runtime.MetricHistogramBucket + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 6.17.1 + * Query Engine version: 272a37d34178c2894197e17273bf937f25acdeac + */ +export const prismaVersion: PrismaVersion = { + client: "6.17.1", + engine: "272a37d34178c2894197e17273bf937f25acdeac" +} + +/** + * Utility Types + */ + +export type JsonObject = runtime.JsonObject +export type JsonArray = runtime.JsonArray +export type JsonValue = runtime.JsonValue +export type InputJsonObject = runtime.InputJsonObject +export type InputJsonArray = runtime.InputJsonArray +export type InputJsonValue = runtime.InputJsonValue + + +export const NullTypes = { + DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), + JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), + AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.objectEnumValues.instances.DbNull +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.objectEnumValues.instances.JsonNull +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.objectEnumValues.instances.AnyNull + + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + select: any + omit: any +} + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Prisma__Pick = { + [P in K]: T[P]; +}; + +export type Enumerable = T | Array; + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never; +}; + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * Additionally, it validates, if both select and include are present. If the case, it errors. + */ +export type SelectSubset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) + +/** + * Subset + Intersection + * @desc From `T` pick properties that exist in `U` and intersect `K` + */ +export type SubsetIntersection = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + K + +type Without = { [P in Exclude]?: never }; + +/** + * XOR is needed to have a real mutually exclusive union type + * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types + */ +export type XOR = + T extends object ? + U extends object ? + (Without & U) | (Without & T) + : U : T + + +/** + * Is T a Record? + */ +type IsObject = T extends Array +? False +: T extends Date +? False +: T extends Uint8Array +? False +: T extends BigInt +? False +: T extends object +? True +: False + + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never + +export type Union = any + +export type PatchUndefined = { + [K in keyof O]: O[K] extends undefined ? At : O[K] +} & {} + +/** Helper Types for "Merge" **/ +export type IntersectOf = ( + U extends unknown ? (k: U) => void : never +) extends (k: infer I) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; + +type _Merge = IntersectOf; +}>>; + +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; +export type At = { + 1: AtStrict; + 0: AtLoose; +}[strict]; + +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; + +export type OptionalFlat = { + [K in keyof O]?: O[K]; +} & {}; + +type _Record = { + [P in K]: T; +}; + +// cause typescript not to expand types and preserve names +type NoExpand = T extends unknown ? T : never; + +// this type assumes the passed object is entirely optional +export type AtLeast = NoExpand< + O extends unknown + ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O + : never>; + +type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; + +export type Strict = ComputeRaw<_Strict>; +/** End Helper Types for "Merge" **/ + +export type Merge = ComputeRaw<_Merge>>; + +export type Boolean = True | False + +export type True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not< + Extends, U1> +> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +export type Keys = U extends unknown ? keyof U : never + +export type GetScalarType = O extends object ? { + [P in keyof T]: P extends keyof O + ? O[P] + : never +} : never + +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True + ? // infer is only needed to not hit TS limit + // based on the brilliant idea of Pierre-Antoine Mills + // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 + T[K] extends infer TK + ? GetHavingFields extends object ? Merge> : never> + : never + : {} extends FieldPaths + ? never + : K +}[keyof T] + +/** + * Convert tuple to union + */ +type _TupleToUnion = T extends (infer E)[] ? E : never +type TupleToUnion = _TupleToUnion +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + + +export const ModelName = { + User: 'User', + Post: 'Post' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + + + +export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { + returns: TypeMap +} + +export type TypeMap = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: "user" | "post" + txIsolationLevel: TransactionIsolationLevel + } + model: { + User: { + payload: Prisma.$UserPayload + fields: Prisma.UserFieldRefs + operations: { + findUnique: { + args: Prisma.UserFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Post: { + payload: Prisma.$PostPayload + fields: Prisma.PostFieldRefs + operations: { + findUnique: { + args: Prisma.PostFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.PostFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.PostFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PostFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PostFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.PostCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.PostCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.PostCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.PostDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.PostUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.PostDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.PostUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.PostUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.PostUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PostAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PostGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PostCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const PostScalarFieldEnum = { + id: 'id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + title: 'title', + content: 'content', + published: 'published', + viewCount: 'viewCount', + authorId: 'authorId' +} as const + +export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + count: number +} + + +export type Datasource = { + url?: string +} +export type Datasources = { + db?: Datasource +} + +export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> +export type DefaultPrismaClient = PrismaClient +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' +export interface PrismaClientOptions { + /** + * Overwrites the datasource url from your schema.prisma file + */ + datasources?: Datasources + /** + * Overwrites the datasource url from your schema.prisma file + */ + datasourceUrl?: string + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { emit: 'event', level: 'warn' } + * { emit: 'event', level: 'error' } + * ] + * + * / Emit as events and log to stdout + * og: [ + * { emit: 'stdout', level: 'query' }, + * { emit: 'stdout', level: 'info' }, + * { emit: 'stdout', level: 'warn' } + * { emit: 'stdout', level: 'error' } + * + * ``` + * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` + */ + adapter?: runtime.SqlDriverAdapterFactory | null + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig +} +export type GlobalOmitConfig = { + user?: Prisma.UserOmit + post?: Prisma.PostOmit +} + +/* Types for Logging */ +export type LogLevel = 'info' | 'query' | 'warn' | 'error' +export type LogDefinition = { + level: LogLevel + emit: 'stdout' | 'event' +} + +export type CheckIsLogLevel = T extends LogLevel ? T : never; + +export type GetLogType = CheckIsLogLevel< + T extends LogDefinition ? T['level'] : T +>; + +export type GetEvents = T extends Array + ? GetLogType + : never; + +export type QueryEvent = { + timestamp: Date + query: string + params: string + duration: number + target: string +} + +export type LogEvent = { + timestamp: Date + message: string + target: string +} +/* End Types for Logging */ + + +export type PrismaAction = + | 'findUnique' + | 'findUniqueOrThrow' + | 'findMany' + | 'findFirst' + | 'findFirstOrThrow' + | 'create' + | 'createMany' + | 'createManyAndReturn' + | 'update' + | 'updateMany' + | 'updateManyAndReturn' + | 'upsert' + | 'delete' + | 'deleteMany' + | 'executeRaw' + | 'queryRaw' + | 'aggregate' + | 'count' + | 'runCommandRaw' + | 'findRaw' + | 'groupBy' + +/** + * `PrismaClient` proxy available in interactive transactions. + */ +export type TransactionClient = Omit + diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts new file mode 100644 index 000000000000..52c637830cbd --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,105 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models.js' +export type * from './prismaNamespace.js' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), + JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), + AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.objectEnumValues.instances.DbNull +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.objectEnumValues.instances.JsonNull +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.objectEnumValues.instances.AnyNull + + +export const ModelName = { + User: 'User', + Post: 'Post' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UserScalarFieldEnum = { + id: 'id', + email: 'email', + name: 'name' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const PostScalarFieldEnum = { + id: 'id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + title: 'title', + content: 'content', + published: 'published', + viewCount: 'viewCount', + authorId: 'authorId' +} as const + +export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + diff --git a/orm/graphql-gqloom/src/generated/prisma/models.ts b/orm/graphql-gqloom/src/generated/prisma/models.ts new file mode 100644 index 000000000000..4cb0b9b1a8cb --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/models.ts @@ -0,0 +1,12 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * ๐ŸŸข You can import this file directly. + */ +export type * from './models/User.js' +export type * from './models/Post.js' +export type * from './commonInputTypes.js' \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/prisma/models/Post.ts b/orm/graphql-gqloom/src/generated/prisma/models/Post.ts new file mode 100644 index 000000000000..3cf05ed06aeb --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/models/Post.ts @@ -0,0 +1,1527 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This file exports the `Post` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.js" +import type * as Prisma from "../internal/prismaNamespace.js" + +/** + * Model Post + * + */ +export type PostModel = runtime.Types.Result.DefaultSelection + +export type AggregatePost = { + _count: PostCountAggregateOutputType | null + _avg: PostAvgAggregateOutputType | null + _sum: PostSumAggregateOutputType | null + _min: PostMinAggregateOutputType | null + _max: PostMaxAggregateOutputType | null +} + +export type PostAvgAggregateOutputType = { + id: number | null + viewCount: number | null + authorId: number | null +} + +export type PostSumAggregateOutputType = { + id: number | null + viewCount: number | null + authorId: number | null +} + +export type PostMinAggregateOutputType = { + id: number | null + createdAt: Date | null + updatedAt: Date | null + title: string | null + content: string | null + published: boolean | null + viewCount: number | null + authorId: number | null +} + +export type PostMaxAggregateOutputType = { + id: number | null + createdAt: Date | null + updatedAt: Date | null + title: string | null + content: string | null + published: boolean | null + viewCount: number | null + authorId: number | null +} + +export type PostCountAggregateOutputType = { + id: number + createdAt: number + updatedAt: number + title: number + content: number + published: number + viewCount: number + authorId: number + _all: number +} + + +export type PostAvgAggregateInputType = { + id?: true + viewCount?: true + authorId?: true +} + +export type PostSumAggregateInputType = { + id?: true + viewCount?: true + authorId?: true +} + +export type PostMinAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + title?: true + content?: true + published?: true + viewCount?: true + authorId?: true +} + +export type PostMaxAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + title?: true + content?: true + published?: true + viewCount?: true + authorId?: true +} + +export type PostCountAggregateInputType = { + id?: true + createdAt?: true + updatedAt?: true + title?: true + content?: true + published?: true + viewCount?: true + authorId?: true + _all?: true +} + +export type PostAggregateArgs = { + /** + * Filter which Post to aggregate. + */ + where?: Prisma.PostWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Posts to fetch. + */ + orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.PostWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Posts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Posts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Posts + **/ + _count?: true | PostCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PostAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PostSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PostMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PostMaxAggregateInputType +} + +export type GetPostAggregateType = { + [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type PostGroupByArgs = { + where?: Prisma.PostWhereInput + orderBy?: Prisma.PostOrderByWithAggregationInput | Prisma.PostOrderByWithAggregationInput[] + by: Prisma.PostScalarFieldEnum[] | Prisma.PostScalarFieldEnum + having?: Prisma.PostScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PostCountAggregateInputType | true + _avg?: PostAvgAggregateInputType + _sum?: PostSumAggregateInputType + _min?: PostMinAggregateInputType + _max?: PostMaxAggregateInputType +} + +export type PostGroupByOutputType = { + id: number + createdAt: Date + updatedAt: Date + title: string + content: string | null + published: boolean + viewCount: number + authorId: number | null + _count: PostCountAggregateOutputType | null + _avg: PostAvgAggregateOutputType | null + _sum: PostSumAggregateOutputType | null + _min: PostMinAggregateOutputType | null + _max: PostMaxAggregateOutputType | null +} + +type GetPostGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type PostWhereInput = { + AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] + OR?: Prisma.PostWhereInput[] + NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] + id?: Prisma.IntFilter<"Post"> | number + createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string + title?: Prisma.StringFilter<"Post"> | string + content?: Prisma.StringNullableFilter<"Post"> | string | null + published?: Prisma.BoolFilter<"Post"> | boolean + viewCount?: Prisma.IntFilter<"Post"> | number + authorId?: Prisma.IntNullableFilter<"Post"> | number | null + author?: Prisma.XOR | null +} + +export type PostOrderByWithRelationInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + title?: Prisma.SortOrder + content?: Prisma.SortOrderInput | Prisma.SortOrder + published?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrderInput | Prisma.SortOrder + author?: Prisma.UserOrderByWithRelationInput +} + +export type PostWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] + OR?: Prisma.PostWhereInput[] + NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] + createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string + title?: Prisma.StringFilter<"Post"> | string + content?: Prisma.StringNullableFilter<"Post"> | string | null + published?: Prisma.BoolFilter<"Post"> | boolean + viewCount?: Prisma.IntFilter<"Post"> | number + authorId?: Prisma.IntNullableFilter<"Post"> | number | null + author?: Prisma.XOR | null +}, "id"> + +export type PostOrderByWithAggregationInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + title?: Prisma.SortOrder + content?: Prisma.SortOrderInput | Prisma.SortOrder + published?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.PostCountOrderByAggregateInput + _avg?: Prisma.PostAvgOrderByAggregateInput + _max?: Prisma.PostMaxOrderByAggregateInput + _min?: Prisma.PostMinOrderByAggregateInput + _sum?: Prisma.PostSumOrderByAggregateInput +} + +export type PostScalarWhereWithAggregatesInput = { + AND?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] + OR?: Prisma.PostScalarWhereWithAggregatesInput[] + NOT?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Post"> | number + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string + title?: Prisma.StringWithAggregatesFilter<"Post"> | string + content?: Prisma.StringNullableWithAggregatesFilter<"Post"> | string | null + published?: Prisma.BoolWithAggregatesFilter<"Post"> | boolean + viewCount?: Prisma.IntWithAggregatesFilter<"Post"> | number + authorId?: Prisma.IntNullableWithAggregatesFilter<"Post"> | number | null +} + +export type PostCreateInput = { + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number + author?: Prisma.UserCreateNestedOneWithoutPostsInput +} + +export type PostUncheckedCreateInput = { + id?: number + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number + authorId?: number | null +} + +export type PostUpdateInput = { + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number + author?: Prisma.UserUpdateOneWithoutPostsNestedInput +} + +export type PostUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number + authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type PostCreateManyInput = { + id?: number + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number + authorId?: number | null +} + +export type PostUpdateManyMutationInput = { + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type PostUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number + authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type PostListRelationFilter = { + every?: Prisma.PostWhereInput + some?: Prisma.PostWhereInput + none?: Prisma.PostWhereInput +} + +export type PostOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type PostCountOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + title?: Prisma.SortOrder + content?: Prisma.SortOrder + published?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrder +} + +export type PostAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrder +} + +export type PostMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + title?: Prisma.SortOrder + content?: Prisma.SortOrder + published?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrder +} + +export type PostMinOrderByAggregateInput = { + id?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + title?: Prisma.SortOrder + content?: Prisma.SortOrder + published?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrder +} + +export type PostSumOrderByAggregateInput = { + id?: Prisma.SortOrder + viewCount?: Prisma.SortOrder + authorId?: Prisma.SortOrder +} + +export type PostCreateNestedManyWithoutAuthorInput = { + create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] + createMany?: Prisma.PostCreateManyAuthorInputEnvelope + connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] +} + +export type PostUncheckedCreateNestedManyWithoutAuthorInput = { + create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] + createMany?: Prisma.PostCreateManyAuthorInputEnvelope + connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] +} + +export type PostUpdateManyWithoutAuthorNestedInput = { + create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] + upsert?: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput | Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput[] + createMany?: Prisma.PostCreateManyAuthorInputEnvelope + set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + update?: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput | Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput[] + updateMany?: Prisma.PostUpdateManyWithWhereWithoutAuthorInput | Prisma.PostUpdateManyWithWhereWithoutAuthorInput[] + deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] +} + +export type PostUncheckedUpdateManyWithoutAuthorNestedInput = { + create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] + upsert?: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput | Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput[] + createMany?: Prisma.PostCreateManyAuthorInputEnvelope + set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] + update?: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput | Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput[] + updateMany?: Prisma.PostUpdateManyWithWhereWithoutAuthorInput | Prisma.PostUpdateManyWithWhereWithoutAuthorInput[] + deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type PostCreateWithoutAuthorInput = { + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number +} + +export type PostUncheckedCreateWithoutAuthorInput = { + id?: number + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number +} + +export type PostCreateOrConnectWithoutAuthorInput = { + where: Prisma.PostWhereUniqueInput + create: Prisma.XOR +} + +export type PostCreateManyAuthorInputEnvelope = { + data: Prisma.PostCreateManyAuthorInput | Prisma.PostCreateManyAuthorInput[] +} + +export type PostUpsertWithWhereUniqueWithoutAuthorInput = { + where: Prisma.PostWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type PostUpdateWithWhereUniqueWithoutAuthorInput = { + where: Prisma.PostWhereUniqueInput + data: Prisma.XOR +} + +export type PostUpdateManyWithWhereWithoutAuthorInput = { + where: Prisma.PostScalarWhereInput + data: Prisma.XOR +} + +export type PostScalarWhereInput = { + AND?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] + OR?: Prisma.PostScalarWhereInput[] + NOT?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] + id?: Prisma.IntFilter<"Post"> | number + createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string + title?: Prisma.StringFilter<"Post"> | string + content?: Prisma.StringNullableFilter<"Post"> | string | null + published?: Prisma.BoolFilter<"Post"> | boolean + viewCount?: Prisma.IntFilter<"Post"> | number + authorId?: Prisma.IntNullableFilter<"Post"> | number | null +} + +export type PostCreateManyAuthorInput = { + id?: number + createdAt?: Date | string + updatedAt?: Date | string + title: string + content?: string | null + published?: boolean + viewCount?: number +} + +export type PostUpdateWithoutAuthorInput = { + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type PostUncheckedUpdateWithoutAuthorInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type PostUncheckedUpdateManyWithoutAuthorInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + title?: Prisma.StringFieldUpdateOperationsInput | string + content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + published?: Prisma.BoolFieldUpdateOperationsInput | boolean + viewCount?: Prisma.IntFieldUpdateOperationsInput | number +} + + + +export type PostSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + createdAt?: boolean + updatedAt?: boolean + title?: boolean + content?: boolean + published?: boolean + viewCount?: boolean + authorId?: boolean + author?: boolean | Prisma.Post$authorArgs +}, ExtArgs["result"]["post"]> + +export type PostSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + createdAt?: boolean + updatedAt?: boolean + title?: boolean + content?: boolean + published?: boolean + viewCount?: boolean + authorId?: boolean + author?: boolean | Prisma.Post$authorArgs +}, ExtArgs["result"]["post"]> + +export type PostSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + createdAt?: boolean + updatedAt?: boolean + title?: boolean + content?: boolean + published?: boolean + viewCount?: boolean + authorId?: boolean + author?: boolean | Prisma.Post$authorArgs +}, ExtArgs["result"]["post"]> + +export type PostSelectScalar = { + id?: boolean + createdAt?: boolean + updatedAt?: boolean + title?: boolean + content?: boolean + published?: boolean + viewCount?: boolean + authorId?: boolean +} + +export type PostOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "title" | "content" | "published" | "viewCount" | "authorId", ExtArgs["result"]["post"]> +export type PostInclude = { + author?: boolean | Prisma.Post$authorArgs +} +export type PostIncludeCreateManyAndReturn = { + author?: boolean | Prisma.Post$authorArgs +} +export type PostIncludeUpdateManyAndReturn = { + author?: boolean | Prisma.Post$authorArgs +} + +export type $PostPayload = { + name: "Post" + objects: { + author: Prisma.$UserPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + createdAt: Date + updatedAt: Date + title: string + content: string | null + published: boolean + viewCount: number + authorId: number | null + }, ExtArgs["result"]["post"]> + composites: {} +} + +export type PostGetPayload = runtime.Types.Result.GetResult + +export type PostCountArgs = + Omit & { + select?: PostCountAggregateInputType | true + } + +export interface PostDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Post'], meta: { name: 'Post' } } + /** + * Find zero or one Post that matches the filter. + * @param {PostFindUniqueArgs} args - Arguments to find a Post + * @example + * // Get one Post + * const post = await prisma.post.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Post that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post + * @example + * // Get one Post + * const post = await prisma.post.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Post that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostFindFirstArgs} args - Arguments to find a Post + * @example + * // Get one Post + * const post = await prisma.post.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Post that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post + * @example + * // Get one Post + * const post = await prisma.post.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Posts that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Posts + * const posts = await prisma.post.findMany() + * + * // Get first 10 Posts + * const posts = await prisma.post.findMany({ take: 10 }) + * + * // Only select the `id` + * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Post. + * @param {PostCreateArgs} args - Arguments to create a Post. + * @example + * // Create one Post + * const Post = await prisma.post.create({ + * data: { + * // ... data to create a Post + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Posts. + * @param {PostCreateManyArgs} args - Arguments to create many Posts. + * @example + * // Create many Posts + * const post = await prisma.post.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Posts and returns the data saved in the database. + * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts. + * @example + * // Create many Posts + * const post = await prisma.post.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Posts and only return the `id` + * const postWithIdOnly = await prisma.post.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Post. + * @param {PostDeleteArgs} args - Arguments to delete one Post. + * @example + * // Delete one Post + * const Post = await prisma.post.delete({ + * where: { + * // ... filter to delete one Post + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Post. + * @param {PostUpdateArgs} args - Arguments to update one Post. + * @example + * // Update one Post + * const post = await prisma.post.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Posts. + * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete. + * @example + * // Delete a few Posts + * const { count } = await prisma.post.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Posts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Posts + * const post = await prisma.post.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Posts and returns the data updated in the database. + * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts. + * @example + * // Update many Posts + * const post = await prisma.post.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Posts and only return the `id` + * const postWithIdOnly = await prisma.post.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Post. + * @param {PostUpsertArgs} args - Arguments to update or create a Post. + * @example + * // Update or create a Post + * const post = await prisma.post.upsert({ + * create: { + * // ... data to create a Post + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Post we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Posts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostCountArgs} args - Arguments to filter Posts to count. + * @example + * // Count the number of Posts + * const count = await prisma.post.count({ + * where: { + * // ... the filter for the Posts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Post. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Post. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PostGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends PostGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PostGroupByArgs['orderBy'] } + : { orderBy?: PostGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPostGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Post model + */ +readonly fields: PostFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Post. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__PostClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + author = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the Post model + */ +export interface PostFieldRefs { + readonly id: Prisma.FieldRef<"Post", 'Int'> + readonly createdAt: Prisma.FieldRef<"Post", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Post", 'DateTime'> + readonly title: Prisma.FieldRef<"Post", 'String'> + readonly content: Prisma.FieldRef<"Post", 'String'> + readonly published: Prisma.FieldRef<"Post", 'Boolean'> + readonly viewCount: Prisma.FieldRef<"Post", 'Int'> + readonly authorId: Prisma.FieldRef<"Post", 'Int'> +} + + +// Custom InputTypes +/** + * Post findUnique + */ +export type PostFindUniqueArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter, which Post to fetch. + */ + where: Prisma.PostWhereUniqueInput +} + +/** + * Post findUniqueOrThrow + */ +export type PostFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter, which Post to fetch. + */ + where: Prisma.PostWhereUniqueInput +} + +/** + * Post findFirst + */ +export type PostFindFirstArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter, which Post to fetch. + */ + where?: Prisma.PostWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Posts to fetch. + */ + orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Posts. + */ + cursor?: Prisma.PostWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Posts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Posts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Posts. + */ + distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] +} + +/** + * Post findFirstOrThrow + */ +export type PostFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter, which Post to fetch. + */ + where?: Prisma.PostWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Posts to fetch. + */ + orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Posts. + */ + cursor?: Prisma.PostWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Posts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Posts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Posts. + */ + distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] +} + +/** + * Post findMany + */ +export type PostFindManyArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter, which Posts to fetch. + */ + where?: Prisma.PostWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Posts to fetch. + */ + orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Posts. + */ + cursor?: Prisma.PostWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Posts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Posts. + */ + skip?: number + distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] +} + +/** + * Post create + */ +export type PostCreateArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * The data needed to create a Post. + */ + data: Prisma.XOR +} + +/** + * Post createMany + */ +export type PostCreateManyArgs = { + /** + * The data used to create many Posts. + */ + data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] +} + +/** + * Post createManyAndReturn + */ +export type PostCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * The data used to create many Posts. + */ + data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostIncludeCreateManyAndReturn | null +} + +/** + * Post update + */ +export type PostUpdateArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * The data needed to update a Post. + */ + data: Prisma.XOR + /** + * Choose, which Post to update. + */ + where: Prisma.PostWhereUniqueInput +} + +/** + * Post updateMany + */ +export type PostUpdateManyArgs = { + /** + * The data used to update Posts. + */ + data: Prisma.XOR + /** + * Filter which Posts to update + */ + where?: Prisma.PostWhereInput + /** + * Limit how many Posts to update. + */ + limit?: number +} + +/** + * Post updateManyAndReturn + */ +export type PostUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * The data used to update Posts. + */ + data: Prisma.XOR + /** + * Filter which Posts to update + */ + where?: Prisma.PostWhereInput + /** + * Limit how many Posts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostIncludeUpdateManyAndReturn | null +} + +/** + * Post upsert + */ +export type PostUpsertArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * The filter to search for the Post to update in case it exists. + */ + where: Prisma.PostWhereUniqueInput + /** + * In case the Post found by the `where` argument doesn't exist, create a new Post with this data. + */ + create: Prisma.XOR + /** + * In case the Post was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Post delete + */ +export type PostDeleteArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + /** + * Filter which Post to delete. + */ + where: Prisma.PostWhereUniqueInput +} + +/** + * Post deleteMany + */ +export type PostDeleteManyArgs = { + /** + * Filter which Posts to delete + */ + where?: Prisma.PostWhereInput + /** + * Limit how many Posts to delete. + */ + limit?: number +} + +/** + * Post.author + */ +export type Post$authorArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + where?: Prisma.UserWhereInput +} + +/** + * Post without action + */ +export type PostDefaultArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null +} diff --git a/orm/graphql-gqloom/src/generated/prisma/models/User.ts b/orm/graphql-gqloom/src/generated/prisma/models/User.ts new file mode 100644 index 000000000000..09adedd6ba0d --- /dev/null +++ b/orm/graphql-gqloom/src/generated/prisma/models/User.ts @@ -0,0 +1,1312 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// @ts-nocheck +/* + * This file exports the `User` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.js" +import type * as Prisma from "../internal/prismaNamespace.js" + +/** + * Model User + * + */ +export type UserModel = runtime.Types.Result.DefaultSelection + +export type AggregateUser = { + _count: UserCountAggregateOutputType | null + _avg: UserAvgAggregateOutputType | null + _sum: UserSumAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type UserAvgAggregateOutputType = { + id: number | null +} + +export type UserSumAggregateOutputType = { + id: number | null +} + +export type UserMinAggregateOutputType = { + id: number | null + email: string | null + name: string | null +} + +export type UserMaxAggregateOutputType = { + id: number | null + email: string | null + name: string | null +} + +export type UserCountAggregateOutputType = { + id: number + email: number + name: number + _all: number +} + + +export type UserAvgAggregateInputType = { + id?: true +} + +export type UserSumAggregateInputType = { + id?: true +} + +export type UserMinAggregateInputType = { + id?: true + email?: true + name?: true +} + +export type UserMaxAggregateInputType = { + id?: true + email?: true + name?: true +} + +export type UserCountAggregateInputType = { + id?: true + email?: true + name?: true + _all?: true +} + +export type UserAggregateArgs = { + /** + * Filter which User to aggregate. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Users + **/ + _count?: true | UserCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: UserAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: UserSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserMaxAggregateInputType +} + +export type GetUserAggregateType = { + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserGroupByArgs = { + where?: Prisma.UserWhereInput + orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] + by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum + having?: Prisma.UserScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserCountAggregateInputType | true + _avg?: UserAvgAggregateInputType + _sum?: UserSumAggregateInputType + _min?: UserMinAggregateInputType + _max?: UserMaxAggregateInputType +} + +export type UserGroupByOutputType = { + id: number + email: string + name: string | null + _count: UserCountAggregateOutputType | null + _avg: UserAvgAggregateOutputType | null + _sum: UserSumAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +type GetUserGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserWhereInput = { + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + id?: Prisma.IntFilter<"User"> | number + email?: Prisma.StringFilter<"User"> | string + name?: Prisma.StringNullableFilter<"User"> | string | null + posts?: Prisma.PostListRelationFilter +} + +export type UserOrderByWithRelationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + posts?: Prisma.PostOrderByRelationAggregateInput +} + +export type UserWhereUniqueInput = Prisma.AtLeast<{ + id?: number + email?: string + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + name?: Prisma.StringNullableFilter<"User"> | string | null + posts?: Prisma.PostListRelationFilter +}, "id" | "email"> + +export type UserOrderByWithAggregationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.UserCountOrderByAggregateInput + _avg?: Prisma.UserAvgOrderByAggregateInput + _max?: Prisma.UserMaxOrderByAggregateInput + _min?: Prisma.UserMinOrderByAggregateInput + _sum?: Prisma.UserSumOrderByAggregateInput +} + +export type UserScalarWhereWithAggregatesInput = { + AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + OR?: Prisma.UserScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"User"> | number + email?: Prisma.StringWithAggregatesFilter<"User"> | string + name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null +} + +export type UserCreateInput = { + email: string + name?: string | null + posts?: Prisma.PostCreateNestedManyWithoutAuthorInput +} + +export type UserUncheckedCreateInput = { + id?: number + email: string + name?: string | null + posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput +} + +export type UserUpdateInput = { + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput +} + +export type UserUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput +} + +export type UserCreateManyInput = { + id?: number + email: string + name?: string | null +} + +export type UserUpdateManyMutationInput = { + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type UserUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type UserCountOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder +} + +export type UserAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type UserMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder +} + +export type UserMinOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + name?: Prisma.SortOrder +} + +export type UserSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type UserNullableScalarRelationFilter = { + is?: Prisma.UserWhereInput | null + isNot?: Prisma.UserWhereInput | null +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type UserCreateNestedOneWithoutPostsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneWithoutPostsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput + upsert?: Prisma.UserUpsertWithoutPostsInput + disconnect?: Prisma.UserWhereInput | boolean + delete?: Prisma.UserWhereInput | boolean + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutPostsInput> +} + +export type UserCreateWithoutPostsInput = { + email: string + name?: string | null +} + +export type UserUncheckedCreateWithoutPostsInput = { + id?: number + email: string + name?: string | null +} + +export type UserCreateOrConnectWithoutPostsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutPostsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutPostsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutPostsInput = { + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type UserUncheckedUpdateWithoutPostsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + +/** + * Count Type UserCountOutputType + */ + +export type UserCountOutputType = { + posts: number +} + +export type UserCountOutputTypeSelect = { + posts?: boolean | UserCountOutputTypeCountPostsArgs +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the UserCountOutputType + */ + select?: Prisma.UserCountOutputTypeSelect | null +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountPostsArgs = { + where?: Prisma.PostWhereInput +} + + +export type UserSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean + posts?: boolean | Prisma.User$postsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +}, ExtArgs["result"]["user"]> + +export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + name?: boolean +}, ExtArgs["result"]["user"]> + +export type UserSelectScalar = { + id?: boolean + email?: boolean + name?: boolean +} + +export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "name", ExtArgs["result"]["user"]> +export type UserInclude = { + posts?: boolean | Prisma.User$postsArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +} +export type UserIncludeCreateManyAndReturn = {} +export type UserIncludeUpdateManyAndReturn = {} + +export type $UserPayload = { + name: "User" + objects: { + posts: Prisma.$PostPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + email: string + name: string | null + }, ExtArgs["result"]["user"]> + composites: {} +} + +export type UserGetPayload = runtime.Types.Result.GetResult + +export type UserCountArgs = + Omit & { + select?: UserCountAggregateInputType | true + } + +export interface UserDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } + /** + * Find zero or one User that matches the filter. + * @param {UserFindUniqueArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one User that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Users that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.user.findMany() + * + * // Get first 10 Users + * const users = await prisma.user.findMany({ take: 10 }) + * + * // Only select the `id` + * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a User. + * @param {UserCreateArgs} args - Arguments to create a User. + * @example + * // Create one User + * const User = await prisma.user.create({ + * data: { + * // ... data to create a User + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Users. + * @param {UserCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Users and returns the data saved in the database. + * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Users and only return the `id` + * const userWithIdOnly = await prisma.user.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a User. + * @param {UserDeleteArgs} args - Arguments to delete one User. + * @example + * // Delete one User + * const User = await prisma.user.delete({ + * where: { + * // ... filter to delete one User + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one User. + * @param {UserUpdateArgs} args - Arguments to update one User. + * @example + * // Update one User + * const user = await prisma.user.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Users. + * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.user.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const user = await prisma.user.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Users and returns the data updated in the database. + * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. + * @example + * // Update many Users + * const user = await prisma.user.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Users and only return the `id` + * const userWithIdOnly = await prisma.user.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one User. + * @param {UserUpsertArgs} args - Arguments to update or create a User. + * @example + * // Update or create a User + * const user = await prisma.user.upsert({ + * create: { + * // ... data to create a User + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the User we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.user.count({ + * where: { + * // ... the filter for the Users we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends UserGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserGroupByArgs['orderBy'] } + : { orderBy?: UserGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the User model + */ +readonly fields: UserFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for User. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__UserClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + posts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the User model + */ +export interface UserFieldRefs { + readonly id: Prisma.FieldRef<"User", 'Int'> + readonly email: Prisma.FieldRef<"User", 'String'> + readonly name: Prisma.FieldRef<"User", 'String'> +} + + +// Custom InputTypes +/** + * User findUnique + */ +export type UserFindUniqueArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findUniqueOrThrow + */ +export type UserFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findFirst + */ +export type UserFindFirstArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findFirstOrThrow + */ +export type UserFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findMany + */ +export type UserFindManyArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User create + */ +export type UserCreateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to create a User. + */ + data: Prisma.XOR +} + +/** + * User createMany + */ +export type UserCreateManyArgs = { + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] +} + +/** + * User createManyAndReturn + */ +export type UserCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectCreateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] +} + +/** + * User update + */ +export type UserUpdateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to update a User. + */ + data: Prisma.XOR + /** + * Choose, which User to update. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User updateMany + */ +export type UserUpdateManyArgs = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User updateManyAndReturn + */ +export type UserUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User upsert + */ +export type UserUpsertArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The filter to search for the User to update in case it exists. + */ + where: Prisma.UserWhereUniqueInput + /** + * In case the User found by the `where` argument doesn't exist, create a new User with this data. + */ + create: Prisma.XOR + /** + * In case the User was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * User delete + */ +export type UserDeleteArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter which User to delete. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User deleteMany + */ +export type UserDeleteManyArgs = { + /** + * Filter which Users to delete + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * User.posts + */ +export type User$postsArgs = { + /** + * Select specific fields to fetch from the Post + */ + select?: Prisma.PostSelect | null + /** + * Omit specific fields from the Post + */ + omit?: Prisma.PostOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PostInclude | null + where?: Prisma.PostWhereInput + orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] + cursor?: Prisma.PostWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] +} + +/** + * User without action + */ +export type UserDefaultArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null +} diff --git a/orm/graphql-gqloom/src/resolvers/post.ts b/orm/graphql-gqloom/src/resolvers/post.ts new file mode 100644 index 000000000000..54c73d884f05 --- /dev/null +++ b/orm/graphql-gqloom/src/resolvers/post.ts @@ -0,0 +1,155 @@ +import { field, mutation, query, resolver } from '@gqloom/core' +import * as z from 'zod' +import { Post } from '../generated/gqloom' +import { PrismaResolverFactory } from '@gqloom/prisma' +import { prisma } from '../db' + +export const PostCreateInput = z.object({ + __typename: z.literal('PostCreateInput').nullish(), + title: z.string(), + content: z + .string() + .nullish() + .transform((x) => x ?? undefined), +}) + +const postFactory = new PrismaResolverFactory(Post, prisma) + +export const postResolver = resolver.of(Post, { + authorId: field.hidden, + author: postFactory.relationField('author'), + + postById: query(Post.nullable()) + .input({ + id: z.number().int(), + }) + .resolve(({ id }) => + prisma.post.findUnique({ + where: { id }, + }), + ), + + feed: query(Post.list()) + .input({ + searchString: z.string().nullish(), + skip: z + .number() + .int() + .nullish() + .transform((x) => x ?? undefined), + take: z + .number() + .int() + .nullish() + .transform((x) => x ?? undefined), + orderBy: z + .object({ + updatedAt: z + .enum(['asc', 'desc']) + .nullish() + .transform((x) => x ?? undefined), + }) + .nullish() + .transform((x) => x ?? undefined), + }) + .resolve(({ searchString, skip, take, orderBy }) => { + const or = searchString + ? { + OR: [ + { title: { contains: searchString } }, + { content: { contains: searchString } }, + ], + } + : {} + + return prisma.post.findMany({ + where: { ...or, published: true }, + take, + skip, + orderBy, + }) + }), + + draftsByUser: query(Post.list()) + .input({ + userUniqueInput: z.object({ + __typename: z.literal('UserUniqueInput').nullish(), + id: z + .number() + .int() + .nullish() + .transform((x) => x ?? undefined), + email: z + .email() + .nullish() + .transform((x) => x ?? undefined), + }), + }) + .resolve(({ userUniqueInput }) => { + return prisma.post.findMany({ + where: { + published: false, + author: { + id: userUniqueInput.id, + email: userUniqueInput.email, + }, + }, + }) + }), + + createDraft: mutation(Post) + .input({ + data: PostCreateInput, + authorEmail: z.email(), + }) + .resolve(({ data, authorEmail }) => { + return prisma.post.create({ + data: { + title: data.title, + content: data.content, + published: false, + author: { + connect: { email: authorEmail }, + }, + }, + }) + }), + + togglePublishPost: mutation(Post) + .input({ + id: z.number().int(), + }) + .resolve(async ({ id }) => { + // Toggling become simpler once this bug is resolved: https://github.com/prisma/prisma/issues/16715 + const postPublished = await prisma.post.findUnique({ + where: { id }, + select: { published: true }, + }) + console.log(postPublished) + return prisma.post.update({ + where: { id }, + data: { published: !postPublished?.published }, + }) + }), + + incrementPostViewCount: mutation(Post) + .input({ + id: z.number().int(), + }) + .resolve(({ id }) => { + return prisma.post.update({ + where: { id }, + data: { viewCount: { increment: 1 } }, + }) + }), + + deletePost: mutation(Post) + .input({ + id: z.number().int(), + }) + .resolve(({ id }) => { + return prisma.post.delete({ + where: { id }, + }) + }), +}) diff --git a/orm/graphql-gqloom/src/resolvers/user.ts b/orm/graphql-gqloom/src/resolvers/user.ts new file mode 100644 index 000000000000..0f8dc586e337 --- /dev/null +++ b/orm/graphql-gqloom/src/resolvers/user.ts @@ -0,0 +1,34 @@ +import { mutation, resolver } from '@gqloom/core' +import { PrismaResolverFactory } from '@gqloom/prisma' +import * as z from 'zod' +import { User } from '../generated/gqloom' +import { prisma } from '../db' +import { PostCreateInput } from './post' + +const userFactory = new PrismaResolverFactory(User, prisma) + +export const userResolver = resolver.of(User, { + allUsers: userFactory.findManyQuery(), + + posts: userFactory.relationField('posts'), + + signupUser: mutation(User) + .input({ + data: z.object({ + email: z.string(), + name: z.string().optional(), + posts: z.array(PostCreateInput), + }), + }) + .resolve(({ data }) => { + return prisma.user.create({ + data: { + email: data.email, + name: data.name, + posts: { + create: data.posts, + }, + }, + }) + }), +}) diff --git a/orm/graphql-gqloom/src/server.ts b/orm/graphql-gqloom/src/server.ts new file mode 100644 index 000000000000..0c94fb59e527 --- /dev/null +++ b/orm/graphql-gqloom/src/server.ts @@ -0,0 +1,38 @@ +import * as fs from 'node:fs' +import { createServer } from 'node:http' +import path from 'node:path' +import { weave } from '@gqloom/core' +import { PrismaWeaver } from '@gqloom/prisma' +import { ZodWeaver } from '@gqloom/zod' +import { lexicographicSortSchema, printSchema } from 'graphql' +import { GraphQLDateTime } from 'graphql-scalars' +import { createYoga } from 'graphql-yoga' +import { postResolver } from './resolvers/post' +import { userResolver } from './resolvers/user' + +const schema = weave( + ZodWeaver, + PrismaWeaver.config({ + presetGraphQLType: (type) => { + switch (type) { + case 'DateTime': + return GraphQLDateTime + } + }, + }), + userResolver, + postResolver, +) +fs.writeFileSync( + path.join(__dirname, '../schema.graphql'), + printSchema(lexicographicSortSchema(schema)), +) + +const yoga = createYoga({ + graphqlEndpoint: '/', + schema, +}) +const server = createServer(yoga) +server.listen(4000, () => { + console.info('Server is running on http://localhost:4000') +}) diff --git a/orm/graphql-gqloom/tsconfig.json b/orm/graphql-gqloom/tsconfig.json new file mode 100644 index 000000000000..b62d4ebd39d8 --- /dev/null +++ b/orm/graphql-gqloom/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "node", + "strict": true, + "esModuleInterop": true, + "resolveJsonModule": true + }, + "include": ["src/**/*", "prisma/**/*"] +} From d5398cd32d4ba6e2641399f903363e6055853eaf Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 16:05:13 +0800 Subject: [PATCH 02/19] refactor: rename allUsers query to users in GraphQL schema and resolver --- orm/graphql-gqloom/schema.graphql | 2 +- orm/graphql-gqloom/src/resolvers/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/graphql-gqloom/schema.graphql b/orm/graphql-gqloom/schema.graphql index df9132cfb6b2..7cd797f40d01 100644 --- a/orm/graphql-gqloom/schema.graphql +++ b/orm/graphql-gqloom/schema.graphql @@ -171,10 +171,10 @@ input PostWhereInput { } type Query { - allUsers(cursor: UserWhereUniqueInput, distinct: [UserScalarFieldEnum!], orderBy: [UserOrderByWithRelationInput!], skip: Int, take: Int, where: UserWhereInput): [User!]! draftsByUser(userUniqueInput: UserUniqueInput!): [Post!]! feed(orderBy: FeedOrderByInput, searchString: String, skip: Float, take: Float): [Post!]! postById(id: Float!): Post + users(cursor: UserWhereUniqueInput, distinct: [UserScalarFieldEnum!], orderBy: [UserOrderByWithRelationInput!], skip: Int, take: Int, where: UserWhereInput): [User!]! } input SignupUserDataInput { diff --git a/orm/graphql-gqloom/src/resolvers/user.ts b/orm/graphql-gqloom/src/resolvers/user.ts index 0f8dc586e337..a132ca0bf1ea 100644 --- a/orm/graphql-gqloom/src/resolvers/user.ts +++ b/orm/graphql-gqloom/src/resolvers/user.ts @@ -8,7 +8,7 @@ import { PostCreateInput } from './post' const userFactory = new PrismaResolverFactory(User, prisma) export const userResolver = resolver.of(User, { - allUsers: userFactory.findManyQuery(), + users: userFactory.findManyQuery(), posts: userFactory.relationField('posts'), From 58204deea7ea94105f2941538d2e66230708c3a8 Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 16:08:32 +0800 Subject: [PATCH 03/19] fix: update email validation in signupUser mutation to use z.email() --- orm/graphql-gqloom/src/resolvers/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/graphql-gqloom/src/resolvers/user.ts b/orm/graphql-gqloom/src/resolvers/user.ts index a132ca0bf1ea..ba2754c783df 100644 --- a/orm/graphql-gqloom/src/resolvers/user.ts +++ b/orm/graphql-gqloom/src/resolvers/user.ts @@ -15,7 +15,7 @@ export const userResolver = resolver.of(User, { signupUser: mutation(User) .input({ data: z.object({ - email: z.string(), + email: z.email(), name: z.string().optional(), posts: z.array(PostCreateInput), }), From 1e6620a3821b6501db2abe4a7f4681b0bdb1ae7d Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 23:14:30 +0800 Subject: [PATCH 04/19] feat: migrate database from SQLite to PostgreSQL and enhance query capabilities with new filters and enums --- orm/graphql-gqloom/.nvmrc | 1 + orm/graphql-gqloom/package.json | 13 +- orm/graphql-gqloom/prisma/schema.prisma | 4 +- orm/graphql-gqloom/prisma/seed.ts | 10 +- orm/graphql-gqloom/schema.graphql | 7 + orm/graphql-gqloom/src/db.ts | 15 +- .../src/generated/gqloom/model-meta.json | 530 ++++++++++++++++++ .../src/generated/prisma/commonInputTypes.ts | 92 +-- .../src/generated/prisma/internal/class.ts | 15 +- .../prisma/internal/prismaNamespace.ts | 39 ++ .../prisma/internal/prismaNamespaceBrowser.ts | 11 + .../src/generated/prisma/models/Post.ts | 3 + .../src/generated/prisma/models/User.ts | 2 + 13 files changed, 665 insertions(+), 77 deletions(-) create mode 100644 orm/graphql-gqloom/.nvmrc diff --git a/orm/graphql-gqloom/.nvmrc b/orm/graphql-gqloom/.nvmrc new file mode 100644 index 000000000000..deed13c0169b --- /dev/null +++ b/orm/graphql-gqloom/.nvmrc @@ -0,0 +1 @@ +lts/jod diff --git a/orm/graphql-gqloom/package.json b/orm/graphql-gqloom/package.json index c0961c6d05f5..f25ec249a85e 100644 --- a/orm/graphql-gqloom/package.json +++ b/orm/graphql-gqloom/package.json @@ -3,12 +3,9 @@ "private": true, "type": "commonjs", "scripts": { - "init-tables": "node scripts/init_tables.cjs", - "generate": "prisma generate", - "start": "tsx watch src/server.ts", - "postinstall": "npm run generate", - "push": "prisma db push", - "seed": "prisma db seed" + "dev": "tsx watch --env-file=.env src/server.ts", + "start": "tsx --env-file=.env src/server.ts", + "generate": "prisma generate" }, "devDependencies": { "@types/node": "^24.8.1", @@ -20,9 +17,9 @@ "@gqloom/core": "^0.12.1", "@gqloom/prisma": "^0.12.2", "@gqloom/zod": "^0.12.2", - "@prisma/adapter-better-sqlite3": "^6.17.1", - "@prisma/adapter-libsql": "^6.17.1", + "@prisma/adapter-pg": "^6.17.1", "@prisma/client": "^6.17.1", + "@prisma/extension-accelerate": "^2.0.2", "graphql": "^16.11.0", "graphql-scalars": "^1.25.0", "graphql-yoga": "^5.16.0", diff --git a/orm/graphql-gqloom/prisma/schema.prisma b/orm/graphql-gqloom/prisma/schema.prisma index 248fd8e6d795..90127c2b1eb1 100644 --- a/orm/graphql-gqloom/prisma/schema.prisma +++ b/orm/graphql-gqloom/prisma/schema.prisma @@ -1,6 +1,6 @@ datasource db { - provider = "sqlite" - url = "file:./dev.db" + provider = "postgresql" + url = env("DATABASE_URL") } generator client { diff --git a/orm/graphql-gqloom/prisma/seed.ts b/orm/graphql-gqloom/prisma/seed.ts index 7775e24377ca..d07efcfb2abc 100644 --- a/orm/graphql-gqloom/prisma/seed.ts +++ b/orm/graphql-gqloom/prisma/seed.ts @@ -1,11 +1,11 @@ -import * as path from 'node:path' -import { PrismaLibSQL } from '@prisma/adapter-libsql' +import { PrismaPg } from '@prisma/adapter-pg' import { type Prisma, PrismaClient } from '../src/generated/prisma/client' +import { withAccelerate } from '@prisma/extension-accelerate' -const adapter = new PrismaLibSQL({ - url: `file:${path.join(__dirname, '../prisma/dev.db')}`, +const adapter = new PrismaPg({ + connectionString: process.env.DATABASE_URL, }) -const prisma = new PrismaClient({ adapter }) +const prisma = new PrismaClient({ adapter }).$extends(withAccelerate()) const userData: Prisma.UserCreateInput[] = [ { diff --git a/orm/graphql-gqloom/schema.graphql b/orm/graphql-gqloom/schema.graphql index 7cd797f40d01..51a338ccc7af 100644 --- a/orm/graphql-gqloom/schema.graphql +++ b/orm/graphql-gqloom/schema.graphql @@ -177,6 +177,11 @@ type Query { users(cursor: UserWhereUniqueInput, distinct: [UserScalarFieldEnum!], orderBy: [UserOrderByWithRelationInput!], skip: Int, take: Int, where: UserWhereInput): [User!]! } +enum QueryMode { + default + insensitive +} + input SignupUserDataInput { email: String! name: String @@ -202,6 +207,7 @@ input StringFilter { in: [String!] lt: String lte: String + mode: QueryMode not: NestedStringFilter notIn: [String!] startsWith: String @@ -216,6 +222,7 @@ input StringNullableFilter { in: [String!] lt: String lte: String + mode: QueryMode not: NestedStringNullableFilter notIn: [String!] startsWith: String diff --git a/orm/graphql-gqloom/src/db.ts b/orm/graphql-gqloom/src/db.ts index 9b05125cb631..68beab5c2754 100644 --- a/orm/graphql-gqloom/src/db.ts +++ b/orm/graphql-gqloom/src/db.ts @@ -1,13 +1,8 @@ -import * as path from 'node:path' -import { PrismaLibSQL } from '@prisma/adapter-libsql' +import { PrismaPg } from '@prisma/adapter-pg' import { PrismaClient } from './generated/prisma/client' +import { withAccelerate } from '@prisma/extension-accelerate' -const url = `file:${path.join(__dirname, '../prisma/dev.db')}` - -const adapter = new PrismaLibSQL({ - url, -}) -export const prisma = new PrismaClient({ - adapter, - log: [{ emit: 'stdout', level: 'query' }], +const adapter = new PrismaPg({ + connectionString: process.env.DATABASE_URL, }) +export const prisma = new PrismaClient({ adapter }).$extends(withAccelerate()) diff --git a/orm/graphql-gqloom/src/generated/gqloom/model-meta.json b/orm/graphql-gqloom/src/generated/gqloom/model-meta.json index 94428238533a..09bc151f33bb 100644 --- a/orm/graphql-gqloom/src/generated/gqloom/model-meta.json +++ b/orm/graphql-gqloom/src/generated/gqloom/model-meta.json @@ -3259,6 +3259,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -3271,6 +3277,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -3400,6 +3412,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -3412,6 +3430,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -3541,6 +3565,19 @@ } ] }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, { "name": "not", "isRequired": false, @@ -3601,6 +3638,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -3618,6 +3661,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -3751,6 +3800,19 @@ } ] }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, { "name": "not", "isRequired": false, @@ -4124,6 +4186,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -4136,6 +4204,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -4330,6 +4404,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -4342,6 +4422,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -4471,6 +4557,19 @@ } ] }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, { "name": "not", "isRequired": false, @@ -4570,6 +4669,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -4587,6 +4692,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -4720,6 +4831,19 @@ } ] }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, { "name": "not", "isRequired": false, @@ -4818,6 +4942,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -4830,6 +4960,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -5010,6 +5146,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -5027,6 +5169,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -5663,6 +5811,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -5675,6 +5829,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -5933,6 +6093,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -5950,6 +6116,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -7233,6 +7405,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7245,6 +7423,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7374,6 +7558,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7386,6 +7576,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7575,6 +7771,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -7592,6 +7794,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -7784,6 +7992,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7796,6 +8010,12 @@ "type": "Int", "location": "scalar", "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -7990,6 +8210,12 @@ "type": "Float", "location": "scalar", "isList": true + }, + { + "type": "ListFloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8002,6 +8228,12 @@ "type": "Float", "location": "scalar", "isList": true + }, + { + "type": "ListFloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8131,6 +8363,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8143,6 +8381,12 @@ "type": "String", "location": "scalar", "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8371,6 +8615,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -8388,6 +8638,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -8625,6 +8881,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -8642,6 +8904,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -8780,6 +9048,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8792,6 +9066,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8966,6 +9246,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -8978,6 +9264,12 @@ "type": "DateTime", "location": "scalar", "isList": true + }, + { + "type": "ListDateTimeFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false } ] }, @@ -9236,6 +9528,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -9253,6 +9551,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -9462,6 +9766,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListFloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -9479,6 +9789,12 @@ "location": "scalar", "isList": true }, + { + "type": "ListFloatFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + }, { "type": "Null", "location": "scalar", @@ -9845,6 +10161,18 @@ "isList": true } ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] } ] }, @@ -12287,6 +12615,18 @@ "isList": true } ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] } ], "isNullable": false, @@ -12318,6 +12658,18 @@ "isList": true } ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] } ], "isNullable": false, @@ -12661,6 +13013,18 @@ "isList": true } ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] } ], "isNullable": false, @@ -12692,6 +13056,18 @@ "isList": true } ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] } ], "isNullable": false, @@ -14421,6 +14797,9 @@ { "name": "TransactionIsolationLevel", "values": [ + "ReadUncommitted", + "ReadCommitted", + "RepeatableRead", "Serializable" ] }, @@ -14452,6 +14831,13 @@ "desc" ] }, + { + "name": "QueryMode", + "values": [ + "default", + "insensitive" + ] + }, { "name": "NullsOrder", "values": [ @@ -14499,6 +14885,42 @@ } ] }, + { + "name": "ListIntFieldRefInput", + "allowTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, { "name": "StringFieldRefInput", "allowTypes": [ @@ -14535,6 +14957,42 @@ } ] }, + { + "name": "ListStringFieldRefInput", + "allowTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, { "name": "DateTimeFieldRefInput", "allowTypes": [ @@ -14571,6 +15029,42 @@ } ] }, + { + "name": "ListDateTimeFieldRefInput", + "allowTypes": [ + { + "type": "DateTime", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, { "name": "BooleanFieldRefInput", "allowTypes": [ @@ -14642,6 +15136,42 @@ ] } ] + }, + { + "name": "ListFloatFieldRefInput", + "allowTypes": [ + { + "type": "Float", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] } ] } diff --git a/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts b/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts index 86c1bf8bd321..a0847567d21a 100644 --- a/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts +++ b/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts @@ -15,8 +15,8 @@ import type * as Prisma from "./internal/prismaNamespace.js" export type IntFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -26,8 +26,8 @@ export type IntFilter<$PrismaModel = never> = { export type StringFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -35,13 +35,14 @@ export type StringFilter<$PrismaModel = never> = { contains?: string | Prisma.StringFieldRefInput<$PrismaModel> startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode not?: Prisma.NestedStringFilter<$PrismaModel> | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -49,6 +50,7 @@ export type StringNullableFilter<$PrismaModel = never> = { contains?: string | Prisma.StringFieldRefInput<$PrismaModel> startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null } @@ -59,8 +61,8 @@ export type SortOrderInput = { export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -75,8 +77,8 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = { export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -84,6 +86,7 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = { contains?: string | Prisma.StringFieldRefInput<$PrismaModel> startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: Prisma.NestedIntFilter<$PrismaModel> _min?: Prisma.NestedStringFilter<$PrismaModel> @@ -92,8 +95,8 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = { export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -101,6 +104,7 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { contains?: string | Prisma.StringFieldRefInput<$PrismaModel> startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: Prisma.NestedIntNullableFilter<$PrismaModel> _min?: Prisma.NestedStringNullableFilter<$PrismaModel> @@ -109,8 +113,8 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> @@ -125,8 +129,8 @@ export type BoolFilter<$PrismaModel = never> = { export type IntNullableFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -136,8 +140,8 @@ export type IntNullableFilter<$PrismaModel = never> = { export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> @@ -158,8 +162,8 @@ export type BoolWithAggregatesFilter<$PrismaModel = never> = { export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -174,8 +178,8 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedIntFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -185,8 +189,8 @@ export type NestedIntFilter<$PrismaModel = never> = { export type NestedStringFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -199,8 +203,8 @@ export type NestedStringFilter<$PrismaModel = never> = { export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -213,8 +217,8 @@ export type NestedStringNullableFilter<$PrismaModel = never> = { export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -229,8 +233,8 @@ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> @@ -240,8 +244,8 @@ export type NestedFloatFilter<$PrismaModel = never> = { export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -257,8 +261,8 @@ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null lt?: string | Prisma.StringFieldRefInput<$PrismaModel> lte?: string | Prisma.StringFieldRefInput<$PrismaModel> gt?: string | Prisma.StringFieldRefInput<$PrismaModel> @@ -274,8 +278,8 @@ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -285,8 +289,8 @@ export type NestedIntNullableFilter<$PrismaModel = never> = { export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> @@ -301,8 +305,8 @@ export type NestedBoolFilter<$PrismaModel = never> = { export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> @@ -323,8 +327,8 @@ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null lt?: number | Prisma.IntFieldRefInput<$PrismaModel> lte?: number | Prisma.IntFieldRefInput<$PrismaModel> gt?: number | Prisma.IntFieldRefInput<$PrismaModel> @@ -339,8 +343,8 @@ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/class.ts b/orm/graphql-gqloom/src/generated/prisma/internal/class.ts index e339773691f2..bdb20641d109 100644 --- a/orm/graphql-gqloom/src/generated/prisma/internal/class.ts +++ b/orm/graphql-gqloom/src/generated/prisma/internal/class.ts @@ -45,18 +45,17 @@ const config: runtime.GetPrismaClientConfig = { "datasourceNames": [ "db" ], - "activeProvider": "sqlite", - "postinstall": false, + "activeProvider": "postgresql", "inlineDatasources": { "db": { "url": { - "fromEnvVar": null, - "value": "file:./dev.db" + "fromEnvVar": "DATABASE_URL", + "value": null } } }, - "inlineSchema": "datasource db {\n provider = \"sqlite\"\n url = \"file:./dev.db\"\n}\n\ngenerator client {\n provider = \"prisma-client\"\n engineType = \"client\"\n output = \"../src/generated/prisma\"\n}\n\ngenerator gqloom {\n provider = \"prisma-gqloom\"\n output = \"../src/generated/gqloom\"\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String?\n posts Post[]\n}\n\nmodel Post {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n title String\n content String?\n published Boolean @default(false)\n viewCount Int @default(0)\n author User? @relation(fields: [authorId], references: [id])\n authorId Int?\n}\n", - "inlineSchemaHash": "703ea5d1209eee6ddb5dd2625cdc7bfc05d3c542f09d738a49d70c0413758350", + "inlineSchema": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client\"\n engineType = \"client\"\n output = \"../src/generated/prisma\"\n}\n\ngenerator gqloom {\n provider = \"prisma-gqloom\"\n output = \"../src/generated/gqloom\"\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String?\n posts Post[]\n}\n\nmodel Post {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n title String\n content String?\n published Boolean @default(false)\n viewCount Int @default(0)\n author User? @relation(fields: [authorId], references: [id])\n authorId Int?\n}\n", + "inlineSchemaHash": "f3fbe774c76be58be4326566bcfa67ac264faaf5bf18383897ff14ec4cb97cbe", "copyEngine": true, "runtimeDataModel": { "models": {}, @@ -76,10 +75,10 @@ async function decodeBase64AsWasm(wasmBase64: string): Promise await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"), + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"), getQueryCompilerWasmModule: async () => { - const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs") + const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs") return await decodeBase64AsWasm(wasm) } } diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts index 0fd2bd506181..9b6ef8c2298c 100644 --- a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts +++ b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts @@ -587,6 +587,9 @@ export type TypeMap = FieldRefInputType<$PrismaModel, 'In +/** + * Reference to a field of type 'Int[]' + */ +export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> + + + /** * Reference to a field of type 'String' */ @@ -652,6 +670,13 @@ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, +/** + * Reference to a field of type 'String[]' + */ +export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> + + + /** * Reference to a field of type 'DateTime' */ @@ -659,6 +684,13 @@ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel +/** + * Reference to a field of type 'DateTime[]' + */ +export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> + + + /** * Reference to a field of type 'Boolean' */ @@ -672,6 +704,13 @@ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + +/** + * Reference to a field of type 'Float[]' + */ +export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> + + /** * Batch Payload for updateMany & deleteMany & createMany */ diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts index 52c637830cbd..1be5d32dc754 100644 --- a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -59,6 +59,9 @@ export type ModelName = (typeof ModelName)[keyof typeof ModelName] */ export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' } as const) @@ -96,6 +99,14 @@ export const SortOrder = { export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + export const NullsOrder = { first: 'first', last: 'last' diff --git a/orm/graphql-gqloom/src/generated/prisma/models/Post.ts b/orm/graphql-gqloom/src/generated/prisma/models/Post.ts index 3cf05ed06aeb..fbffbd7b356a 100644 --- a/orm/graphql-gqloom/src/generated/prisma/models/Post.ts +++ b/orm/graphql-gqloom/src/generated/prisma/models/Post.ts @@ -519,6 +519,7 @@ export type PostCreateOrConnectWithoutAuthorInput = { export type PostCreateManyAuthorInputEnvelope = { data: Prisma.PostCreateManyAuthorInput | Prisma.PostCreateManyAuthorInput[] + skipDuplicates?: boolean } export type PostUpsertWithWhereUniqueWithoutAuthorInput = { @@ -1325,6 +1326,7 @@ export type PostCreateManyArgs Date: Sun, 19 Oct 2025 23:43:08 +0800 Subject: [PATCH 05/19] feat: add README for GraphQL server example with TypeScript, Prisma, and GQLoom --- orm/graphql-gqloom/README.md | 653 +++++++++++++++++++++++++++++++++++ 1 file changed, 653 insertions(+) create mode 100644 orm/graphql-gqloom/README.md diff --git a/orm/graphql-gqloom/README.md b/orm/graphql-gqloom/README.md new file mode 100644 index 000000000000..d3636a065e00 --- /dev/null +++ b/orm/graphql-gqloom/README.md @@ -0,0 +1,653 @@ +# GraphQL Server Example with GraphQL Yoga & Prisma Postgres & GQLoom + +This example shows how to implement a **GraphQL server with TypeScript** with the following stack: + +- [**GraphQL Yoga**](https://the-guild.dev/graphql/yoga-server): GraphQL server +- [**GQLoom**](https://gqloom.dev/): GraphQL schema library that weaves runtime types, validation libraries (Zod, Valibot, Yup), and ORMs (Prisma, Drizzle, MikroORM) into GraphQL schemas +- [**Zod**](https://zod.dev/): Schema validation library for input types +- [**Prisma Client**](https://www.prisma.io/docs/concepts/components/prisma-client): Databases access (ORM) +- [**Prisma Migrate**](https://www.prisma.io/docs/concepts/components/prisma-migrate): Database migrations +- [**Prisma Postgres**](https://www.prisma.io/postgres): A serverless PostgreSQL database built on unikernels. + +## Getting started + +### 1. Download example and navigate into the project directory + +Download this example: + +``` +npx try-prisma@latest --template orm/graphql-gqloom --install npm --name graphql-gqloom +``` + +Then, navigate into the project directory: + +``` +cd graphql-gqloom +``` + +

Alternative: Clone the entire repo + +Clone this repository: + +```terminal +git clone git@github.com:prisma/prisma-examples.git --depth=1 +``` + +Install npm dependencies: + +```terminal +cd prisma-examples/orm/graphql-gqloom +npm install +``` + +
+ +### 2. Create and seed the database + +Create a new [Prisma Postgres](https://www.prisma.io/docs/postgres/overview) database by executing: + +```terminal +npx prisma init --db +``` + +If you don't have a [Prisma Data Platform](https://console.prisma.io/) account yet, or if you are not logged in, the command will prompt you to log in using one of the available authentication providers. A browser window will open so you can log in or create an account. Return to the CLI after you have completed this step. + +Once logged in (or if you were already logged in), the CLI will prompt you to: +1. Select a **region** (e.g. `us-east-1`) +1. Enter a **project name** + +After successful creation, you will see output similar to the following: + +
+ +CLI output + +```terminal +Let's set up your Prisma Postgres database! +? Select your region: ap-northeast-1 - Asia Pacific (Tokyo) +? Enter a project name: testing-migration +โœ” Success! Your Prisma Postgres database is ready โœ… + +We found an existing schema.prisma file in your current project directory. + +--- Database URL --- + +Connect Prisma ORM to your Prisma Postgres database with this URL: + +prisma+postgres://accelerate.prisma-data.net/?api_key=... + +--- Next steps --- + +Go to https://pris.ly/ppg-init for detailed instructions. + +1. Install and use the Prisma Accelerate extension +Prisma Postgres requires the Prisma Accelerate extension for querying. If you haven't already installed it, install it in your project: +npm install @prisma/extension-accelerate + +...and add it to your Prisma Client instance: +import { withAccelerate } from "@prisma/extension-accelerate" + +const prisma = new PrismaClient().$extends(withAccelerate()) + +2. Apply migrations +Run the following command to create and apply a migration: +npx prisma migrate dev + +3. Manage your data +View and edit your data locally by running this command: +npx prisma studio + +...or online in Console: +https://console.prisma.io/{workspaceId}/{projectId}/studio + +4. Send queries from your app +If you already have an existing app with Prisma ORM, you can now run it and it will send queries against your newly created Prisma Postgres instance. + +5. Learn more +For more info, visit the Prisma Postgres docs: https://pris.ly/ppg-docs +``` + +
+ +Locate and copy the database URL provided in the CLI output. Then, create a `.env` file in the project root: + +```bash +touch .env +``` + +Now, paste the URL into it as a value for the `DATABASE_URL` environment variable. For example: + +```bash +# .env +DATABASE_URL=prisma+postgres://accelerate.prisma-data.net/?api_key=ey... +``` + +Run the following command to create tables in your database. This creates the `User` and `Post` tables that are defined in [`prisma/schema.prisma`](./prisma/schema.prisma): + +```terminal +npx prisma migrate dev --name init +``` + +Execute the seed file in [`prisma/seed.ts`](./prisma/seed.ts) to populate your database with some sample data, by running: + +```terminal +npx prisma db seed +``` + +### 3. Start the GraphQL server + +Launch your GraphQL server with this command: + +``` +npm run dev +``` + +Navigate to [http://localhost:4000](http://localhost:4000) in your browser to explore the API of your GraphQL server in a [GraphQL Playground](https://github.com/prisma/graphql-playground). + + +## Using the GraphQL API + +The schema that specifies the API operations of your GraphQL server is defined in the resolvers located in [`./src/resolvers/`](./src/resolvers/). Below are a number of operations that you can send to the API using the GraphQL Playground. + +Feel free to adjust any operation by adding or removing fields. The GraphQL Playground helps you with its auto-completion and query validation features. + +### Retrieve all published posts and their authors + +```graphql +query { + feed { + id + title + content + published + author { + id + name + email + } + } +} +``` + +
See more API operations + +### Retrieve the drafts of a user + +```graphql +{ + draftsByUser( + userUniqueInput: { + email: "mahmoud@prisma.io" + } + ) { + id + title + content + published + author { + id + name + email + } + } +} +``` + + +### Create a new user + +```graphql +mutation { + signupUser(data: { name: "Sarah", email: "sarah@prisma.io" }) { + id + } +} +``` + +### Create a new draft + +```graphql +mutation { + createDraft( + data: { title: "Join the Prisma Discord", content: "https://pris.ly/discord" } + authorEmail: "alice@prisma.io" + ) { + id + viewCount + published + author { + id + name + } + } +} +``` + +### Publish/unpublish an existing post + +```graphql +mutation { + togglePublishPost(id: __POST_ID__) { + id + published + } +} +``` + +Note that you need to replace the `__POST_ID__` placeholder with an actual `id` from a `Post` record in the database, e.g.`5`: + +```graphql +mutation { + togglePublishPost(id: 5) { + id + published + } +} +``` + +### Increment the view count of a post + +```graphql +mutation { + incrementPostViewCount(id: __POST_ID__) { + id + viewCount + } +} +``` + +Note that you need to replace the `__POST_ID__` placeholder with an actual `id` from a `Post` record in the database, e.g.`5`: + +```graphql +mutation { + incrementPostViewCount(id: 5) { + id + viewCount + } +} +``` + +### Search for posts that contain a specific string in their title or content + +```graphql +{ + feed( + searchString: "prisma" + ) { + id + title + content + published + } +} +``` + +### Paginate and order the returned posts + +```graphql +{ + feed( + skip: 2 + take: 2 + orderBy: { updatedAt: desc } + ) { + id + updatedAt + title + content + published + } +} +``` + +### Retrieve a single post + +```graphql +{ + postById(id: __POST_ID__ ) { + id + title + content + published + } +} +``` + +Note that you need to replace the `__POST_ID__` placeholder with an actual `id` from a `Post` record in the database, e.g.`5`: + +```graphql +{ + postById(id: 5 ) { + id + title + content + published + } +} +``` + +### Delete a post + +```graphql +mutation { + deletePost(id: __POST_ID__) { + id + } +} +``` + +Note that you need to replace the `__POST_ID__` placeholder with an actual `id` from a `Post` record in the database, e.g.`5`: + +```graphql +mutation { + deletePost(id: 5) { + id + } +} +``` + +
+ + +## Evolving the app + +Evolving the application typically requires two steps: + +1. Migrate your database using Prisma Migrate +1. Update your application code + +For the following example scenario, assume you want to add a "profile" feature to the app where users can create a profile and write a short bio about themselves. + +### 1. Migrate your database using Prisma Migrate + +The first step is to add a new table, e.g. called `Profile`, to the database. You can do this by adding a new model to your [Prisma schema file](./prisma/schema.prisma) file and then running a migration afterwards: + +```diff +// ./prisma/schema.prisma + +model User { + id Int @id @default(autoincrement()) + email String @unique + name String? + posts Post[] ++ profile Profile? +} + +model Post { + id Int @id @default(autoincrement()) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + title String + content String? + published Boolean @default(false) + viewCount Int @default(0) + author User? @relation(fields: [authorId], references: [id]) + authorId Int? +} + ++model Profile { ++ id Int @id @default(autoincrement()) ++ bio String? ++ user User @relation(fields: [userId], references: [id]) ++ userId Int @unique ++} +``` + +Once you've updated your data model, you can execute the changes against your database with the following command: + +``` +npx prisma migrate dev --name add-profile +``` + +This adds another migration to the `prisma/migrations` directory and creates the new `Profile` table in the database. + +### 2. Update your application code + +You can now use your `PrismaClient` instance to perform operations against the new `Profile` table. Those operations can be used to implement queries and mutations in the GraphQL API. + +#### 2.1. Add the `Profile` type to your GLoom schema + +First, create a new `profile.ts` file in `src/resolvers/` and define the Profile resolver using GLoom's declarative syntax: + +```diff +// ./src/resolvers/profile.ts +import { field, mutation, query, resolver } from '@gqloom/core' +import * as z from 'zod' +import { Profile } from '../generated/gqloom' +import { PrismaResolverFactory } from '@gqloom/prisma' +import { prisma } from '../db' + +const profileFactory = new PrismaResolverFactory(Profile, prisma) + +export const profileResolver = resolver.of(Profile, { + userId: field.hidden, + user: profileFactory.relationField('user'), + + createProfile: mutation(Profile) + .input({ + userId: z.number().int(), + bio: z.string().nullish(), + }) + .resolve(({ userId, bio }) => { + return prisma.profile.create({ + data: { + bio: bio ?? undefined, + user: { + connect: { id: userId }, + }, + }, + }) + }), +}) +``` + +Then update your `server.ts` to include the new resolver: + +```diff +// ./src/server.ts +import { weave } from '@gqloom/core' +import { PrismaWeaver } from '@gqloom/prisma' +import { postResolver } from './resolvers/post' +import { userResolver } from './resolvers/user' +import { profileResolver } from './resolvers/profile' + +const schema = weave( + ZodWeaver, + PrismaWeaver.config({ ... }), + userResolver, + postResolver, + profileResolver, +) +``` + +Also, update the `User` resolver to include the profile relation: + +```diff +// ./src/resolvers/user.ts + +export const userResolver = resolver.of(User, { + // ... existing fields ... + profile: userFactory.relationField('profile'), + + // ... existing queries and mutations ... +}) +``` + +#### 2.2. Add a `createProfile` GraphQL mutation + +The `createProfile` mutation was already added in the `profileResolver` above, but you can also update the User resolver to expose it directly: + +```graphql +mutation { + createProfile( + userId: 1 + bio: "I like turtles" + ) { + id + bio + user { + id + name + } + } +} +``` + +
Expand to view more sample Prisma Client queries on Profile + +Here are some more sample Prisma Client queries on the new Profile model: + +##### Create a new profile for an existing user + +```ts +const profile = await prisma.profile.create({ + data: { + bio: 'Hello World', + user: { + connect: { id: 1 }, + }, + }, +}) +``` + +##### Create a new user with a new profile + +```ts +const user = await prisma.user.create({ + data: { + email: 'john@prisma.io', + name: 'John', + profile: { + create: { + bio: 'Hello World', + }, + }, + }, +}) +``` + +##### Update the profile of an existing user + +```ts +const userWithUpdatedProfile = await prisma.user.update({ + where: { id: 1 }, + data: { + profile: { + update: { + bio: 'Hello Friends', + }, + }, + }, +}) +``` + +
+ +## Switch to another database (e.g. SQLite, MySQL, SQL Server, MongoDB) + +If you want to try this example with another database than Postgres, you can adjust the the database connection in [`prisma/schema.prisma`](./prisma/schema.prisma) by reconfiguring the `datasource` block. + +Learn more about the different connection configurations in the [docs](https://www.prisma.io/docs/reference/database-reference/connection-urls). + +
Expand for an overview of example configurations with different databases + +### Remove the Prisma Client extension + +Before you proceed to use your own database, you should remove the Prisma client extension required for Prisma Postgres: + +```terminal +npm uninstall @prisma/extension-accelerate +``` + +Remove the client extension from your `PrismaClient`: + +```diff +- const prisma = new PrismaClient().$extends(withAccelerate()) ++ const prisma = new PrismaClient() +``` + +### Your own PostgreSQL database + +To use your own PostgreSQL database remove the `@prisma/extension-accelerate` package and remove the Prisma client extension. + +### SQLite + +Modify the `provider` value in the `datasource` block in the [`prisma.schema`](./prisma/schema.prisma) file: + +```prisma +datasource db { + provider = "sqlite" + url = env("DATABASE_URL") +} +``` + +Create an `.env` file and add the SQLite database connection string in it. For example: + +```terminal +DATABASE_URL="file:./dev.db" +``` + +### MySQL + +Modify the `provider` value in the `datasource` block in the [`prisma.schema`](./prisma/schema.prisma) file: + +```prisma +datasource db { + provider = "mysql" + url = env("DATABASE_URL") +} +``` + +Create an `.env` file and add a MySQL database connection string in it. For example: + +```terminal +## This is a placeholder url +DATABASE_URL="mysql://janedoe:mypassword@localhost:3306/notesapi" +``` + +### Microsoft SQL Server + +Modify the `provider` value in the `datasource` block in the [`prisma.schema`](./prisma/schema.prisma) file: + +```prisma +datasource db { + provider = "sqlserver" + url = env("DATABASE_URL") +} +``` + +Create an `.env` file and add a Microsoft SQL Server database connection string in it. For example: + +```terminal +## This is a placeholder url +DATABASE_URL="sqlserver://localhost:1433;initial catalog=sample;user=sa;password=mypassword;" +``` + +### MongoDB + +Modify the `provider` value in the `datasource` block in the [`prisma.schema`](./prisma/schema.prisma) file: + +```prisma +datasource db { + provider = "mongodb" + url = env("DATABASE_URL") +} +``` + +Create an `.env` file and add a local MongoDB database connection string in it. For example: + +```terminal +## This is a placeholder url +DATABASE_URL="mongodb://USERNAME:PASSWORD@HOST/DATABASE?authSource=admin&retryWrites=true&w=majority" +``` + +
+ +## Next steps + +- Check out the [Prisma docs](https://www.prisma.io/docs) +- Learn more about [GLoom](https://gqloom.dev/) +- [Join our community on Discord](https://pris.ly/discord?utm_source=github&utm_medium=prisma_examples&utm_content=next_steps_section) to share feedback and interact with other users. +- [Subscribe to our YouTube channel](https://pris.ly/youtube?utm_source=github&utm_medium=prisma_examples&utm_content=next_steps_section) for live demos and video tutorials. +- [Follow us on X](https://pris.ly/x?utm_source=github&utm_medium=prisma_examples&utm_content=next_steps_section) for the latest updates. +- Report issues or ask [questions on GitHub](https://pris.ly/github?utm_source=github&utm_medium=prisma_examples&utm_content=next_steps_section). From 4c99abeecac13dc81db3fbf3243991955b172459 Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 23:43:49 +0800 Subject: [PATCH 06/19] chore: remove generated Prisma files for User and Post models along with related metadata and type definitions --- .../src/generated/gqloom/index.cjs | 11 - .../src/generated/gqloom/index.d.ts | 113 - .../src/generated/gqloom/index.js | 11 - .../src/generated/gqloom/model-meta.json | 15179 ---------------- .../src/generated/prisma/browser.ts | 28 - .../src/generated/prisma/client.ts | 52 - .../src/generated/prisma/commonInputTypes.ts | 355 - .../src/generated/prisma/enums.ts | 14 - .../src/generated/prisma/internal/class.ts | 241 - .../prisma/internal/prismaNamespace.ts | 865 - .../prisma/internal/prismaNamespaceBrowser.ts | 116 - .../src/generated/prisma/models.ts | 12 - .../src/generated/prisma/models/Post.ts | 1530 -- .../src/generated/prisma/models/User.ts | 1314 -- 14 files changed, 19841 deletions(-) delete mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.cjs delete mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.d.ts delete mode 100644 orm/graphql-gqloom/src/generated/gqloom/index.js delete mode 100644 orm/graphql-gqloom/src/generated/gqloom/model-meta.json delete mode 100644 orm/graphql-gqloom/src/generated/prisma/browser.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/client.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/enums.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/class.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/models.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/models/Post.ts delete mode 100644 orm/graphql-gqloom/src/generated/prisma/models/User.ts diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.cjs b/orm/graphql-gqloom/src/generated/gqloom/index.cjs deleted file mode 100644 index ae7d6b62f861..000000000000 --- a/orm/graphql-gqloom/src/generated/gqloom/index.cjs +++ /dev/null @@ -1,11 +0,0 @@ -const { PrismaWeaver } = require("@gqloom/prisma") -const mm = require("./model-meta.json") - -const User = PrismaWeaver.unravel(mm.models.User, mm) -const Post = PrismaWeaver.unravel(mm.models.Post, mm) - - -module.exports = { - User, - Post, -} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.d.ts b/orm/graphql-gqloom/src/generated/gqloom/index.d.ts deleted file mode 100644 index c03fa95e5f0e..000000000000 --- a/orm/graphql-gqloom/src/generated/gqloom/index.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import type { PrismaModelSilk, PrismaEnumSilk } from "@gqloom/prisma"; -import type { User as IUser, Post as IPost, Prisma } from "../prisma/client.ts"; - -export const User: PrismaModelSilk; -export const Post: PrismaModelSilk; - -declare module "@gqloom/prisma" { - interface PrismaTypes { - User: { - UserWhereInput: Prisma.UserWhereInput - UserOrderByWithRelationInput: Prisma.UserOrderByWithRelationInput - UserWhereUniqueInput: Prisma.UserWhereUniqueInput - UserOrderByWithAggregationInput: Prisma.UserOrderByWithAggregationInput - UserScalarWhereWithAggregatesInput: Prisma.UserScalarWhereWithAggregatesInput - UserCreateInput: Prisma.UserCreateInput - UserUncheckedCreateInput: Prisma.UserUncheckedCreateInput - UserUpdateInput: Prisma.UserUpdateInput - UserUncheckedUpdateInput: Prisma.UserUncheckedUpdateInput - UserCreateManyInput: Prisma.UserCreateManyInput - UserUpdateManyMutationInput: Prisma.UserUpdateManyMutationInput - UserUncheckedUpdateManyInput: Prisma.UserUncheckedUpdateManyInput - UserCountOrderByAggregateInput: Prisma.UserCountOrderByAggregateInput - UserAvgOrderByAggregateInput: Prisma.UserAvgOrderByAggregateInput - UserMaxOrderByAggregateInput: Prisma.UserMaxOrderByAggregateInput - UserMinOrderByAggregateInput: Prisma.UserMinOrderByAggregateInput - UserSumOrderByAggregateInput: Prisma.UserSumOrderByAggregateInput - UserNullableScalarRelationFilter: Prisma.UserNullableScalarRelationFilter - StringFieldUpdateOperationsInput: Prisma.StringFieldUpdateOperationsInput - NullableStringFieldUpdateOperationsInput: Prisma.NullableStringFieldUpdateOperationsInput - IntFieldUpdateOperationsInput: Prisma.IntFieldUpdateOperationsInput - UserCreateNestedOneWithoutPostsInput: Prisma.UserCreateNestedOneWithoutPostsInput - UserUpdateOneWithoutPostsNestedInput: Prisma.UserUpdateOneWithoutPostsNestedInput - UserCreateWithoutPostsInput: Prisma.UserCreateWithoutPostsInput - UserUncheckedCreateWithoutPostsInput: Prisma.UserUncheckedCreateWithoutPostsInput - UserCreateOrConnectWithoutPostsInput: Prisma.UserCreateOrConnectWithoutPostsInput - UserUpsertWithoutPostsInput: Prisma.UserUpsertWithoutPostsInput - UserUpdateToOneWithWhereWithoutPostsInput: Prisma.UserUpdateToOneWithWhereWithoutPostsInput - UserUpdateWithoutPostsInput: Prisma.UserUpdateWithoutPostsInput - UserUncheckedUpdateWithoutPostsInput: Prisma.UserUncheckedUpdateWithoutPostsInput - } - Post: { - PostWhereInput: Prisma.PostWhereInput - PostOrderByWithRelationInput: Prisma.PostOrderByWithRelationInput - PostWhereUniqueInput: Prisma.PostWhereUniqueInput - PostOrderByWithAggregationInput: Prisma.PostOrderByWithAggregationInput - PostScalarWhereWithAggregatesInput: Prisma.PostScalarWhereWithAggregatesInput - PostCreateInput: Prisma.PostCreateInput - PostUncheckedCreateInput: Prisma.PostUncheckedCreateInput - PostUpdateInput: Prisma.PostUpdateInput - PostUncheckedUpdateInput: Prisma.PostUncheckedUpdateInput - PostCreateManyInput: Prisma.PostCreateManyInput - PostUpdateManyMutationInput: Prisma.PostUpdateManyMutationInput - PostUncheckedUpdateManyInput: Prisma.PostUncheckedUpdateManyInput - PostListRelationFilter: Prisma.PostListRelationFilter - PostOrderByRelationAggregateInput: Prisma.PostOrderByRelationAggregateInput - PostCountOrderByAggregateInput: Prisma.PostCountOrderByAggregateInput - PostAvgOrderByAggregateInput: Prisma.PostAvgOrderByAggregateInput - PostMaxOrderByAggregateInput: Prisma.PostMaxOrderByAggregateInput - PostMinOrderByAggregateInput: Prisma.PostMinOrderByAggregateInput - PostSumOrderByAggregateInput: Prisma.PostSumOrderByAggregateInput - PostCreateNestedManyWithoutAuthorInput: Prisma.PostCreateNestedManyWithoutAuthorInput - PostUncheckedCreateNestedManyWithoutAuthorInput: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput - PostUpdateManyWithoutAuthorNestedInput: Prisma.PostUpdateManyWithoutAuthorNestedInput - PostUncheckedUpdateManyWithoutAuthorNestedInput: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput - DateTimeFieldUpdateOperationsInput: Prisma.DateTimeFieldUpdateOperationsInput - BoolFieldUpdateOperationsInput: Prisma.BoolFieldUpdateOperationsInput - NullableIntFieldUpdateOperationsInput: Prisma.NullableIntFieldUpdateOperationsInput - PostCreateWithoutAuthorInput: Prisma.PostCreateWithoutAuthorInput - PostUncheckedCreateWithoutAuthorInput: Prisma.PostUncheckedCreateWithoutAuthorInput - PostCreateOrConnectWithoutAuthorInput: Prisma.PostCreateOrConnectWithoutAuthorInput - PostCreateManyAuthorInputEnvelope: Prisma.PostCreateManyAuthorInputEnvelope - PostUpsertWithWhereUniqueWithoutAuthorInput: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput - PostUpdateWithWhereUniqueWithoutAuthorInput: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput - PostUpdateManyWithWhereWithoutAuthorInput: Prisma.PostUpdateManyWithWhereWithoutAuthorInput - PostScalarWhereInput: Prisma.PostScalarWhereInput - PostCreateManyAuthorInput: Prisma.PostCreateManyAuthorInput - PostUpdateWithoutAuthorInput: Prisma.PostUpdateWithoutAuthorInput - PostUncheckedUpdateWithoutAuthorInput: Prisma.PostUncheckedUpdateWithoutAuthorInput - PostUncheckedUpdateManyWithoutAuthorInput: Prisma.PostUncheckedUpdateManyWithoutAuthorInput - } - others: { - IntFilter: Prisma.IntFilter - StringFilter: Prisma.StringFilter - StringNullableFilter: Prisma.StringNullableFilter - SortOrderInput: Prisma.SortOrderInput - IntWithAggregatesFilter: Prisma.IntWithAggregatesFilter - StringWithAggregatesFilter: Prisma.StringWithAggregatesFilter - StringNullableWithAggregatesFilter: Prisma.StringNullableWithAggregatesFilter - DateTimeFilter: Prisma.DateTimeFilter - BoolFilter: Prisma.BoolFilter - IntNullableFilter: Prisma.IntNullableFilter - DateTimeWithAggregatesFilter: Prisma.DateTimeWithAggregatesFilter - BoolWithAggregatesFilter: Prisma.BoolWithAggregatesFilter - IntNullableWithAggregatesFilter: Prisma.IntNullableWithAggregatesFilter - NestedIntFilter: Prisma.NestedIntFilter - NestedStringFilter: Prisma.NestedStringFilter - NestedStringNullableFilter: Prisma.NestedStringNullableFilter - NestedIntWithAggregatesFilter: Prisma.NestedIntWithAggregatesFilter - NestedFloatFilter: Prisma.NestedFloatFilter - NestedStringWithAggregatesFilter: Prisma.NestedStringWithAggregatesFilter - NestedStringNullableWithAggregatesFilter: Prisma.NestedStringNullableWithAggregatesFilter - NestedIntNullableFilter: Prisma.NestedIntNullableFilter - NestedDateTimeFilter: Prisma.NestedDateTimeFilter - NestedBoolFilter: Prisma.NestedBoolFilter - NestedDateTimeWithAggregatesFilter: Prisma.NestedDateTimeWithAggregatesFilter - NestedBoolWithAggregatesFilter: Prisma.NestedBoolWithAggregatesFilter - NestedIntNullableWithAggregatesFilter: Prisma.NestedIntNullableWithAggregatesFilter - NestedFloatNullableFilter: Prisma.NestedFloatNullableFilter - } - } -} - -export { IUser, IPost }; diff --git a/orm/graphql-gqloom/src/generated/gqloom/index.js b/orm/graphql-gqloom/src/generated/gqloom/index.js deleted file mode 100644 index 94a0fc485f0a..000000000000 --- a/orm/graphql-gqloom/src/generated/gqloom/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { PrismaWeaver } from "@gqloom/prisma" -import mm from "./model-meta.json" with { type: "json" } - -const User = PrismaWeaver.unravel(mm.models.User, mm) -const Post = PrismaWeaver.unravel(mm.models.Post, mm) - - -export { - User, - Post, -} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/gqloom/model-meta.json b/orm/graphql-gqloom/src/generated/gqloom/model-meta.json deleted file mode 100644 index 09bc151f33bb..000000000000 --- a/orm/graphql-gqloom/src/generated/gqloom/model-meta.json +++ /dev/null @@ -1,15179 +0,0 @@ -{ - "models": { - "User": { - "name": "User", - "dbName": null, - "schema": null, - "fields": [ - { - "name": "id", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": true, - "isReadOnly": false, - "hasDefaultValue": true, - "type": "Int", - "nativeType": null, - "default": { - "name": "autoincrement", - "args": [] - }, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "email", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": true, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "String", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "name", - "kind": "scalar", - "isList": false, - "isRequired": false, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "String", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "posts", - "kind": "object", - "isList": true, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "Post", - "nativeType": null, - "relationName": "PostToUser", - "relationFromFields": [], - "relationToFields": [], - "isGenerated": false, - "isUpdatedAt": false - } - ], - "primaryKey": null, - "uniqueFields": [], - "uniqueIndexes": [], - "isGenerated": false - }, - "Post": { - "name": "Post", - "dbName": null, - "schema": null, - "fields": [ - { - "name": "id", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": true, - "isReadOnly": false, - "hasDefaultValue": true, - "type": "Int", - "nativeType": null, - "default": { - "name": "autoincrement", - "args": [] - }, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "createdAt", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": true, - "type": "DateTime", - "nativeType": null, - "default": { - "name": "now", - "args": [] - }, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "updatedAt", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "DateTime", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": true - }, - { - "name": "title", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "String", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "content", - "kind": "scalar", - "isList": false, - "isRequired": false, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "String", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "published", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": true, - "type": "Boolean", - "nativeType": null, - "default": false, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "viewCount", - "kind": "scalar", - "isList": false, - "isRequired": true, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": true, - "type": "Int", - "nativeType": null, - "default": 0, - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "author", - "kind": "object", - "isList": false, - "isRequired": false, - "isUnique": false, - "isId": false, - "isReadOnly": false, - "hasDefaultValue": false, - "type": "User", - "nativeType": null, - "relationName": "PostToUser", - "relationFromFields": [ - "authorId" - ], - "relationToFields": [ - "id" - ], - "isGenerated": false, - "isUpdatedAt": false - }, - { - "name": "authorId", - "kind": "scalar", - "isList": false, - "isRequired": false, - "isUnique": false, - "isId": false, - "isReadOnly": true, - "hasDefaultValue": false, - "type": "Int", - "nativeType": null, - "isGenerated": false, - "isUpdatedAt": false - } - ], - "primaryKey": null, - "uniqueFields": [], - "uniqueIndexes": [], - "isGenerated": false - } - }, - "enums": {}, - "schema": { - "inputObjectTypes": { - "prisma": [ - { - "name": "UserWhereInput", - "meta": { - "source": "User", - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostListRelationFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserOrderByWithRelationInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 0 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByRelationAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserWhereUniqueInput", - "meta": { - "source": "User", - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": 1, - "fields": [ - "id", - "email" - ] - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostListRelationFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserOrderByWithAggregationInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 0 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCountOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserAvgOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserMaxOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserMinOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserSumOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserScalarWhereWithAggregatesInput", - "meta": { - "source": "User", - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostWhereInput", - "meta": { - "source": "Post", - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "BoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "IntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "author", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "UserNullableScalarRelationFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostOrderByWithRelationInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 0 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "author", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostWhereUniqueInput", - "meta": { - "source": "Post", - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": 1, - "fields": [ - "id" - ] - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "BoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "IntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "author", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "UserNullableScalarRelationFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostOrderByWithAggregationInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 0 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "SortOrderInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCountOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostAvgOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostMaxOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostMinOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostSumOrderByAggregateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostScalarWhereWithAggregatesInput", - "meta": { - "source": "Post", - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "BoolWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "IntNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserCreateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "email", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateNestedManyWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUncheckedCreateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUncheckedCreateNestedManyWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpdateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyWithoutAuthorNestedInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUncheckedUpdateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "posts", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUncheckedUpdateManyWithoutAuthorNestedInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserCreateManyInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpdateManyMutationInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUncheckedUpdateManyInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "author", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateNestedOneWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedCreateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "author", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateOneWithoutPostsNestedInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedUpdateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NullableIntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateManyInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateManyMutationInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedUpdateManyInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NullableIntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "IntFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "StringFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "mode", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "QueryMode", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "StringNullableFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "mode", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "QueryMode", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostListRelationFilter", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "every", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "some", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "none", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "SortOrderInput", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "sort", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "nulls", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NullsOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostOrderByRelationAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserCountOrderByAggregateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserAvgOrderByAggregateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserMaxOrderByAggregateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserMinOrderByAggregateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserSumOrderByAggregateInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "IntWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedFloatFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "StringWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "mode", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "QueryMode", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "StringNullableWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "mode", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "QueryMode", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "DateTimeFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "BoolFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BooleanFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "IntNullableFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserNullableScalarRelationFilter", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "is", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "isNot", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCountOrderByAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostAvgOrderByAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostMaxOrderByAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostMinOrderByAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostSumOrderByAggregateInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "SortOrder", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "DateTimeWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "NestedDateTimeWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "BoolWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BooleanFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "NestedBoolWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "IntNullableWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedFloatNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateNestedManyWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "createMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyAuthorInputEnvelope", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - } - ] - }, - { - "name": "PostUncheckedCreateNestedManyWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "createMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyAuthorInputEnvelope", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - } - ] - }, - { - "name": "StringFieldUpdateOperationsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "NullableStringFieldUpdateOperationsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateManyWithoutAuthorNestedInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "upsert", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "createMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyAuthorInputEnvelope", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "disconnect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "delete", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "update", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "updateMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyWithWhereWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpdateManyWithWhereWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "deleteMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - } - ] - }, - { - "name": "IntFieldUpdateOperationsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "increment", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "decrement", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "multiply", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "divide", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedUpdateManyWithoutAuthorNestedInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateOrConnectWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "upsert", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpsertWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "createMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyAuthorInputEnvelope", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "disconnect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "delete", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "update", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpdateWithWhereUniqueWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "updateMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyWithWhereWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUpdateManyWithWhereWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "deleteMany", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - } - ] - }, - { - "name": "UserCreateNestedOneWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateOrConnectWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "DateTimeFieldUpdateOperationsInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "BoolFieldUpdateOperationsInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpdateOneWithoutPostsNestedInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "create", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connectOrCreate", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateOrConnectWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "upsert", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpsertWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "disconnect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "delete", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "connect", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "update", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateToOneWithWhereWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NullableIntFieldUpdateOperationsInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": 1, - "minNumFields": 1 - }, - "fields": [ - { - "name": "set", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "increment", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "decrement", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "multiply", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "divide", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedIntFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedStringFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedStringNullableFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedIntWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedFloatFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedFloatFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": true - }, - { - "type": "ListFloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": true - }, - { - "type": "ListFloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "NestedFloatFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedStringWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedStringNullableWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - }, - { - "type": "ListStringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "contains", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "startsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "endsWith", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NestedStringNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedStringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedIntNullableFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedDateTimeFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedBoolFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BooleanFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedDateTimeWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - }, - { - "type": "ListDateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "NestedDateTimeWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedDateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedBoolWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BooleanFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "NestedBoolWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedBoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedIntNullableWithAggregatesFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - }, - { - "type": "ListIntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "NestedIntNullableWithAggregatesFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_count", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_avg", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedFloatNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_sum", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_min", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "_max", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "NestedIntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "NestedFloatNullableFilter", - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "equals", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "in", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": true - }, - { - "type": "ListFloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "notIn", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": true - }, - { - "type": "ListFloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "lt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "lte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "gte", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "FloatFieldRefInput", - "namespace": "prisma", - "location": "fieldRefTypes", - "isList": false - } - ] - }, - { - "name": "not", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - }, - { - "type": "NestedFloatNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedCreateWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateOrConnectWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateManyAuthorInputEnvelope", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateManyAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "skipDuplicates", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpsertWithWhereUniqueWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "update", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateWithWhereUniqueWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateManyWithWhereWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyMutationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateManyWithoutAuthorInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostScalarWhereInput", - "meta": { - "source": "Post", - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "AND", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "OR", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "NOT", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostScalarWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTimeFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "StringFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "StringNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "BoolFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "IntFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "authorId", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "IntNullableFilter", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserCreateWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "email", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUncheckedCreateWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserCreateOrConnectWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpsertWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "update", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpdateToOneWithWhereWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateWithoutPostsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUpdateWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "UserUncheckedUpdateWithoutPostsInput", - "meta": { - "grouping": "User" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "email", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "name", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostCreateManyAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUpdateWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedUpdateWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - }, - { - "name": "PostUncheckedUpdateManyWithoutAuthorInput", - "meta": { - "grouping": "Post" - }, - "constraints": { - "maxNumFields": null, - "minNumFields": null - }, - "fields": [ - { - "name": "id", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "createdAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "updatedAt", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - }, - { - "type": "DateTimeFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "title", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "StringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "content", - "isRequired": false, - "isNullable": true, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - }, - { - "type": "NullableStringFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "Null", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "published", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - }, - { - "type": "BoolFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "viewCount", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - }, - { - "type": "IntFieldUpdateOperationsInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ] - } - ] - }, - "outputObjectTypes": { - "prisma": [ - { - "name": "Query", - "fields": [ - { - "name": "findFirstUser", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findFirstUserOrThrow", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findManyUser", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "aggregateUser", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "UserOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AggregateUser", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "groupByUser", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserOrderByWithAggregationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "UserOrderByWithAggregationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "by", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - }, - { - "type": "UserScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "having", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "UserGroupByOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "findUniqueUser", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findUniqueUserOrThrow", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findFirstPost", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findFirstPostOrThrow", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findManyPost", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "aggregatePost", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AggregatePost", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "groupByPost", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithAggregationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithAggregationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "by", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - }, - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - } - ] - }, - { - "name": "having", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarWhereWithAggregatesInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "PostGroupByOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "findUniquePost", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "findUniquePostOrThrow", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "Mutation", - "fields": [ - { - "name": "createOneUser", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "upsertOneUser", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "update", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "createManyUser", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "skipDuplicates", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "createManyUserAndReturn", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "skipDuplicates", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "CreateManyUserAndReturnOutputType", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "deleteOneUser", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateOneUser", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateManyUser", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateManyMutationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateManyUserAndReturn", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "UserUpdateManyMutationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "UserUncheckedUpdateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "UpdateManyUserAndReturnOutputType", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "deleteManyUser", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "createOnePost", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "upsertOnePost", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "create", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedCreateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "update", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "createManyPost", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "skipDuplicates", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "createManyPostAndReturn", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostCreateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - } - ] - }, - { - "name": "skipDuplicates", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "CreateManyPostAndReturnOutputType", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "deleteOnePost", - "args": [ - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateOnePost", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateManyPost", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyMutationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "updateManyPostAndReturn", - "args": [ - { - "name": "data", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "PostUpdateManyMutationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - }, - { - "type": "PostUncheckedUpdateManyInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "UpdateManyPostAndReturnOutputType", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "deleteManyPost", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "limit", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "AffectedRowsOutput", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "executeRaw", - "args": [ - { - "name": "query", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "parameters", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Json", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Json", - "location": "scalar", - "isList": false - } - }, - { - "name": "queryRaw", - "args": [ - { - "name": "query", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "parameters", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Json", - "location": "scalar", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Json", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "AggregateUser", - "fields": [ - { - "name": "_count", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserCountAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_avg", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserAvgAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_sum", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserSumAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_min", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserMinAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_max", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserMaxAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "UserGroupByOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "_count", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserCountAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_avg", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserAvgAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_sum", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserSumAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_min", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserMinAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_max", - "args": [], - "isNullable": true, - "outputType": { - "type": "UserMaxAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "AggregatePost", - "fields": [ - { - "name": "_count", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostCountAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_avg", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostAvgAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_sum", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostSumAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_min", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostMinAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_max", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostMaxAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "PostGroupByOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": false, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "_count", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostCountAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_avg", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostAvgAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_sum", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostSumAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_min", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostMinAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - }, - { - "name": "_max", - "args": [], - "isNullable": true, - "outputType": { - "type": "PostMaxAggregateOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "AffectedRowsOutput", - "fields": [ - { - "name": "count", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserCountOutputType", - "fields": [ - { - "name": "posts", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserCountAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "_all", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserAvgAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Float", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserSumAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserMinAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UserMaxAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "PostCountAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "_all", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "PostAvgAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Float", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": true, - "outputType": { - "type": "Float", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Float", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "PostSumAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "PostMinAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": true, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": true, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": true, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "PostMaxAggregateOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": true, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": true, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": true, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - } - ] - } - ], - "model": [ - { - "name": "User", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "posts", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "orderBy", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": true - }, - { - "type": "PostOrderByWithRelationInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "cursor", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostWhereUniqueInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - }, - { - "name": "take", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "skip", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "distinct", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": false - }, - { - "type": "PostScalarFieldEnum", - "namespace": "prisma", - "location": "enumTypes", - "isList": true - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "Post", - "namespace": "model", - "location": "outputObjectTypes", - "isList": true - } - }, - { - "name": "_count", - "args": [], - "isNullable": false, - "outputType": { - "type": "UserCountOutputType", - "namespace": "prisma", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "Post", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": false, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "author", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "CreateManyUserAndReturnOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "UpdateManyUserAndReturnOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "email", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "name", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - } - ] - }, - { - "name": "CreateManyPostAndReturnOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": false, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "author", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - } - ] - }, - { - "name": "UpdateManyPostAndReturnOutputType", - "fields": [ - { - "name": "id", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "createdAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "updatedAt", - "args": [], - "isNullable": false, - "outputType": { - "type": "DateTime", - "location": "scalar", - "isList": false - } - }, - { - "name": "title", - "args": [], - "isNullable": false, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "content", - "args": [], - "isNullable": true, - "outputType": { - "type": "String", - "location": "scalar", - "isList": false - } - }, - { - "name": "published", - "args": [], - "isNullable": false, - "outputType": { - "type": "Boolean", - "location": "scalar", - "isList": false - } - }, - { - "name": "viewCount", - "args": [], - "isNullable": false, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "authorId", - "args": [], - "isNullable": true, - "outputType": { - "type": "Int", - "location": "scalar", - "isList": false - } - }, - { - "name": "author", - "args": [ - { - "name": "where", - "isRequired": false, - "isNullable": false, - "inputTypes": [ - { - "type": "UserWhereInput", - "namespace": "prisma", - "location": "inputObjectTypes", - "isList": false - } - ] - } - ], - "isNullable": true, - "outputType": { - "type": "User", - "namespace": "model", - "location": "outputObjectTypes", - "isList": false - } - } - ] - } - ] - }, - "enumTypes": { - "prisma": [ - { - "name": "TransactionIsolationLevel", - "values": [ - "ReadUncommitted", - "ReadCommitted", - "RepeatableRead", - "Serializable" - ] - }, - { - "name": "UserScalarFieldEnum", - "values": [ - "id", - "email", - "name" - ] - }, - { - "name": "PostScalarFieldEnum", - "values": [ - "id", - "createdAt", - "updatedAt", - "title", - "content", - "published", - "viewCount", - "authorId" - ] - }, - { - "name": "SortOrder", - "values": [ - "asc", - "desc" - ] - }, - { - "name": "QueryMode", - "values": [ - "default", - "insensitive" - ] - }, - { - "name": "NullsOrder", - "values": [ - "first", - "last" - ] - } - ] - }, - "fieldRefTypes": { - "prisma": [ - { - "name": "IntFieldRefInput", - "allowTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": false - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "ListIntFieldRefInput", - "allowTypes": [ - { - "type": "Int", - "location": "scalar", - "isList": true - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "StringFieldRefInput", - "allowTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "ListStringFieldRefInput", - "allowTypes": [ - { - "type": "String", - "location": "scalar", - "isList": true - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "DateTimeFieldRefInput", - "allowTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": false - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "ListDateTimeFieldRefInput", - "allowTypes": [ - { - "type": "DateTime", - "location": "scalar", - "isList": true - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "BooleanFieldRefInput", - "allowTypes": [ - { - "type": "Boolean", - "location": "scalar", - "isList": false - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "FloatFieldRefInput", - "allowTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": false - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - }, - { - "name": "ListFloatFieldRefInput", - "allowTypes": [ - { - "type": "Float", - "location": "scalar", - "isList": true - } - ], - "fields": [ - { - "name": "_ref", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - }, - { - "name": "_container", - "isRequired": true, - "isNullable": false, - "inputTypes": [ - { - "type": "String", - "location": "scalar", - "isList": false - } - ] - } - ] - } - ] - } - } -} \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/prisma/browser.ts b/orm/graphql-gqloom/src/generated/prisma/browser.ts deleted file mode 100644 index 6c7c4f7a8fb5..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/browser.ts +++ /dev/null @@ -1,28 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This file should be your main import to use Prisma-related types and utilities in a browser. - * Use it to get access to models, enums, and input types. - * - * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. - * See `client.ts` for the standard, server-side entry point. - * - * ๐ŸŸข You can import this file directly. - */ - -import * as Prisma from './internal/prismaNamespaceBrowser.js' -export { Prisma } -export * as $Enums from './enums.js' -export * from './enums.js'; -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Post - * - */ -export type Post = Prisma.PostModel diff --git a/orm/graphql-gqloom/src/generated/prisma/client.ts b/orm/graphql-gqloom/src/generated/prisma/client.ts deleted file mode 100644 index 3c19fca40914..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/client.ts +++ /dev/null @@ -1,52 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. - * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. - * - * ๐ŸŸข You can import this file directly. - */ - -import * as process from 'node:process' -import * as path from 'node:path' -import { fileURLToPath } from 'node:url' -globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) - -import * as runtime from "@prisma/client/runtime/client" -import * as $Enums from "./enums.js" -import * as $Class from "./internal/class.js" -import * as Prisma from "./internal/prismaNamespace.js" - -export * as $Enums from './enums.js' -export * from "./enums.js" -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export const PrismaClient = $Class.getPrismaClientClass(__dirname) -export type PrismaClient = $Class.PrismaClient -export { Prisma } - - - -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Post - * - */ -export type Post = Prisma.PostModel diff --git a/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts b/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts deleted file mode 100644 index a0847567d21a..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/commonInputTypes.ts +++ /dev/null @@ -1,355 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This file exports various common sort, input & filter types that are not directly linked to a particular model. - * - * ๐ŸŸข You can import this file directly. - */ - -import type * as runtime from "@prisma/client/runtime/client" -import * as $Enums from "./enums.js" -import type * as Prisma from "./internal/prismaNamespace.js" - - -export type IntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} - -export type StringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type SortOrderInput = { - sort: Prisma.SortOrder - nulls?: Prisma.NullsOrder -} - -export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} - -export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} - -export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} - -export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - -export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} - -export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} - -export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatFilter<$PrismaModel> | number -} - -export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} - -export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} - -export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} - -export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} - -export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - -export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null -} - - diff --git a/orm/graphql-gqloom/src/generated/prisma/enums.ts b/orm/graphql-gqloom/src/generated/prisma/enums.ts deleted file mode 100644 index 0189a3446d4f..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/enums.ts +++ /dev/null @@ -1,14 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* -* This file exports all enum related types from the schema. -* -* ๐ŸŸข You can import this file directly. -*/ - - - -// This file is empty because there are no enums in the schema. -export {} diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/class.ts b/orm/graphql-gqloom/src/generated/prisma/internal/class.ts deleted file mode 100644 index bdb20641d109..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/internal/class.ts +++ /dev/null @@ -1,241 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ - * - * Please import the `PrismaClient` class from the `client.ts` file instead. - */ - -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "./prismaNamespace.js" - - -const config: runtime.GetPrismaClientConfig = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client" - }, - "output": { - "value": "/home/xcfox/code/demo/prisma-examples/orm/graphql-gqloom/src/generated/prisma", - "fromEnvVar": null - }, - "config": { - "engineType": "client" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "debian-openssl-3.0.x", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/home/xcfox/code/demo/prisma-examples/orm/graphql-gqloom/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativePath": "../../../prisma", - "clientVersion": "6.17.1", - "engineVersion": "272a37d34178c2894197e17273bf937f25acdeac", - "datasourceNames": [ - "db" - ], - "activeProvider": "postgresql", - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client\"\n engineType = \"client\"\n output = \"../src/generated/prisma\"\n}\n\ngenerator gqloom {\n provider = \"prisma-gqloom\"\n output = \"../src/generated/gqloom\"\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String?\n posts Post[]\n}\n\nmodel Post {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n title String\n content String?\n published Boolean @default(false)\n viewCount Int @default(0)\n author User? @relation(fields: [authorId], references: [id])\n authorId Int?\n}\n", - "inlineSchemaHash": "f3fbe774c76be58be4326566bcfa67ac264faaf5bf18383897ff14ec4cb97cbe", - "copyEngine": true, - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - }, - "dirname": "" -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"posts\",\"kind\":\"object\",\"type\":\"Post\",\"relationName\":\"PostToUser\"}],\"dbName\":null},\"Post\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"published\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"viewCount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"author\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PostToUser\"},{\"name\":\"authorId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") -config.engineWasm = undefined - -async function decodeBase64AsWasm(wasmBase64: string): Promise { - const { Buffer } = await import('node:buffer') - const wasmArray = Buffer.from(wasmBase64, 'base64') - return new WebAssembly.Module(wasmArray) -} - -config.compilerWasm = { - getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"), - - getQueryCompilerWasmModule: async () => { - const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs") - return await decodeBase64AsWasm(wasm) - } -} - - - - -export type LogOptions = - 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never - -export interface PrismaClientConstructor { - /** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - - new < - Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs - >(options?: Prisma.Subset ): PrismaClient -} - -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - -export interface PrismaClient< - in LogOpts extends Prisma.LogLevel = never, - in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): runtime.Types.Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): runtime.Types.Utils.JsPromise; - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. - * @example - * ``` - * const [george, bob, alice] = await prisma.$transaction([ - * prisma.user.create({ data: { name: 'George' } }), - * prisma.user.create({ data: { name: 'Bob' } }), - * prisma.user.create({ data: { name: 'Alice' } }), - * ]) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). - */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise - - - $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { - extArgs: ExtArgs - }>> - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.post`: Exposes CRUD operations for the **Post** model. - * Example usage: - * ```ts - * // Fetch zero or more Posts - * const posts = await prisma.post.findMany() - * ``` - */ - get post(): Prisma.PostDelegate; -} - -export function getPrismaClientClass(dirname: string): PrismaClientConstructor { - config.dirname = dirname - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts deleted file mode 100644 index 9b6ef8c2298c..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespace.ts +++ /dev/null @@ -1,865 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ - * - * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "../models.js" -import { type PrismaClient } from "./class.js" - -export type * from '../models.js' - -export type DMMF = typeof runtime.DMMF - -export type PrismaPromise = runtime.Types.Public.PrismaPromise - -/** - * Prisma Errors - */ - -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError - -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError - -/** - * Re-export of sql-template-tag - */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - - -/** - * Decimal.js - */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal - -export type DecimalJsLike = runtime.DecimalJsLike - -/** - * Metrics - */ -export type Metrics = runtime.Metrics -export type Metric = runtime.Metric -export type MetricHistogram = runtime.MetricHistogram -export type MetricHistogramBucket = runtime.MetricHistogramBucket - -/** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact - -export type PrismaVersion = { - client: string - engine: string -} - -/** - * Prisma Client JS version: 6.17.1 - * Query Engine version: 272a37d34178c2894197e17273bf937f25acdeac - */ -export const prismaVersion: PrismaVersion = { - client: "6.17.1", - engine: "272a37d34178c2894197e17273bf937f25acdeac" -} - -/** - * Utility Types - */ - -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - - -export const NullTypes = { - DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.objectEnumValues.instances.DbNull -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.objectEnumValues.instances.JsonNull -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.objectEnumValues.instances.AnyNull - - -type SelectAndInclude = { - select: any - include: any -} - -type SelectAndOmit = { - select: any - omit: any -} - -/** - * From T, pick a set of properties whose keys are in the union K - */ -type Prisma__Pick = { - [P in K]: T[P]; -}; - -export type Enumerable = T | Array; - -/** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ -export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; -}; - -/** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ -export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - -/** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ -export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K - -type Without = { [P in Exclude]?: never }; - -/** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - -/** - * Is T a Record? - */ -type IsObject = T extends Array -? False -: T extends Date -? False -: T extends Uint8Array -? False -: T extends BigInt -? False -: T extends object -? True -: False - - -/** - * If it's T[], return T - */ -export type UnEnumerate = T extends Array ? U : T - -/** - * From ts-toolbelt - */ - -type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - -type EitherStrict = Strict<__Either> - -type EitherLoose = ComputeRaw<__Either> - -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] - -export type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never - -export type Union = any - -export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} - -/** Helper Types for "Merge" **/ -export type IntersectOf = ( - U extends unknown ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never - -export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; -} & {}; - -type _Merge = IntersectOf; -}>>; - -type Key = string | number | symbol; -type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; -export type At = { - 1: AtStrict; - 0: AtLoose; -}[strict]; - -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; - -export type OptionalFlat = { - [K in keyof O]?: O[K]; -} & {}; - -type _Record = { - [P in K]: T; -}; - -// cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never; - -// this type assumes the passed object is entirely optional -export type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O - : never>; - -type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - -export type Strict = ComputeRaw<_Strict>; -/** End Helper Types for "Merge" **/ - -export type Merge = ComputeRaw<_Merge>>; - -export type Boolean = True | False - -export type True = 1 - -export type False = 0 - -export type Not = { - 0: 1 - 1: 0 -}[B] - -export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - -export type Has = Not< - Extends, U1> -> - -export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } -}[B1][B2] - -export type Keys = U extends unknown ? keyof U : never - -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never - -type FieldPaths< - T, - U = Omit -> = IsObject extends True ? U : T - -export type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K -}[keyof T] - -/** - * Convert tuple to union - */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - -/** - * Like `Pick`, but additionally can also accept an array of keys - */ -export type PickEnumerable | keyof T> = Prisma__Pick> - -/** - * Exclude all keys with underscores - */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - - -export const ModelName = { - User: 'User', - Post: 'Post' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - -export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { - returns: TypeMap -} - -export type TypeMap = { - globalOmitOptions: { - omit: GlobalOmitOptions - } - meta: { - modelProps: "user" | "post" - txIsolationLevel: TransactionIsolationLevel - } - model: { - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.UserUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.UserUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Post: { - payload: Prisma.$PostPayload - fields: Prisma.PostFieldRefs - operations: { - findUnique: { - args: Prisma.PostFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.PostFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.PostFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.PostFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.PostFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.PostCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.PostCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.PostCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.PostDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.PostUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.PostDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.PostUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.PostUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.PostUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.PostAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.PostGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.PostCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - } -} & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } -} - -/** - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - email: 'email', - name: 'name' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const PostScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - title: 'title', - content: 'content', - published: 'published', - viewCount: 'viewCount', - authorId: 'authorId' -} as const - -export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type 'Int' - */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - -/** - * Reference to a field of type 'Int[]' - */ -export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> - - - -/** - * Reference to a field of type 'String' - */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - -/** - * Reference to a field of type 'String[]' - */ -export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> - - - -/** - * Reference to a field of type 'DateTime' - */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - -/** - * Reference to a field of type 'DateTime[]' - */ -export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> - - - -/** - * Reference to a field of type 'Boolean' - */ -export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - -/** - * Reference to a field of type 'Float' - */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - - -/** - * Reference to a field of type 'Float[]' - */ -export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> - - -/** - * Batch Payload for updateMany & deleteMany & createMany - */ -export type BatchPayload = { - count: number -} - - -export type Datasource = { - url?: string -} -export type Datasources = { - db?: Datasource -} - -export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Shorthand for `emit: 'stdout'` - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events only - * log: [ - * { emit: 'event', level: 'query' }, - * { emit: 'event', level: 'info' }, - * { emit: 'event', level: 'warn' } - * { emit: 'event', level: 'error' } - * ] - * - * / Emit as events and log to stdout - * og: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: TransactionIsolationLevel - } - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` - */ - adapter?: runtime.SqlDriverAdapterFactory | null - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig -} -export type GlobalOmitConfig = { - user?: Prisma.UserOmit - post?: Prisma.PostOmit -} - -/* Types for Logging */ -export type LogLevel = 'info' | 'query' | 'warn' | 'error' -export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' -} - -export type CheckIsLogLevel = T extends LogLevel ? T : never; - -export type GetLogType = CheckIsLogLevel< - T extends LogDefinition ? T['level'] : T ->; - -export type GetEvents = T extends Array - ? GetLogType - : never; - -export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string -} - -export type LogEvent = { - timestamp: Date - message: string - target: string -} -/* End Types for Logging */ - - -export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'updateManyAndReturn' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - -/** - * `PrismaClient` proxy available in interactive transactions. - */ -export type TransactionClient = Omit - diff --git a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index 1be5d32dc754..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,116 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * WARNING: This is an internal file that is subject to change! - * - * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ - * - * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. - * While this enables partial backward compatibility, it is not part of the stable public API. - * - * If you are looking for your Models, Enums, and Input Types, please import them from the respective - * model files in the `model` directory! - */ - -import * as runtime from "@prisma/client/runtime/index-browser" - -export type * from '../models.js' -export type * from './prismaNamespace.js' - -export const Decimal = runtime.Decimal - - -export const NullTypes = { - DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.objectEnumValues.instances.DbNull -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.objectEnumValues.instances.JsonNull -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.objectEnumValues.instances.AnyNull - - -export const ModelName = { - User: 'User', - Post: 'Post' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - -/* - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - email: 'email', - name: 'name' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const PostScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - title: 'title', - content: 'content', - published: 'published', - viewCount: 'viewCount', - authorId: 'authorId' -} as const - -export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - diff --git a/orm/graphql-gqloom/src/generated/prisma/models.ts b/orm/graphql-gqloom/src/generated/prisma/models.ts deleted file mode 100644 index 4cb0b9b1a8cb..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/models.ts +++ /dev/null @@ -1,12 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This is a barrel export file for all models and their related types. - * - * ๐ŸŸข You can import this file directly. - */ -export type * from './models/User.js' -export type * from './models/Post.js' -export type * from './commonInputTypes.js' \ No newline at end of file diff --git a/orm/graphql-gqloom/src/generated/prisma/models/Post.ts b/orm/graphql-gqloom/src/generated/prisma/models/Post.ts deleted file mode 100644 index fbffbd7b356a..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/models/Post.ts +++ /dev/null @@ -1,1530 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This file exports the `Post` model and its related types. - * - * ๐ŸŸข You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model Post - * - */ -export type PostModel = runtime.Types.Result.DefaultSelection - -export type AggregatePost = { - _count: PostCountAggregateOutputType | null - _avg: PostAvgAggregateOutputType | null - _sum: PostSumAggregateOutputType | null - _min: PostMinAggregateOutputType | null - _max: PostMaxAggregateOutputType | null -} - -export type PostAvgAggregateOutputType = { - id: number | null - viewCount: number | null - authorId: number | null -} - -export type PostSumAggregateOutputType = { - id: number | null - viewCount: number | null - authorId: number | null -} - -export type PostMinAggregateOutputType = { - id: number | null - createdAt: Date | null - updatedAt: Date | null - title: string | null - content: string | null - published: boolean | null - viewCount: number | null - authorId: number | null -} - -export type PostMaxAggregateOutputType = { - id: number | null - createdAt: Date | null - updatedAt: Date | null - title: string | null - content: string | null - published: boolean | null - viewCount: number | null - authorId: number | null -} - -export type PostCountAggregateOutputType = { - id: number - createdAt: number - updatedAt: number - title: number - content: number - published: number - viewCount: number - authorId: number - _all: number -} - - -export type PostAvgAggregateInputType = { - id?: true - viewCount?: true - authorId?: true -} - -export type PostSumAggregateInputType = { - id?: true - viewCount?: true - authorId?: true -} - -export type PostMinAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - content?: true - published?: true - viewCount?: true - authorId?: true -} - -export type PostMaxAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - content?: true - published?: true - viewCount?: true - authorId?: true -} - -export type PostCountAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - content?: true - published?: true - viewCount?: true - authorId?: true - _all?: true -} - -export type PostAggregateArgs = { - /** - * Filter which Post to aggregate. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Posts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Posts - **/ - _count?: true | PostCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: PostAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: PostSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: PostMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: PostMaxAggregateInputType -} - -export type GetPostAggregateType = { - [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type PostGroupByArgs = { - where?: Prisma.PostWhereInput - orderBy?: Prisma.PostOrderByWithAggregationInput | Prisma.PostOrderByWithAggregationInput[] - by: Prisma.PostScalarFieldEnum[] | Prisma.PostScalarFieldEnum - having?: Prisma.PostScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: PostCountAggregateInputType | true - _avg?: PostAvgAggregateInputType - _sum?: PostSumAggregateInputType - _min?: PostMinAggregateInputType - _max?: PostMaxAggregateInputType -} - -export type PostGroupByOutputType = { - id: number - createdAt: Date - updatedAt: Date - title: string - content: string | null - published: boolean - viewCount: number - authorId: number | null - _count: PostCountAggregateOutputType | null - _avg: PostAvgAggregateOutputType | null - _sum: PostSumAggregateOutputType | null - _min: PostMinAggregateOutputType | null - _max: PostMaxAggregateOutputType | null -} - -type GetPostGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type PostWhereInput = { - AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - OR?: Prisma.PostWhereInput[] - NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - id?: Prisma.IntFilter<"Post"> | number - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringNullableFilter<"Post"> | string | null - published?: Prisma.BoolFilter<"Post"> | boolean - viewCount?: Prisma.IntFilter<"Post"> | number - authorId?: Prisma.IntNullableFilter<"Post"> | number | null - author?: Prisma.XOR | null -} - -export type PostOrderByWithRelationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrderInput | Prisma.SortOrder - published?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrderInput | Prisma.SortOrder - author?: Prisma.UserOrderByWithRelationInput -} - -export type PostWhereUniqueInput = Prisma.AtLeast<{ - id?: number - AND?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - OR?: Prisma.PostWhereInput[] - NOT?: Prisma.PostWhereInput | Prisma.PostWhereInput[] - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringNullableFilter<"Post"> | string | null - published?: Prisma.BoolFilter<"Post"> | boolean - viewCount?: Prisma.IntFilter<"Post"> | number - authorId?: Prisma.IntNullableFilter<"Post"> | number | null - author?: Prisma.XOR | null -}, "id"> - -export type PostOrderByWithAggregationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrderInput | Prisma.SortOrder - published?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.PostCountOrderByAggregateInput - _avg?: Prisma.PostAvgOrderByAggregateInput - _max?: Prisma.PostMaxOrderByAggregateInput - _min?: Prisma.PostMinOrderByAggregateInput - _sum?: Prisma.PostSumOrderByAggregateInput -} - -export type PostScalarWhereWithAggregatesInput = { - AND?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] - OR?: Prisma.PostScalarWhereWithAggregatesInput[] - NOT?: Prisma.PostScalarWhereWithAggregatesInput | Prisma.PostScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"Post"> | number - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Post"> | Date | string - title?: Prisma.StringWithAggregatesFilter<"Post"> | string - content?: Prisma.StringNullableWithAggregatesFilter<"Post"> | string | null - published?: Prisma.BoolWithAggregatesFilter<"Post"> | boolean - viewCount?: Prisma.IntWithAggregatesFilter<"Post"> | number - authorId?: Prisma.IntNullableWithAggregatesFilter<"Post"> | number | null -} - -export type PostCreateInput = { - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number - author?: Prisma.UserCreateNestedOneWithoutPostsInput -} - -export type PostUncheckedCreateInput = { - id?: number - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number - authorId?: number | null -} - -export type PostUpdateInput = { - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number - author?: Prisma.UserUpdateOneWithoutPostsNestedInput -} - -export type PostUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number - authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null -} - -export type PostCreateManyInput = { - id?: number - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number - authorId?: number | null -} - -export type PostUpdateManyMutationInput = { - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type PostUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number - authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null -} - -export type PostListRelationFilter = { - every?: Prisma.PostWhereInput - some?: Prisma.PostWhereInput - none?: Prisma.PostWhereInput -} - -export type PostOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type PostCountOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - published?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrder -} - -export type PostAvgOrderByAggregateInput = { - id?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrder -} - -export type PostMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - published?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrder -} - -export type PostMinOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - content?: Prisma.SortOrder - published?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrder -} - -export type PostSumOrderByAggregateInput = { - id?: Prisma.SortOrder - viewCount?: Prisma.SortOrder - authorId?: Prisma.SortOrder -} - -export type PostCreateNestedManyWithoutAuthorInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] - createMany?: Prisma.PostCreateManyAuthorInputEnvelope - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] -} - -export type PostUncheckedCreateNestedManyWithoutAuthorInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] - createMany?: Prisma.PostCreateManyAuthorInputEnvelope - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] -} - -export type PostUpdateManyWithoutAuthorNestedInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] - upsert?: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput | Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput[] - createMany?: Prisma.PostCreateManyAuthorInputEnvelope - set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - update?: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput | Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput[] - updateMany?: Prisma.PostUpdateManyWithWhereWithoutAuthorInput | Prisma.PostUpdateManyWithWhereWithoutAuthorInput[] - deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] -} - -export type PostUncheckedUpdateManyWithoutAuthorNestedInput = { - create?: Prisma.XOR | Prisma.PostCreateWithoutAuthorInput[] | Prisma.PostUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.PostCreateOrConnectWithoutAuthorInput | Prisma.PostCreateOrConnectWithoutAuthorInput[] - upsert?: Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput | Prisma.PostUpsertWithWhereUniqueWithoutAuthorInput[] - createMany?: Prisma.PostCreateManyAuthorInputEnvelope - set?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - disconnect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - delete?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - connect?: Prisma.PostWhereUniqueInput | Prisma.PostWhereUniqueInput[] - update?: Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput | Prisma.PostUpdateWithWhereUniqueWithoutAuthorInput[] - updateMany?: Prisma.PostUpdateManyWithWhereWithoutAuthorInput | Prisma.PostUpdateManyWithWhereWithoutAuthorInput[] - deleteMany?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - -export type BoolFieldUpdateOperationsInput = { - set?: boolean -} - -export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type PostCreateWithoutAuthorInput = { - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number -} - -export type PostUncheckedCreateWithoutAuthorInput = { - id?: number - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number -} - -export type PostCreateOrConnectWithoutAuthorInput = { - where: Prisma.PostWhereUniqueInput - create: Prisma.XOR -} - -export type PostCreateManyAuthorInputEnvelope = { - data: Prisma.PostCreateManyAuthorInput | Prisma.PostCreateManyAuthorInput[] - skipDuplicates?: boolean -} - -export type PostUpsertWithWhereUniqueWithoutAuthorInput = { - where: Prisma.PostWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type PostUpdateWithWhereUniqueWithoutAuthorInput = { - where: Prisma.PostWhereUniqueInput - data: Prisma.XOR -} - -export type PostUpdateManyWithWhereWithoutAuthorInput = { - where: Prisma.PostScalarWhereInput - data: Prisma.XOR -} - -export type PostScalarWhereInput = { - AND?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] - OR?: Prisma.PostScalarWhereInput[] - NOT?: Prisma.PostScalarWhereInput | Prisma.PostScalarWhereInput[] - id?: Prisma.IntFilter<"Post"> | number - createdAt?: Prisma.DateTimeFilter<"Post"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Post"> | Date | string - title?: Prisma.StringFilter<"Post"> | string - content?: Prisma.StringNullableFilter<"Post"> | string | null - published?: Prisma.BoolFilter<"Post"> | boolean - viewCount?: Prisma.IntFilter<"Post"> | number - authorId?: Prisma.IntNullableFilter<"Post"> | number | null -} - -export type PostCreateManyAuthorInput = { - id?: number - createdAt?: Date | string - updatedAt?: Date | string - title: string - content?: string | null - published?: boolean - viewCount?: number -} - -export type PostUpdateWithoutAuthorInput = { - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type PostUncheckedUpdateWithoutAuthorInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type PostUncheckedUpdateManyWithoutAuthorInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - published?: Prisma.BoolFieldUpdateOperationsInput | boolean - viewCount?: Prisma.IntFieldUpdateOperationsInput | number -} - - - -export type PostSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - content?: boolean - published?: boolean - viewCount?: boolean - authorId?: boolean - author?: boolean | Prisma.Post$authorArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - content?: boolean - published?: boolean - viewCount?: boolean - authorId?: boolean - author?: boolean | Prisma.Post$authorArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - content?: boolean - published?: boolean - viewCount?: boolean - authorId?: boolean - author?: boolean | Prisma.Post$authorArgs -}, ExtArgs["result"]["post"]> - -export type PostSelectScalar = { - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - content?: boolean - published?: boolean - viewCount?: boolean - authorId?: boolean -} - -export type PostOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "title" | "content" | "published" | "viewCount" | "authorId", ExtArgs["result"]["post"]> -export type PostInclude = { - author?: boolean | Prisma.Post$authorArgs -} -export type PostIncludeCreateManyAndReturn = { - author?: boolean | Prisma.Post$authorArgs -} -export type PostIncludeUpdateManyAndReturn = { - author?: boolean | Prisma.Post$authorArgs -} - -export type $PostPayload = { - name: "Post" - objects: { - author: Prisma.$UserPayload | null - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - createdAt: Date - updatedAt: Date - title: string - content: string | null - published: boolean - viewCount: number - authorId: number | null - }, ExtArgs["result"]["post"]> - composites: {} -} - -export type PostGetPayload = runtime.Types.Result.GetResult - -export type PostCountArgs = - Omit & { - select?: PostCountAggregateInputType | true - } - -export interface PostDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Post'], meta: { name: 'Post' } } - /** - * Find zero or one Post that matches the filter. - * @param {PostFindUniqueArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Post that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Post that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostFindFirstArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Post that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post - * @example - * // Get one Post - * const post = await prisma.post.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Posts that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Posts - * const posts = await prisma.post.findMany() - * - * // Get first 10 Posts - * const posts = await prisma.post.findMany({ take: 10 }) - * - * // Only select the `id` - * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Post. - * @param {PostCreateArgs} args - Arguments to create a Post. - * @example - * // Create one Post - * const Post = await prisma.post.create({ - * data: { - * // ... data to create a Post - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Posts. - * @param {PostCreateManyArgs} args - Arguments to create many Posts. - * @example - * // Create many Posts - * const post = await prisma.post.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Posts and returns the data saved in the database. - * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts. - * @example - * // Create many Posts - * const post = await prisma.post.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Posts and only return the `id` - * const postWithIdOnly = await prisma.post.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Post. - * @param {PostDeleteArgs} args - Arguments to delete one Post. - * @example - * // Delete one Post - * const Post = await prisma.post.delete({ - * where: { - * // ... filter to delete one Post - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Post. - * @param {PostUpdateArgs} args - Arguments to update one Post. - * @example - * // Update one Post - * const post = await prisma.post.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Posts. - * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete. - * @example - * // Delete a few Posts - * const { count } = await prisma.post.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Posts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Posts - * const post = await prisma.post.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Posts and returns the data updated in the database. - * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts. - * @example - * // Update many Posts - * const post = await prisma.post.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Posts and only return the `id` - * const postWithIdOnly = await prisma.post.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Post. - * @param {PostUpsertArgs} args - Arguments to update or create a Post. - * @example - * // Update or create a Post - * const post = await prisma.post.upsert({ - * create: { - * // ... data to create a Post - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Post we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PostClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Posts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostCountArgs} args - Arguments to filter Posts to count. - * @example - * // Count the number of Posts - * const count = await prisma.post.count({ - * where: { - * // ... the filter for the Posts we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Post. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Post. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {PostGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends PostGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: PostGroupByArgs['orderBy'] } - : { orderBy?: PostGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPostGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Post model - */ -readonly fields: PostFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Post. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__PostClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - author = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Post model - */ -export interface PostFieldRefs { - readonly id: Prisma.FieldRef<"Post", 'Int'> - readonly createdAt: Prisma.FieldRef<"Post", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Post", 'DateTime'> - readonly title: Prisma.FieldRef<"Post", 'String'> - readonly content: Prisma.FieldRef<"Post", 'String'> - readonly published: Prisma.FieldRef<"Post", 'Boolean'> - readonly viewCount: Prisma.FieldRef<"Post", 'Int'> - readonly authorId: Prisma.FieldRef<"Post", 'Int'> -} - - -// Custom InputTypes -/** - * Post findUnique - */ -export type PostFindUniqueArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post findUniqueOrThrow - */ -export type PostFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post findFirst - */ -export type PostFindFirstArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Posts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Posts. - */ - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post findFirstOrThrow - */ -export type PostFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Post to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Posts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Posts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Posts. - */ - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post findMany - */ -export type PostFindManyArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter, which Posts to fetch. - */ - where?: Prisma.PostWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Posts to fetch. - */ - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Posts. - */ - cursor?: Prisma.PostWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Posts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Posts. - */ - skip?: number - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * Post create - */ -export type PostCreateArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The data needed to create a Post. - */ - data: Prisma.XOR -} - -/** - * Post createMany - */ -export type PostCreateManyArgs = { - /** - * The data used to create many Posts. - */ - data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Post createManyAndReturn - */ -export type PostCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * The data used to create many Posts. - */ - data: Prisma.PostCreateManyInput | Prisma.PostCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostIncludeCreateManyAndReturn | null -} - -/** - * Post update - */ -export type PostUpdateArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The data needed to update a Post. - */ - data: Prisma.XOR - /** - * Choose, which Post to update. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post updateMany - */ -export type PostUpdateManyArgs = { - /** - * The data used to update Posts. - */ - data: Prisma.XOR - /** - * Filter which Posts to update - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to update. - */ - limit?: number -} - -/** - * Post updateManyAndReturn - */ -export type PostUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * The data used to update Posts. - */ - data: Prisma.XOR - /** - * Filter which Posts to update - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostIncludeUpdateManyAndReturn | null -} - -/** - * Post upsert - */ -export type PostUpsertArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * The filter to search for the Post to update in case it exists. - */ - where: Prisma.PostWhereUniqueInput - /** - * In case the Post found by the `where` argument doesn't exist, create a new Post with this data. - */ - create: Prisma.XOR - /** - * In case the Post was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Post delete - */ -export type PostDeleteArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - /** - * Filter which Post to delete. - */ - where: Prisma.PostWhereUniqueInput -} - -/** - * Post deleteMany - */ -export type PostDeleteManyArgs = { - /** - * Filter which Posts to delete - */ - where?: Prisma.PostWhereInput - /** - * Limit how many Posts to delete. - */ - limit?: number -} - -/** - * Post.author - */ -export type Post$authorArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - where?: Prisma.UserWhereInput -} - -/** - * Post without action - */ -export type PostDefaultArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null -} diff --git a/orm/graphql-gqloom/src/generated/prisma/models/User.ts b/orm/graphql-gqloom/src/generated/prisma/models/User.ts deleted file mode 100644 index 0fa4cd3e04b3..000000000000 --- a/orm/graphql-gqloom/src/generated/prisma/models/User.ts +++ /dev/null @@ -1,1314 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// @ts-nocheck -/* - * This file exports the `User` model and its related types. - * - * ๐ŸŸข You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model User - * - */ -export type UserModel = runtime.Types.Result.DefaultSelection - -export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _avg: UserAvgAggregateOutputType | null - _sum: UserSumAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -export type UserAvgAggregateOutputType = { - id: number | null -} - -export type UserSumAggregateOutputType = { - id: number | null -} - -export type UserMinAggregateOutputType = { - id: number | null - email: string | null - name: string | null -} - -export type UserMaxAggregateOutputType = { - id: number | null - email: string | null - name: string | null -} - -export type UserCountAggregateOutputType = { - id: number - email: number - name: number - _all: number -} - - -export type UserAvgAggregateInputType = { - id?: true -} - -export type UserSumAggregateInputType = { - id?: true -} - -export type UserMinAggregateInputType = { - id?: true - email?: true - name?: true -} - -export type UserMaxAggregateInputType = { - id?: true - email?: true - name?: true -} - -export type UserCountAggregateInputType = { - id?: true - email?: true - name?: true - _all?: true -} - -export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: UserAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: UserSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType -} - -export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type UserGroupByArgs = { - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] - by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum - having?: Prisma.UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _avg?: UserAvgAggregateInputType - _sum?: UserSumAggregateInputType - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType -} - -export type UserGroupByOutputType = { - id: number - email: string - name: string | null - _count: UserCountAggregateOutputType | null - _avg: UserAvgAggregateOutputType | null - _sum: UserSumAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type UserWhereInput = { - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - id?: Prisma.IntFilter<"User"> | number - email?: Prisma.StringFilter<"User"> | string - name?: Prisma.StringNullableFilter<"User"> | string | null - posts?: Prisma.PostListRelationFilter -} - -export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - posts?: Prisma.PostOrderByRelationAggregateInput -} - -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: number - email?: string - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - name?: Prisma.StringNullableFilter<"User"> | string | null - posts?: Prisma.PostListRelationFilter -}, "id" | "email"> - -export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.UserCountOrderByAggregateInput - _avg?: Prisma.UserAvgOrderByAggregateInput - _max?: Prisma.UserMaxOrderByAggregateInput - _min?: Prisma.UserMinOrderByAggregateInput - _sum?: Prisma.UserSumOrderByAggregateInput -} - -export type UserScalarWhereWithAggregatesInput = { - AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - OR?: Prisma.UserScalarWhereWithAggregatesInput[] - NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"User"> | number - email?: Prisma.StringWithAggregatesFilter<"User"> | string - name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null -} - -export type UserCreateInput = { - email: string - name?: string | null - posts?: Prisma.PostCreateNestedManyWithoutAuthorInput -} - -export type UserUncheckedCreateInput = { - id?: number - email: string - name?: string | null - posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput -} - -export type UserUpdateInput = { - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput -} - -export type UserUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput -} - -export type UserCreateManyInput = { - id?: number - email: string - name?: string | null -} - -export type UserUpdateManyMutationInput = { - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type UserUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder -} - -export type UserAvgOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder -} - -export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder -} - -export type UserSumOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type UserNullableScalarRelationFilter = { - is?: Prisma.UserWhereInput | null - isNot?: Prisma.UserWhereInput | null -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - -export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type UserCreateNestedOneWithoutPostsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneWithoutPostsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput - upsert?: Prisma.UserUpsertWithoutPostsInput - disconnect?: Prisma.UserWhereInput | boolean - delete?: Prisma.UserWhereInput | boolean - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutPostsInput> -} - -export type UserCreateWithoutPostsInput = { - email: string - name?: string | null -} - -export type UserUncheckedCreateWithoutPostsInput = { - id?: number - email: string - name?: string | null -} - -export type UserCreateOrConnectWithoutPostsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutPostsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutPostsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutPostsInput = { - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type UserUncheckedUpdateWithoutPostsInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - - -/** - * Count Type UserCountOutputType - */ - -export type UserCountOutputType = { - posts: number -} - -export type UserCountOutputTypeSelect = { - posts?: boolean | UserCountOutputTypeCountPostsArgs -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: Prisma.UserCountOutputTypeSelect | null -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountPostsArgs = { - where?: Prisma.PostWhereInput -} - - -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean - posts?: boolean | Prisma.User$postsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectScalar = { - id?: boolean - email?: boolean - name?: boolean -} - -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "name", ExtArgs["result"]["user"]> -export type UserInclude = { - posts?: boolean | Prisma.User$postsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -} -export type UserIncludeCreateManyAndReturn = {} -export type UserIncludeUpdateManyAndReturn = {} - -export type $UserPayload = { - name: "User" - objects: { - posts: Prisma.$PostPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - email: string - name: string | null - }, ExtArgs["result"]["user"]> - composites: {} -} - -export type UserGetPayload = runtime.Types.Result.GetResult - -export type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - -export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users and returns the data updated in the database. - * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. - * @example - * // Update many Users - * const user = await prisma.user.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Users and only return the `id` - * const userWithIdOnly = await prisma.user.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the User model - */ -readonly fields: UserFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - posts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the User model - */ -export interface UserFieldRefs { - readonly id: Prisma.FieldRef<"User", 'Int'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly name: Prisma.FieldRef<"User", 'String'> -} - - -// Custom InputTypes -/** - * User findUnique - */ -export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findUniqueOrThrow - */ -export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findFirst - */ -export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findFirstOrThrow - */ -export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findMany - */ -export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which Users to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `ยฑn` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User create - */ -export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to create a User. - */ - data: Prisma.XOR -} - -/** - * User createMany - */ -export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * User createManyAndReturn - */ -export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectCreateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * User update - */ -export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to update a User. - */ - data: Prisma.XOR - /** - * Choose, which User to update. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User updateMany - */ -export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number -} - -/** - * User updateManyAndReturn - */ -export type UserUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number -} - -/** - * User upsert - */ -export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The filter to search for the User to update in case it exists. - */ - where: Prisma.UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: Prisma.XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * User delete - */ -export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter which User to delete. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User deleteMany - */ -export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to delete. - */ - limit?: number -} - -/** - * User.posts - */ -export type User$postsArgs = { - /** - * Select specific fields to fetch from the Post - */ - select?: Prisma.PostSelect | null - /** - * Omit specific fields from the Post - */ - omit?: Prisma.PostOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.PostInclude | null - where?: Prisma.PostWhereInput - orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[] - cursor?: Prisma.PostWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[] -} - -/** - * User without action - */ -export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null -} From 370ee85776b3a8b7606388eaa3e3747b593c5d71 Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 23:45:19 +0800 Subject: [PATCH 07/19] chore: add .gitignore file to exclude node_modules, dist, environment files, and generated source code --- orm/graphql-gqloom/.gitignore | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 orm/graphql-gqloom/.gitignore diff --git a/orm/graphql-gqloom/.gitignore b/orm/graphql-gqloom/.gitignore new file mode 100644 index 000000000000..da5b597e73cc --- /dev/null +++ b/orm/graphql-gqloom/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +dist/ +*.env* +src/generated \ No newline at end of file From e55507742f3d0d6aed332290bfa167994c8ef974 Mon Sep 17 00:00:00 2001 From: xcfox Date: Sun, 19 Oct 2025 23:55:49 +0800 Subject: [PATCH 08/19] feat: add test setup script for GraphQL GQloom integration with Prisma --- .github/tests/orm/graphql-gqloom/run.sh | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100755 .github/tests/orm/graphql-gqloom/run.sh diff --git a/.github/tests/orm/graphql-gqloom/run.sh b/.github/tests/orm/graphql-gqloom/run.sh new file mode 100755 index 000000000000..a59ac79c3b78 --- /dev/null +++ b/.github/tests/orm/graphql-gqloom/run.sh @@ -0,0 +1,74 @@ +#!/bin/bash + +set -eu + +echo "๐Ÿ” Starting test setup for graphql-gqloom..." + +echo "๐Ÿ“‚ Current working directory before REPO_ROOT: $(pwd)" +echo "๐Ÿ“ Listing contents:" +ls -la + +REPO_ROOT="$(git rev-parse --show-toplevel)" +echo "๐Ÿ“Œ Detected repo root: $REPO_ROOT" + +cd "$REPO_ROOT/orm/graphql-gqloom" +echo "๐Ÿ“‚ Changed directory to: $(pwd)" + +echo "๐Ÿ“ฆ Installing test deps..." +npm install + +# Go to Node script dir and install its deps +NODE_SCRIPT_DIR="../../.github/get-ppg-dev" +pushd "$NODE_SCRIPT_DIR" > /dev/null +npm install + +# Start Prisma Dev server +LOG_FILE="./ppg-dev-url.log" +rm -f "$LOG_FILE" +touch "$LOG_FILE" + +echo "๐Ÿš€ Starting Prisma Dev in background..." +node index.js >"$LOG_FILE" & +NODE_PID=$! + +# Wait for DATABASE_URL +echo "๐Ÿ”Ž Waiting for Prisma Dev to emit DATABASE_URL..." +MAX_WAIT=60 +WAITED=0 +until grep -q '^prisma+postgres://' "$LOG_FILE"; do + sleep 1 + WAITED=$((WAITED + 1)) + if [ "$WAITED" -ge "$MAX_WAIT" ]; then + echo "โŒ Timeout waiting for DATABASE_URL" + cat "$LOG_FILE" + kill "$NODE_PID" || true + exit 1 + fi +done + +DB_URL=$(grep '^prisma+postgres://' "$LOG_FILE" | tail -1) +export DATABASE_URL="$DB_URL" +echo "โœ… DATABASE_URL: $DATABASE_URL" + +popd > /dev/null # Back to orm/graphql-gqloom + +# Run migrations and seed +npx prisma migrate reset --force --skip-seed +npx prisma migrate dev --name init +npx prisma db seed + +# Start the app +npm run dev & +pid=$! + +sleep 20 + +# Run GraphQL Postman collection +echo "๐Ÿงช Running Postman tests..." +npx newman run "$REPO_ROOT/.github/tests/postman_collections/graphql.json" --bail + +# Cleanup +echo "๐Ÿ›‘ Shutting down app (PID $pid) and Prisma Dev (PID $NODE_PID)..." +kill "$pid" +kill "$NODE_PID" +wait "$NODE_PID" || true From ad6cabc555d8e4fc83fc0083a48cbe481be400a6 Mon Sep 17 00:00:00 2001 From: xcfox Date: Mon, 20 Oct 2025 00:05:38 +0800 Subject: [PATCH 09/19] docs: update GQLoom description in README to clarify its Code-First approach and TypeScript integration --- orm/graphql-gqloom/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/graphql-gqloom/README.md b/orm/graphql-gqloom/README.md index d3636a065e00..7170185a4917 100644 --- a/orm/graphql-gqloom/README.md +++ b/orm/graphql-gqloom/README.md @@ -3,7 +3,7 @@ This example shows how to implement a **GraphQL server with TypeScript** with the following stack: - [**GraphQL Yoga**](https://the-guild.dev/graphql/yoga-server): GraphQL server -- [**GQLoom**](https://gqloom.dev/): GraphQL schema library that weaves runtime types, validation libraries (Zod, Valibot, Yup), and ORMs (Prisma, Drizzle, MikroORM) into GraphQL schemas +- [**GQLoom**](https://gqloom.dev/): Code-First GraphQL Schema library that weaves TypeScript runtime types into GraphQL schemas - [**Zod**](https://zod.dev/): Schema validation library for input types - [**Prisma Client**](https://www.prisma.io/docs/concepts/components/prisma-client): Databases access (ORM) - [**Prisma Migrate**](https://www.prisma.io/docs/concepts/components/prisma-migrate): Database migrations From 91249edb8be53139acf2e71d4ba70f3b2b0fd6b5 Mon Sep 17 00:00:00 2001 From: xcfox Date: Mon, 20 Oct 2025 00:12:14 +0800 Subject: [PATCH 10/19] feat: update TypeScript configuration and enhance resolvers with selected fields for Post and User models --- orm/graphql-gqloom/src/resolvers/post.ts | 8 ++++++++ orm/graphql-gqloom/src/resolvers/user.ts | 2 ++ orm/graphql-gqloom/src/server.ts | 2 ++ orm/graphql-gqloom/tsconfig.json | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/orm/graphql-gqloom/src/resolvers/post.ts b/orm/graphql-gqloom/src/resolvers/post.ts index 54c73d884f05..0e4c4b7a6270 100644 --- a/orm/graphql-gqloom/src/resolvers/post.ts +++ b/orm/graphql-gqloom/src/resolvers/post.ts @@ -2,6 +2,7 @@ import { field, mutation, query, resolver } from '@gqloom/core' import * as z from 'zod' import { Post } from '../generated/gqloom' import { PrismaResolverFactory } from '@gqloom/prisma' +import { useSelectedFields } from '@gqloom/prisma/context' import { prisma } from '../db' export const PostCreateInput = z.object({ @@ -25,6 +26,7 @@ export const postResolver = resolver.of(Post, { }) .resolve(({ id }) => prisma.post.findUnique({ + select: useSelectedFields(Post), where: { id }, }), ), @@ -63,6 +65,7 @@ export const postResolver = resolver.of(Post, { : {} return prisma.post.findMany({ + select: useSelectedFields(Post), where: { ...or, published: true }, take, skip, @@ -87,6 +90,7 @@ export const postResolver = resolver.of(Post, { }) .resolve(({ userUniqueInput }) => { return prisma.post.findMany({ + select: useSelectedFields(Post), where: { published: false, author: { @@ -104,6 +108,7 @@ export const postResolver = resolver.of(Post, { }) .resolve(({ data, authorEmail }) => { return prisma.post.create({ + select: useSelectedFields(Post), data: { title: data.title, content: data.content, @@ -127,6 +132,7 @@ export const postResolver = resolver.of(Post, { }) console.log(postPublished) return prisma.post.update({ + select: useSelectedFields(Post), where: { id }, data: { published: !postPublished?.published }, }) @@ -138,6 +144,7 @@ export const postResolver = resolver.of(Post, { }) .resolve(({ id }) => { return prisma.post.update({ + select: useSelectedFields(Post), where: { id }, data: { viewCount: { increment: 1 } }, }) @@ -149,6 +156,7 @@ export const postResolver = resolver.of(Post, { }) .resolve(({ id }) => { return prisma.post.delete({ + select: useSelectedFields(Post), where: { id }, }) }), diff --git a/orm/graphql-gqloom/src/resolvers/user.ts b/orm/graphql-gqloom/src/resolvers/user.ts index ba2754c783df..784d9868fa5e 100644 --- a/orm/graphql-gqloom/src/resolvers/user.ts +++ b/orm/graphql-gqloom/src/resolvers/user.ts @@ -1,5 +1,6 @@ import { mutation, resolver } from '@gqloom/core' import { PrismaResolverFactory } from '@gqloom/prisma' +import { useSelectedFields } from '@gqloom/prisma/context' import * as z from 'zod' import { User } from '../generated/gqloom' import { prisma } from '../db' @@ -22,6 +23,7 @@ export const userResolver = resolver.of(User, { }) .resolve(({ data }) => { return prisma.user.create({ + select: useSelectedFields(User), data: { email: data.email, name: data.name, diff --git a/orm/graphql-gqloom/src/server.ts b/orm/graphql-gqloom/src/server.ts index 0c94fb59e527..a8e91691f840 100644 --- a/orm/graphql-gqloom/src/server.ts +++ b/orm/graphql-gqloom/src/server.ts @@ -2,6 +2,7 @@ import * as fs from 'node:fs' import { createServer } from 'node:http' import path from 'node:path' import { weave } from '@gqloom/core' +import { asyncContextProvider } from '@gqloom/core/context' import { PrismaWeaver } from '@gqloom/prisma' import { ZodWeaver } from '@gqloom/zod' import { lexicographicSortSchema, printSchema } from 'graphql' @@ -20,6 +21,7 @@ const schema = weave( } }, }), + asyncContextProvider, userResolver, postResolver, ) diff --git a/orm/graphql-gqloom/tsconfig.json b/orm/graphql-gqloom/tsconfig.json index b62d4ebd39d8..de052a6133c0 100644 --- a/orm/graphql-gqloom/tsconfig.json +++ b/orm/graphql-gqloom/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "strict": true, "esModuleInterop": true, "resolveJsonModule": true From 527b1934cd14b6961d2a91c62be92232cced8b7a Mon Sep 17 00:00:00 2001 From: xcfox Date: Mon, 20 Oct 2025 00:37:46 +0800 Subject: [PATCH 11/19] fix: change post and user ID types from Float to Int in GraphQL schema and resolvers --- orm/graphql-gqloom/schema.graphql | 10 +++++----- orm/graphql-gqloom/src/resolvers/post.ts | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/orm/graphql-gqloom/schema.graphql b/orm/graphql-gqloom/schema.graphql index 51a338ccc7af..811dae81a539 100644 --- a/orm/graphql-gqloom/schema.graphql +++ b/orm/graphql-gqloom/schema.graphql @@ -52,10 +52,10 @@ input IntNullableFilter { type Mutation { createDraft(authorEmail: String!, data: PostCreateInput!): Post! - deletePost(id: Float!): Post! - incrementPostViewCount(id: Float!): Post! + deletePost(id: Int!): Post! + incrementPostViewCount(id: Int!): Post! signupUser(data: SignupUserDataInput!): User! - togglePublishPost(id: Float!): Post! + togglePublishPost(id: Int!): Post! } input NestedBoolFilter { @@ -173,7 +173,7 @@ input PostWhereInput { type Query { draftsByUser(userUniqueInput: UserUniqueInput!): [Post!]! feed(orderBy: FeedOrderByInput, searchString: String, skip: Float, take: Float): [Post!]! - postById(id: Float!): Post + postById(id: Int!): Post users(cursor: UserWhereUniqueInput, distinct: [UserScalarFieldEnum!], orderBy: [UserOrderByWithRelationInput!], skip: Int, take: Int, where: UserWhereInput): [User!]! } @@ -255,7 +255,7 @@ enum UserScalarFieldEnum { input UserUniqueInput { email: String - id: Float + id: Int } input UserWhereInput { diff --git a/orm/graphql-gqloom/src/resolvers/post.ts b/orm/graphql-gqloom/src/resolvers/post.ts index 0e4c4b7a6270..106ac5e8fae2 100644 --- a/orm/graphql-gqloom/src/resolvers/post.ts +++ b/orm/graphql-gqloom/src/resolvers/post.ts @@ -22,7 +22,7 @@ export const postResolver = resolver.of(Post, { postById: query(Post.nullable()) .input({ - id: z.number().int(), + id: z.int(), }) .resolve(({ id }) => prisma.post.findUnique({ @@ -78,7 +78,6 @@ export const postResolver = resolver.of(Post, { userUniqueInput: z.object({ __typename: z.literal('UserUniqueInput').nullish(), id: z - .number() .int() .nullish() .transform((x) => x ?? undefined), @@ -122,7 +121,7 @@ export const postResolver = resolver.of(Post, { togglePublishPost: mutation(Post) .input({ - id: z.number().int(), + id: z.int(), }) .resolve(async ({ id }) => { // Toggling become simpler once this bug is resolved: https://github.com/prisma/prisma/issues/16715 @@ -140,7 +139,7 @@ export const postResolver = resolver.of(Post, { incrementPostViewCount: mutation(Post) .input({ - id: z.number().int(), + id: z.int(), }) .resolve(({ id }) => { return prisma.post.update({ @@ -152,7 +151,7 @@ export const postResolver = resolver.of(Post, { deletePost: mutation(Post) .input({ - id: z.number().int(), + id: z.int(), }) .resolve(({ id }) => { return prisma.post.delete({ From b7c28f59b549cf640bea1badae141a7c365cc12c Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:38:16 +0800 Subject: [PATCH 12/19] Update .github/tests/orm/graphql-gqloom/run.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/tests/orm/graphql-gqloom/run.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/tests/orm/graphql-gqloom/run.sh b/.github/tests/orm/graphql-gqloom/run.sh index a59ac79c3b78..d1403e8fa938 100755 --- a/.github/tests/orm/graphql-gqloom/run.sh +++ b/.github/tests/orm/graphql-gqloom/run.sh @@ -61,7 +61,21 @@ npx prisma db seed npm run dev & pid=$! -sleep 20 +# Wait for app to be ready +echo "๐Ÿ”Ž Waiting for app to be ready..." +MAX_WAIT=60 +WAITED=0 +until curl -s http://localhost:4000/ > /dev/null 2>&1; do + sleep 1 + WAITED=$((WAITED + 1)) + if [ "$WAITED" -ge "$MAX_WAIT" ]; then + echo "โŒ Timeout waiting for app to start" + kill "$pid" 2>/dev/null || true + kill "$NODE_PID" 2>/dev/null || true + exit 1 + fi +done +echo "โœ… App is ready" # Run GraphQL Postman collection echo "๐Ÿงช Running Postman tests..." From 6511211ecda51ca29db3511fd3e217553eca2a21 Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:39:01 +0800 Subject: [PATCH 13/19] Update orm/graphql-gqloom/src/resolvers/post.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- orm/graphql-gqloom/src/resolvers/post.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/orm/graphql-gqloom/src/resolvers/post.ts b/orm/graphql-gqloom/src/resolvers/post.ts index 106ac5e8fae2..7c58a6d3fd90 100644 --- a/orm/graphql-gqloom/src/resolvers/post.ts +++ b/orm/graphql-gqloom/src/resolvers/post.ts @@ -121,15 +121,17 @@ export const postResolver = resolver.of(Post, { togglePublishPost: mutation(Post) .input({ - id: z.int(), + id: z.number().int(), }) .resolve(async ({ id }) => { - // Toggling become simpler once this bug is resolved: https://github.com/prisma/prisma/issues/16715 + // TODO: Simplify once https://github.com/prisma/prisma/issues/16715 is fixed const postPublished = await prisma.post.findUnique({ where: { id }, select: { published: true }, }) - console.log(postPublished) + if (!postPublished) { + throw new Error('Post not found') + } return prisma.post.update({ select: useSelectedFields(Post), where: { id }, From 2e2a5a58300daa5874f11a0ca4d00ddfdccea7ef Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:39:37 +0800 Subject: [PATCH 14/19] Update orm/graphql-gqloom/src/server.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- orm/graphql-gqloom/src/server.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/orm/graphql-gqloom/src/server.ts b/orm/graphql-gqloom/src/server.ts index a8e91691f840..993c341341bf 100644 --- a/orm/graphql-gqloom/src/server.ts +++ b/orm/graphql-gqloom/src/server.ts @@ -25,10 +25,16 @@ const schema = weave( userResolver, postResolver, ) -fs.writeFileSync( - path.join(__dirname, '../schema.graphql'), - printSchema(lexicographicSortSchema(schema)), -) +try { + fs.writeFileSync( + path.join(__dirname, '../schema.graphql'), + printSchema(lexicographicSortSchema(schema)), + ) + console.info('โœ… GraphQL schema written to schema.graphql') +} catch (error) { + console.error('โš ๏ธ Failed to write schema file:', error) + // Non-fatal: server can still run without the file +} const yoga = createYoga({ graphqlEndpoint: '/', From 9d3eda5b932735c3dcb00de875f7c0a57e6290c5 Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:40:38 +0800 Subject: [PATCH 15/19] Update orm/graphql-gqloom/src/resolvers/user.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- orm/graphql-gqloom/src/resolvers/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/graphql-gqloom/src/resolvers/user.ts b/orm/graphql-gqloom/src/resolvers/user.ts index 784d9868fa5e..611816174abc 100644 --- a/orm/graphql-gqloom/src/resolvers/user.ts +++ b/orm/graphql-gqloom/src/resolvers/user.ts @@ -28,7 +28,7 @@ export const userResolver = resolver.of(User, { email: data.email, name: data.name, posts: { - create: data.posts, + create: data.posts.map(({ __typename, ...post }) => post), }, }, }) From 6ff484660cf662a96025eb93e796aa600d04f5f8 Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:55:37 +0800 Subject: [PATCH 16/19] Update orm/graphql-gqloom/src/db.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- orm/graphql-gqloom/src/db.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orm/graphql-gqloom/src/db.ts b/orm/graphql-gqloom/src/db.ts index 68beab5c2754..c9f23d5a7d89 100644 --- a/orm/graphql-gqloom/src/db.ts +++ b/orm/graphql-gqloom/src/db.ts @@ -2,6 +2,10 @@ import { PrismaPg } from '@prisma/adapter-pg' import { PrismaClient } from './generated/prisma/client' import { withAccelerate } from '@prisma/extension-accelerate' +if (!process.env.DATABASE_URL) { + throw new Error('DATABASE_URL environment variable is not set') +} + const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL, }) From 60c96efb9e176db82c160722ace0964b5a15009e Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:56:02 +0800 Subject: [PATCH 17/19] Update .github/tests/orm/graphql-gqloom/run.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/tests/orm/graphql-gqloom/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/tests/orm/graphql-gqloom/run.sh b/.github/tests/orm/graphql-gqloom/run.sh index d1403e8fa938..a6a2f7270fe1 100755 --- a/.github/tests/orm/graphql-gqloom/run.sh +++ b/.github/tests/orm/graphql-gqloom/run.sh @@ -83,6 +83,7 @@ npx newman run "$REPO_ROOT/.github/tests/postman_collections/graphql.json" --bai # Cleanup echo "๐Ÿ›‘ Shutting down app (PID $pid) and Prisma Dev (PID $NODE_PID)..." -kill "$pid" +kill "$pid" 2>/dev/null || true kill "$NODE_PID" -wait "$NODE_PID" || true +wait "$NODE_PID" 2>/dev/null || true +wait "$pid" 2>/dev/null || true From f7fc824d065db8da207cf52546d3adc2e4a78105 Mon Sep 17 00:00:00 2001 From: xcfox <809067559@qq.com> Date: Mon, 20 Oct 2025 15:58:04 +0800 Subject: [PATCH 18/19] Update orm/graphql-gqloom/src/resolvers/post.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- orm/graphql-gqloom/src/resolvers/post.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/orm/graphql-gqloom/src/resolvers/post.ts b/orm/graphql-gqloom/src/resolvers/post.ts index 7c58a6d3fd90..7d9c7e4ad6c9 100644 --- a/orm/graphql-gqloom/src/resolvers/post.ts +++ b/orm/graphql-gqloom/src/resolvers/post.ts @@ -72,12 +72,12 @@ export const postResolver = resolver.of(Post, { orderBy, }) }), - draftsByUser: query(Post.list()) .input({ userUniqueInput: z.object({ __typename: z.literal('UserUniqueInput').nullish(), id: z + .number() .int() .nullish() .transform((x) => x ?? undefined), @@ -93,13 +93,14 @@ export const postResolver = resolver.of(Post, { where: { published: false, author: { - id: userUniqueInput.id, - email: userUniqueInput.email, + is: { + id: userUniqueInput.id, + email: userUniqueInput.email, + }, }, }, }) }), - createDraft: mutation(Post) .input({ data: PostCreateInput, From 8e2afa1a6a322c779ee13bf78738b6128622323d Mon Sep 17 00:00:00 2001 From: xcfox Date: Mon, 20 Oct 2025 15:58:35 +0800 Subject: [PATCH 19/19] Refactor seed.ts to use centralized Prisma client instance --- orm/graphql-gqloom/prisma/seed.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/orm/graphql-gqloom/prisma/seed.ts b/orm/graphql-gqloom/prisma/seed.ts index d07efcfb2abc..a9240c2ac3b3 100644 --- a/orm/graphql-gqloom/prisma/seed.ts +++ b/orm/graphql-gqloom/prisma/seed.ts @@ -1,11 +1,7 @@ import { PrismaPg } from '@prisma/adapter-pg' import { type Prisma, PrismaClient } from '../src/generated/prisma/client' import { withAccelerate } from '@prisma/extension-accelerate' - -const adapter = new PrismaPg({ - connectionString: process.env.DATABASE_URL, -}) -const prisma = new PrismaClient({ adapter }).$extends(withAccelerate()) +import { prisma } from '../src/db' const userData: Prisma.UserCreateInput[] = [ {