From 213c8ad2be14fd958d0ed5c5be5c871cbb1e0e12 Mon Sep 17 00:00:00 2001 From: javan Date: Fri, 21 Feb 2025 19:49:44 +0300 Subject: [PATCH 1/2] fix(compatibility): - Optimized enum value processing to match Prisma's expected documentation structure. BREAKING CHANGE: This change ensures that enum values are processed in a way that aligns with Prisma's engine, maintaining consistency in documentation handling and filtering out unnecessary entries.- Added specific handling for `@deprecated` documentation, mapping it to - Updated the `registerEnum` function to properly filter out empty entries in the `valuesMap` based on enum value documentation.- Ensured that enum values without `description` or `deprecationReason` are excluded from the `valuesMap` when registering with `registerEnumType`.the `deprecationReason` field in line with Prisma Engine behavior.- Improved compatibility with Prisma's enum value documentation format by ensuring only relevant metadata is included in the GraphQL schema. --- prisma/schema.prisma | 8 +++++++ src/handlers/register-enum.ts | 44 ++++++++++++++++++++++++++++++----- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 974b7800..a34af201 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -104,11 +104,19 @@ model Comment { articleId String? } +/// user access control enum Role { + /// default user access control USER + /// have full access control + NINGA + /// @deprecated Use USER instead + ADMIN + REVIEWER // no comment and won't show in registerenum valuemaps } model Profile { + /// @deprecated Use new name instead id Int @id @default(autoincrement()) user User @relation(fields: [userId], references: [id]) userId String @unique diff --git a/src/handlers/register-enum.ts b/src/handlers/register-enum.ts index b2649ce0..0b6897dc 100644 --- a/src/handlers/register-enum.ts +++ b/src/handlers/register-enum.ts @@ -4,11 +4,13 @@ import { ImportDeclarationMap } from '../helpers/import-declaration-map'; import { EventArguments, SchemaEnum } from '../types'; export function registerEnum(enumType: SchemaEnum, args: EventArguments) { - const { getSourceFile, enums, config } = args; + const { config, enums, getSourceFile } = args; if (!config.emitBlocks.prismaEnums && !enums[enumType.name]) return; const dataModelEnum = enums[enumType.name]; + const enumTypesData = dataModelEnum?.values || []; + console.log('enumTypesData', enumTypesData); const sourceFile = getSourceFile({ name: enumType.name, type: 'enum', @@ -17,18 +19,48 @@ export function registerEnum(enumType: SchemaEnum, args: EventArguments) { const importDeclarations = new ImportDeclarationMap(); importDeclarations.set('registerEnumType', { - namedImports: [{ name: 'registerEnumType' }], moduleSpecifier: '@nestjs/graphql', + namedImports: [{ name: 'registerEnumType' }], }); + // Create valuesMap based on documentation + const valuesMap = Object.fromEntries( + enumTypesData.map(({ name, documentation }) => { + let entry = {}; + if (documentation) { + if (documentation.startsWith('@deprecated')) { + entry = { + deprecationReason: documentation.slice(11).trim(), // Extract deprecation reason + }; + } else { + entry = { + description: documentation, // Use the documentation as description + }; + } + } + return [name, entry]; // Return entry, even if empty + }), + ); + + // Filter out empty entries (those that don't have description or deprecationReason) + const filteredValuesMap = Object.fromEntries( + Object.entries(valuesMap).filter(([key, value]) => Object.keys(value).length > 0), + ); + + // Format valuesMap for the final output + const formattedValuesMap = JSON.stringify(filteredValuesMap, null, 2).replace( + /"([^"]+)":/g, + '$1:', + ); + const enumStructure: EnumDeclarationStructure = { - kind: StructureKind.Enum, isExported: true, - name: enumType.name, + kind: StructureKind.Enum, members: enumType.values.map(v => ({ - name: v, initializer: JSON.stringify(v), + name: v, })), + name: enumType.name, }; sourceFile.set({ @@ -38,7 +70,7 @@ export function registerEnum(enumType: SchemaEnum, args: EventArguments) { '\n', `registerEnumType(${enumType.name}, { name: '${ enumType.name - }', description: ${JSON.stringify(dataModelEnum?.documentation)} })`, + }', description: ${JSON.stringify(dataModelEnum?.documentation)}, valuesMap: ${formattedValuesMap} })`, ], }); } From 28c2ae9812c3d65d9e09557f3cfed26969fe8a38 Mon Sep 17 00:00:00 2001 From: javan Date: Sat, 10 May 2025 17:04:52 +0300 Subject: [PATCH 2/2] fix: --- .DS_Store | Bin 0 -> 6148 bytes .../article/aggregate-article.output.ts | 21 +- @generated/article/article-aggregate.args.ts | 43 +- .../article/article-avg-aggregate.input.ts | 5 +- .../article/article-avg-aggregate.output.ts | 5 +- .../article-avg-order-by-aggregate.input.ts | 5 +- .../article/article-count-aggregate.input.ts | 45 +- .../article/article-count-aggregate.output.ts | 45 +- .../article-count-order-by-aggregate.input.ts | 41 +- @generated/article/article-count.output.ts | 13 +- ...create-many-author-input-envelope.input.ts | 11 +- .../article-create-many-author.input.ts | 37 +- .../article/article-create-many.input.ts | 41 +- ...create-nested-many-without-author.input.ts | 25 +- ...-nested-many-without-favorited-by.input.ts | 19 +- ...e-create-nested-many-without-tags.input.ts | 19 +- ...reate-nested-one-without-comments.input.ts | 19 +- ...-create-or-connect-without-author.input.ts | 13 +- ...reate-or-connect-without-comments.input.ts | 13 +- ...e-or-connect-without-favorited-by.input.ts | 13 +- ...le-create-or-connect-without-tags.input.ts | 13 +- .../article-create-without-author.input.ts | 53 +- .../article-create-without-comments.input.ts | 53 +- ...ticle-create-without-favorited-by.input.ts | 53 +- .../article-create-without-tags.input.ts | 55 +- @generated/article/article-create.input.ts | 59 +- @generated/article/article-group-by.args.ts | 47 +- @generated/article/article-group-by.output.ts | 61 +- .../article-list-relation-filter.input.ts | 13 +- .../article/article-max-aggregate.input.ts | 41 +- .../article/article-max-aggregate.output.ts | 41 +- .../article-max-order-by-aggregate.input.ts | 41 +- .../article/article-min-aggregate.input.ts | 41 +- .../article/article-min-aggregate.output.ts | 41 +- .../article-min-order-by-aggregate.input.ts | 41 +- ...e-nullable-scalar-relation-filter.input.ts | 9 +- ...ticle-order-by-relation-aggregate.input.ts | 5 +- .../article-order-by-relevance-field.enum.ts | 18 +- .../article-order-by-relevance.input.ts | 13 +- ...article-order-by-with-aggregation.input.ts | 61 +- .../article-order-by-with-relation.input.ts | 67 +-- .../article/article-scalar-field.enum.ts | 26 +- ...icle-scalar-where-with-aggregates.input.ts | 53 +- .../article/article-scalar-where.input.ts | 53 +- .../article/article-sum-aggregate.input.ts | 5 +- .../article/article-sum-aggregate.output.ts | 5 +- .../article-sum-order-by-aggregate.input.ts | 5 +- ...create-nested-many-without-author.input.ts | 25 +- ...-nested-many-without-favorited-by.input.ts | 19 +- ...d-create-nested-many-without-tags.input.ts | 19 +- ...e-unchecked-create-without-author.input.ts | 55 +- ...unchecked-create-without-comments.input.ts | 53 +- ...ecked-create-without-favorited-by.input.ts | 51 +- ...cle-unchecked-create-without-tags.input.ts | 55 +- .../article/article-unchecked-create.input.ts | 59 +- ...update-many-without-author-nested.input.ts | 67 +-- ...hecked-update-many-without-author.input.ts | 37 +- ...-many-without-favorited-by-nested.input.ts | 83 ++- ...-update-many-without-favorited-by.input.ts | 41 +- ...d-update-many-without-tags-nested.input.ts | 61 +- ...nchecked-update-many-without-tags.input.ts | 41 +- .../article-unchecked-update-many.input.ts | 41 +- ...e-unchecked-update-without-author.input.ts | 55 +- ...unchecked-update-without-comments.input.ts | 53 +- ...ecked-update-without-favorited-by.input.ts | 51 +- ...cle-unchecked-update-without-tags.input.ts | 55 +- .../article/article-unchecked-update.input.ts | 59 +- .../article-update-many-mutation.input.ts | 37 +- ...te-many-with-where-without-author.input.ts | 13 +- ...y-with-where-without-favorited-by.input.ts | 13 +- ...date-many-with-where-without-tags.input.ts | 13 +- ...update-many-without-author-nested.input.ts | 67 +-- ...-many-without-favorited-by-nested.input.ts | 83 ++- ...e-update-many-without-tags-nested.input.ts | 61 +- ...pdate-one-without-comments-nested.input.ts | 43 +- ...o-one-with-where-without-comments.input.ts | 13 +- ...-with-where-unique-without-author.input.ts | 13 +- ...where-unique-without-favorited-by.input.ts | 13 +- ...te-with-where-unique-without-tags.input.ts | 13 +- .../article-update-without-author.input.ts | 53 +- .../article-update-without-comments.input.ts | 53 +- ...ticle-update-without-favorited-by.input.ts | 53 +- .../article-update-without-tags.input.ts | 55 +- @generated/article/article-update.input.ts | 59 +- ...-with-where-unique-without-author.input.ts | 19 +- ...where-unique-without-favorited-by.input.ts | 19 +- ...rt-with-where-unique-without-tags.input.ts | 19 +- .../article-upsert-without-comments.input.ts | 19 +- .../article/article-where-unique.input.ts | 75 +-- @generated/article/article-where.input.ts | 75 +-- @generated/article/article.model.ts | 61 +- .../article/create-many-article.args.ts | 11 +- @generated/article/create-one-article.args.ts | 7 +- .../article/delete-many-article.args.ts | 11 +- @generated/article/delete-one-article.args.ts | 7 +- .../find-first-article-or-throw.args.ts | 27 +- @generated/article/find-first-article.args.ts | 27 +- @generated/article/find-many-article.args.ts | 27 +- .../find-unique-article-or-throw.args.ts | 7 +- .../article/find-unique-article.args.ts | 7 +- .../article/update-many-article.args.ts | 17 +- @generated/article/update-one-article.args.ts | 13 +- @generated/article/upsert-one-article.args.ts | 19 +- .../comment/aggregate-comment.output.ts | 13 +- @generated/comment/comment-aggregate.args.ts | 35 +- .../comment/comment-count-aggregate.input.ts | 29 +- .../comment/comment-count-aggregate.output.ts | 29 +- .../comment-count-order-by-aggregate.input.ts | 25 +- ...reate-many-article-input-envelope.input.ts | 11 +- .../comment-create-many-article.input.ts | 21 +- ...create-many-author-input-envelope.input.ts | 11 +- .../comment-create-many-author.input.ts | 21 +- .../comment/comment-create-many.input.ts | 25 +- ...reate-nested-many-without-article.input.ts | 25 +- ...create-nested-many-without-author.input.ts | 25 +- ...create-or-connect-without-article.input.ts | 13 +- ...-create-or-connect-without-author.input.ts | 13 +- .../comment-create-without-article.input.ts | 23 +- .../comment-create-without-author.input.ts | 23 +- @generated/comment/comment-create.input.ts | 29 +- @generated/comment/comment-group-by.args.ts | 39 +- @generated/comment/comment-group-by.output.ts | 37 +- .../comment-list-relation-filter.input.ts | 13 +- .../comment/comment-max-aggregate.input.ts | 25 +- .../comment/comment-max-aggregate.output.ts | 25 +- .../comment-max-order-by-aggregate.input.ts | 25 +- .../comment/comment-min-aggregate.input.ts | 25 +- .../comment/comment-min-aggregate.output.ts | 25 +- .../comment-min-order-by-aggregate.input.ts | 25 +- ...mment-order-by-relation-aggregate.input.ts | 5 +- .../comment-order-by-relevance-field.enum.ts | 14 +- .../comment-order-by-relevance.input.ts | 13 +- ...comment-order-by-with-aggregation.input.ts | 37 +- .../comment-order-by-with-relation.input.ts | 41 +- .../comment/comment-scalar-field.enum.ts | 18 +- ...ment-scalar-where-with-aggregates.input.ts | 37 +- .../comment/comment-scalar-where.input.ts | 37 +- ...reate-nested-many-without-article.input.ts | 25 +- ...create-nested-many-without-author.input.ts | 25 +- ...-unchecked-create-without-article.input.ts | 21 +- ...t-unchecked-create-without-author.input.ts | 21 +- .../comment/comment-unchecked-create.input.ts | 25 +- ...pdate-many-without-article-nested.input.ts | 67 +-- ...ecked-update-many-without-article.input.ts | 21 +- ...update-many-without-author-nested.input.ts | 67 +-- ...hecked-update-many-without-author.input.ts | 21 +- .../comment-unchecked-update-many.input.ts | 25 +- ...-unchecked-update-without-article.input.ts | 21 +- ...t-unchecked-update-without-author.input.ts | 21 +- .../comment/comment-unchecked-update.input.ts | 25 +- .../comment-update-many-mutation.input.ts | 17 +- ...e-many-with-where-without-article.input.ts | 13 +- ...te-many-with-where-without-author.input.ts | 13 +- ...pdate-many-without-article-nested.input.ts | 67 +-- ...update-many-without-author-nested.input.ts | 67 +-- ...with-where-unique-without-article.input.ts | 13 +- ...-with-where-unique-without-author.input.ts | 13 +- .../comment-update-without-article.input.ts | 23 +- .../comment-update-without-author.input.ts | 23 +- @generated/comment/comment-update.input.ts | 29 +- ...with-where-unique-without-article.input.ts | 19 +- ...-with-where-unique-without-author.input.ts | 19 +- .../comment/comment-where-unique.input.ts | 49 +- @generated/comment/comment-where.input.ts | 49 +- @generated/comment/comment.model.ts | 33 +- .../comment/create-many-comment.args.ts | 11 +- @generated/comment/create-one-comment.args.ts | 7 +- .../comment/delete-many-comment.args.ts | 11 +- @generated/comment/delete-one-comment.args.ts | 7 +- .../find-first-comment-or-throw.args.ts | 27 +- @generated/comment/find-first-comment.args.ts | 27 +- @generated/comment/find-many-comment.args.ts | 27 +- .../find-unique-comment-or-throw.args.ts | 7 +- .../comment/find-unique-comment.args.ts | 7 +- .../comment/update-many-comment.args.ts | 17 +- @generated/comment/update-one-comment.args.ts | 13 +- @generated/comment/upsert-one-comment.args.ts | 19 +- @generated/dummy/aggregate-dummy.output.ts | 21 +- @generated/dummy/create-many-dummy.args.ts | 11 +- @generated/dummy/create-one-dummy.args.ts | 7 +- @generated/dummy/delete-many-dummy.args.ts | 11 +- @generated/dummy/delete-one-dummy.args.ts | 7 +- @generated/dummy/dummy-aggregate.args.ts | 57 +- @generated/dummy/dummy-avg-aggregate.input.ts | 21 +- .../dummy/dummy-avg-aggregate.output.ts | 21 +- .../dummy-avg-order-by-aggregate.input.ts | 21 +- .../dummy/dummy-count-aggregate.input.ts | 45 +- .../dummy/dummy-count-aggregate.output.ts | 45 +- .../dummy-count-order-by-aggregate.input.ts | 41 +- @generated/dummy/dummy-create-many.input.ts | 49 +- @generated/dummy/dummy-create.input.ts | 49 +- .../dummy/dummy-createdecimals.input.ts | 9 +- @generated/dummy/dummy-createfriends.input.ts | 5 +- @generated/dummy/dummy-group-by.args.ts | 61 +- @generated/dummy/dummy-group-by.output.ts | 61 +- @generated/dummy/dummy-max-aggregate.input.ts | 29 +- .../dummy/dummy-max-aggregate.output.ts | 29 +- .../dummy-max-order-by-aggregate.input.ts | 29 +- @generated/dummy/dummy-min-aggregate.input.ts | 29 +- .../dummy/dummy-min-aggregate.output.ts | 29 +- .../dummy-min-order-by-aggregate.input.ts | 29 +- .../dummy-order-by-relevance-field.enum.ts | 10 +- .../dummy/dummy-order-by-relevance.input.ts | 13 +- .../dummy-order-by-with-aggregation.input.ts | 71 +-- .../dummy-order-by-with-relation.input.ts | 47 +- @generated/dummy/dummy-scalar-field.enum.ts | 26 +- ...ummy-scalar-where-with-aggregates.input.ts | 63 ++- @generated/dummy/dummy-sum-aggregate.input.ts | 21 +- .../dummy/dummy-sum-aggregate.output.ts | 21 +- .../dummy-sum-order-by-aggregate.input.ts | 21 +- .../dummy/dummy-unchecked-create.input.ts | 49 +- .../dummy-unchecked-update-many.input.ts | 47 +- .../dummy/dummy-unchecked-update.input.ts | 47 +- .../dummy/dummy-update-many-mutation.input.ts | 47 +- @generated/dummy/dummy-update.input.ts | 47 +- .../dummy/dummy-updatedecimals.input.ts | 17 +- @generated/dummy/dummy-updatefriends.input.ts | 9 +- @generated/dummy/dummy-where-unique.input.ts | 63 ++- @generated/dummy/dummy-where.input.ts | 63 ++- @generated/dummy/dummy.model.ts | 41 +- .../dummy/find-first-dummy-or-throw.args.ts | 31 +- @generated/dummy/find-first-dummy.args.ts | 31 +- @generated/dummy/find-many-dummy.args.ts | 31 +- .../dummy/find-unique-dummy-or-throw.args.ts | 7 +- @generated/dummy/find-unique-dummy.args.ts | 7 +- @generated/dummy/update-many-dummy.args.ts | 17 +- @generated/dummy/update-one-dummy.args.ts | 13 +- @generated/dummy/upsert-one-dummy.args.ts | 19 +- @generated/prisma/affected-rows.output.ts | 5 +- .../prisma/big-int-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- .../prisma/bool-nullable-filter.input.ts | 9 +- ...l-nullable-with-aggregates-filter.input.ts | 21 +- .../prisma/bytes-nullable-filter.input.ts | 17 +- ...s-nullable-with-aggregates-filter.input.ts | 29 +- ...date-time-field-update-operations.input.ts | 5 +- @generated/prisma/date-time-filter.input.ts | 33 +- .../prisma/date-time-nullable-filter.input.ts | 33 +- ...e-nullable-with-aggregates-filter.input.ts | 45 +- .../date-time-with-aggregates-filter.input.ts | 45 +- .../decimal-field-update-operations.input.ts | 41 +- @generated/prisma/decimal-filter.input.ts | 75 +-- .../prisma/decimal-nullable-filter.input.ts | 75 +-- .../decimal-nullable-list-filter.input.ts | 37 +- ...l-nullable-with-aggregates-filter.input.ts | 81 +-- .../decimal-with-aggregates-filter.input.ts | 81 +-- .../prisma/enum-role-nullable-filter.input.ts | 17 +- ...e-nullable-with-aggregates-filter.input.ts | 29 +- .../prisma/float-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- .../int-field-update-operations.input.ts | 21 +- @generated/prisma/int-filter.input.ts | 33 +- .../prisma/int-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- .../int-with-aggregates-filter.input.ts | 53 +- .../prisma/json-null-value-filter.enum.ts | 12 +- .../prisma/json-nullable-filter.input.ts | 57 +- ...n-nullable-with-aggregates-filter.input.ts | 69 +-- .../nested-big-int-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- .../nested-bool-nullable-filter.input.ts | 9 +- ...l-nullable-with-aggregates-filter.input.ts | 21 +- .../nested-bytes-nullable-filter.input.ts | 17 +- ...s-nullable-with-aggregates-filter.input.ts | 29 +- .../prisma/nested-date-time-filter.input.ts | 33 +- .../nested-date-time-nullable-filter.input.ts | 33 +- ...e-nullable-with-aggregates-filter.input.ts | 45 +- ...-date-time-with-aggregates-filter.input.ts | 45 +- .../prisma/nested-decimal-filter.input.ts | 75 +-- .../nested-decimal-nullable-filter.input.ts | 75 +-- ...l-nullable-with-aggregates-filter.input.ts | 81 +-- ...ed-decimal-with-aggregates-filter.input.ts | 81 +-- .../nested-enum-role-nullable-filter.input.ts | 17 +- ...e-nullable-with-aggregates-filter.input.ts | 29 +- .../prisma/nested-float-filter.input.ts | 33 +- .../nested-float-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- @generated/prisma/nested-int-filter.input.ts | 33 +- .../nested-int-nullable-filter.input.ts | 33 +- ...t-nullable-with-aggregates-filter.input.ts | 53 +- ...nested-int-with-aggregates-filter.input.ts | 53 +- .../nested-json-nullable-filter.input.ts | 57 +- .../prisma/nested-string-filter.input.ts | 49 +- .../nested-string-nullable-filter.input.ts | 49 +- ...g-nullable-with-aggregates-filter.input.ts | 61 +- ...ted-string-with-aggregates-filter.input.ts | 61 +- ...e-big-int-field-update-operations.input.ts | 21 +- ...able-bool-field-update-operations.input.ts | 5 +- ...ble-bytes-field-update-operations.input.ts | 5 +- ...date-time-field-update-operations.input.ts | 5 +- ...e-decimal-field-update-operations.input.ts | 41 +- ...enum-role-field-update-operations.input.ts | 5 +- ...ble-float-field-update-operations.input.ts | 21 +- ...lable-int-field-update-operations.input.ts | 21 +- .../nullable-json-null-value-input.enum.ts | 10 +- ...le-string-field-update-operations.input.ts | 5 +- @generated/prisma/nulls-order.enum.ts | 7 +- @generated/prisma/query-mode.enum.ts | 7 +- @generated/prisma/role.enum.ts | 18 +- @generated/prisma/sort-order.enum.ts | 7 +- @generated/prisma/sort-order.input.ts | 9 +- .../string-field-update-operations.input.ts | 5 +- @generated/prisma/string-filter.input.ts | 53 +- .../prisma/string-nullable-filter.input.ts | 53 +- .../string-nullable-list-filter.input.ts | 21 +- ...g-nullable-with-aggregates-filter.input.ts | 65 +-- .../string-with-aggregates-filter.input.ts | 65 +-- .../transaction-isolation-level.enum.ts | 14 +- .../profile/aggregate-profile.output.ts | 21 +- .../profile/create-many-profile.args.ts | 11 +- @generated/profile/create-one-profile.args.ts | 7 +- .../profile/delete-many-profile.args.ts | 11 +- @generated/profile/delete-one-profile.args.ts | 7 +- .../find-first-profile-or-throw.args.ts | 27 +- @generated/profile/find-first-profile.args.ts | 27 +- @generated/profile/find-many-profile.args.ts | 27 +- .../find-unique-profile-or-throw.args.ts | 7 +- .../profile/find-unique-profile.args.ts | 7 +- @generated/profile/profile-aggregate.args.ts | 43 +- .../profile/profile-avg-aggregate.input.ts | 5 +- .../profile/profile-avg-aggregate.output.ts | 5 +- .../profile-avg-order-by-aggregate.input.ts | 5 +- .../profile/profile-count-aggregate.input.ts | 17 +- .../profile/profile-count-aggregate.output.ts | 17 +- .../profile-count-order-by-aggregate.input.ts | 13 +- .../profile/profile-create-many.input.ts | 13 +- ...le-create-nested-one-without-user.input.ts | 19 +- ...le-create-or-connect-without-user.input.ts | 13 +- .../profile-create-without-user.input.ts | 5 +- @generated/profile/profile-create.input.ts | 11 +- @generated/profile/profile-group-by.args.ts | 47 +- @generated/profile/profile-group-by.output.ts | 33 +- .../profile/profile-max-aggregate.input.ts | 13 +- .../profile/profile-max-aggregate.output.ts | 13 +- .../profile-max-order-by-aggregate.input.ts | 13 +- .../profile/profile-min-aggregate.input.ts | 13 +- .../profile/profile-min-aggregate.output.ts | 13 +- .../profile-min-order-by-aggregate.input.ts | 13 +- ...e-nullable-scalar-relation-filter.input.ts | 9 +- .../profile-order-by-relevance-field.enum.ts | 10 +- .../profile-order-by-relevance.input.ts | 13 +- ...profile-order-by-with-aggregation.input.ts | 33 +- .../profile-order-by-with-relation.input.ts | 23 +- .../profile/profile-scalar-field.enum.ts | 12 +- ...file-scalar-where-with-aggregates.input.ts | 25 +- .../profile/profile-sum-aggregate.input.ts | 5 +- .../profile/profile-sum-aggregate.output.ts | 5 +- .../profile-sum-order-by-aggregate.input.ts | 5 +- ...ed-create-nested-one-without-user.input.ts | 15 +- ...ile-unchecked-create-without-user.input.ts | 9 +- .../profile/profile-unchecked-create.input.ts | 13 +- .../profile-unchecked-update-many.input.ts | 13 +- ...ed-update-one-without-user-nested.input.ts | 43 +- ...ile-unchecked-update-without-user.input.ts | 9 +- .../profile/profile-unchecked-update.input.ts | 13 +- .../profile-update-many-mutation.input.ts | 5 +- ...le-update-one-without-user-nested.input.ts | 43 +- ...te-to-one-with-where-without-user.input.ts | 13 +- .../profile-update-without-user.input.ts | 5 +- @generated/profile/profile-update.input.ts | 11 +- .../profile-upsert-without-user.input.ts | 19 +- .../profile/profile-where-unique.input.ts | 31 +- @generated/profile/profile-where.input.ts | 31 +- @generated/profile/profile.model.ts | 17 +- .../profile/update-many-profile.args.ts | 17 +- @generated/profile/update-one-profile.args.ts | 13 +- @generated/profile/upsert-one-profile.args.ts | 19 +- @generated/tag/aggregate-tag.output.ts | 13 +- @generated/tag/create-many-tag.args.ts | 11 +- @generated/tag/create-one-tag.args.ts | 7 +- @generated/tag/delete-many-tag.args.ts | 11 +- @generated/tag/delete-one-tag.args.ts | 7 +- .../tag/find-first-tag-or-throw.args.ts | 27 +- @generated/tag/find-first-tag.args.ts | 27 +- @generated/tag/find-many-tag.args.ts | 27 +- .../tag/find-unique-tag-or-throw.args.ts | 7 +- @generated/tag/find-unique-tag.args.ts | 7 +- @generated/tag/tag-aggregate.args.ts | 35 +- @generated/tag/tag-count-aggregate.input.ts | 13 +- @generated/tag/tag-count-aggregate.output.ts | 13 +- .../tag/tag-count-order-by-aggregate.input.ts | 9 +- @generated/tag/tag-count.output.ts | 5 +- @generated/tag/tag-create-many.input.ts | 9 +- ...eate-nested-many-without-articles.input.ts | 19 +- ...reate-or-connect-without-articles.input.ts | 13 +- .../tag/tag-create-without-articles.input.ts | 9 +- @generated/tag/tag-create.input.ts | 15 +- @generated/tag/tag-group-by.args.ts | 39 +- @generated/tag/tag-group-by.output.ts | 21 +- .../tag/tag-list-relation-filter.input.ts | 13 +- @generated/tag/tag-max-aggregate.input.ts | 9 +- @generated/tag/tag-max-aggregate.output.ts | 9 +- .../tag/tag-max-order-by-aggregate.input.ts | 9 +- @generated/tag/tag-min-aggregate.input.ts | 9 +- @generated/tag/tag-min-aggregate.output.ts | 9 +- .../tag/tag-min-order-by-aggregate.input.ts | 9 +- .../tag-order-by-relation-aggregate.input.ts | 5 +- .../tag/tag-order-by-relevance-field.enum.ts | 10 +- .../tag/tag-order-by-relevance.input.ts | 13 +- .../tag-order-by-with-aggregation.input.ts | 21 +- .../tag/tag-order-by-with-relation.input.ts | 19 +- @generated/tag/tag-scalar-field.enum.ts | 10 +- .../tag-scalar-where-with-aggregates.input.ts | 21 +- @generated/tag/tag-scalar-where.input.ts | 21 +- ...eate-nested-many-without-articles.input.ts | 19 +- ...unchecked-create-without-articles.input.ts | 9 +- @generated/tag/tag-unchecked-create.input.ts | 15 +- ...date-many-without-articles-nested.input.ts | 61 +- ...cked-update-many-without-articles.input.ts | 9 +- .../tag/tag-unchecked-update-many.input.ts | 9 +- ...unchecked-update-without-articles.input.ts | 9 +- @generated/tag/tag-unchecked-update.input.ts | 15 +- .../tag/tag-update-many-mutation.input.ts | 9 +- ...-many-with-where-without-articles.input.ts | 13 +- ...date-many-without-articles-nested.input.ts | 61 +- ...ith-where-unique-without-articles.input.ts | 13 +- .../tag/tag-update-without-articles.input.ts | 9 +- @generated/tag/tag-update.input.ts | 15 +- ...ith-where-unique-without-articles.input.ts | 19 +- @generated/tag/tag-where-unique.input.ts | 27 +- @generated/tag/tag-where.input.ts | 27 +- @generated/tag/tag.model.ts | 17 +- @generated/tag/update-many-tag.args.ts | 17 +- @generated/tag/update-one-tag.args.ts | 13 +- @generated/tag/upsert-one-tag.args.ts | 19 +- @generated/user/aggregate-user.output.ts | 21 +- @generated/user/create-many-user.args.ts | 15 +- @generated/user/create-one-user.args.ts | 11 +- @generated/user/delete-many-user.args.ts | 11 +- @generated/user/delete-one-user.args.ts | 7 +- .../user/find-first-user-or-throw.args.ts | 31 +- @generated/user/find-first-user.args.ts | 31 +- @generated/user/find-many-user.args.ts | 31 +- .../user/find-unique-user-or-throw.args.ts | 7 +- @generated/user/find-unique-user.args.ts | 7 +- @generated/user/update-many-user.args.ts | 17 +- @generated/user/update-one-user.args.ts | 13 +- @generated/user/upsert-one-user.args.ts | 19 +- @generated/user/user-aggregate.args.ts | 57 +- @generated/user/user-avg-aggregate.input.ts | 13 +- @generated/user/user-avg-aggregate.output.ts | 13 +- .../user/user-avg-order-by-aggregate.input.ts | 13 +- @generated/user/user-count-aggregate.input.ts | 45 +- .../user/user-count-aggregate.output.ts | 45 +- .../user-count-order-by-aggregate.input.ts | 41 +- @generated/user/user-count.output.ts | 21 +- @generated/user/user-create-many.input.ts | 49 +- ...ed-many-without-favorite-articles.input.ts | 21 +- ...ate-nested-many-without-followers.input.ts | 21 +- ...ate-nested-many-without-following.input.ts | 21 +- ...reate-nested-one-without-articles.input.ts | 22 +- ...reate-nested-one-without-comments.input.ts | 22 +- ...create-nested-one-without-profile.input.ts | 22 +- ...reate-or-connect-without-articles.input.ts | 13 +- ...reate-or-connect-without-comments.input.ts | 13 +- ...connect-without-favorite-articles.input.ts | 13 +- ...eate-or-connect-without-followers.input.ts | 13 +- ...eate-or-connect-without-following.input.ts | 13 +- ...create-or-connect-without-profile.input.ts | 13 +- .../user-create-without-articles.input.ts | 79 +-- .../user-create-without-comments.input.ts | 79 +-- ...-create-without-favorite-articles.input.ts | 79 +-- .../user-create-without-followers.input.ts | 79 +-- .../user-create-without-following.input.ts | 79 +-- .../user/user-create-without-profile.input.ts | 79 +-- @generated/user/user-create.input.ts | 85 +-- .../user-email-name-compound-unique.input.ts | 13 +- @generated/user/user-group-by.args.ts | 61 +- @generated/user/user-group-by.output.ts | 61 +- .../user/user-list-relation-filter.input.ts | 19 +- @generated/user/user-max-aggregate.input.ts | 41 +- @generated/user/user-max-aggregate.output.ts | 41 +- .../user/user-max-order-by-aggregate.input.ts | 41 +- @generated/user/user-min-aggregate.input.ts | 41 +- @generated/user/user-min-aggregate.output.ts | 41 +- .../user/user-min-order-by-aggregate.input.ts | 41 +- .../user-order-by-relation-aggregate.input.ts | 5 +- .../user-order-by-relevance-field.enum.ts | 18 +- .../user/user-order-by-relevance.input.ts | 13 +- .../user-order-by-with-aggregation.input.ts | 73 +-- .../user/user-order-by-with-relation.input.ts | 85 +-- @generated/user/user-scalar-field.enum.ts | 26 +- .../user/user-scalar-relation-filter.input.ts | 13 +- ...user-scalar-where-with-aggregates.input.ts | 61 +- @generated/user/user-scalar-where.input.ts | 61 +- @generated/user/user-sum-aggregate.input.ts | 13 +- @generated/user/user-sum-aggregate.output.ts | 13 +- .../user/user-sum-order-by-aggregate.input.ts | 13 +- ...ed-many-without-favorite-articles.input.ts | 21 +- ...ate-nested-many-without-followers.input.ts | 21 +- ...ate-nested-many-without-following.input.ts | 21 +- ...unchecked-create-without-articles.input.ts | 81 ++- ...unchecked-create-without-comments.input.ts | 81 ++- ...-create-without-favorite-articles.input.ts | 79 +-- ...nchecked-create-without-followers.input.ts | 81 ++- ...nchecked-create-without-following.input.ts | 81 ++- ...-unchecked-create-without-profile.input.ts | 81 ++- .../user/user-unchecked-create.input.ts | 87 ++- ...-without-favorite-articles-nested.input.ts | 75 +-- ...te-many-without-favorite-articles.input.ts | 43 +- ...ate-many-without-followers-nested.input.ts | 87 ++- ...ked-update-many-without-followers.input.ts | 43 +- ...ate-many-without-following-nested.input.ts | 87 ++- ...ked-update-many-without-following.input.ts | 43 +- .../user/user-unchecked-update-many.input.ts | 43 +- ...unchecked-update-without-articles.input.ts | 75 ++- ...unchecked-update-without-comments.input.ts | 75 ++- ...-update-without-favorite-articles.input.ts | 73 +-- ...nchecked-update-without-followers.input.ts | 75 ++- ...nchecked-update-without-following.input.ts | 75 ++- ...-unchecked-update-without-profile.input.ts | 75 ++- .../user/user-unchecked-update.input.ts | 81 ++- .../user/user-update-many-mutation.input.ts | 43 +- ...h-where-without-favorite-articles.input.ts | 13 +- ...many-with-where-without-followers.input.ts | 13 +- ...many-with-where-without-following.input.ts | 13 +- ...-without-favorite-articles-nested.input.ts | 75 +-- ...ate-many-without-followers-nested.input.ts | 87 ++- ...ate-many-without-following-nested.input.ts | 87 ++- ...-required-without-articles-nested.input.ts | 34 +- ...-required-without-comments-nested.input.ts | 34 +- ...e-required-without-profile-nested.input.ts | 34 +- ...o-one-with-where-without-articles.input.ts | 13 +- ...o-one-with-where-without-comments.input.ts | 13 +- ...to-one-with-where-without-profile.input.ts | 13 +- ...-unique-without-favorite-articles.input.ts | 13 +- ...th-where-unique-without-followers.input.ts | 13 +- ...th-where-unique-without-following.input.ts | 13 +- .../user-update-without-articles.input.ts | 73 +-- .../user-update-without-comments.input.ts | 73 +-- ...-update-without-favorite-articles.input.ts | 73 +-- .../user-update-without-followers.input.ts | 73 +-- .../user-update-without-following.input.ts | 73 +-- .../user/user-update-without-profile.input.ts | 73 +-- @generated/user/user-update.input.ts | 79 +-- ...-unique-without-favorite-articles.input.ts | 19 +- ...th-where-unique-without-followers.input.ts | 19 +- ...th-where-unique-without-following.input.ts | 19 +- .../user-upsert-without-articles.input.ts | 19 +- .../user-upsert-without-comments.input.ts | 19 +- .../user/user-upsert-without-profile.input.ts | 19 +- @generated/user/user-where-unique.input.ts | 107 ++-- @generated/user/user-where.input.ts | 97 ++-- @generated/user/user.model.ts | 77 +-- CHANGELOG.md | 532 +++++++----------- package.json | 5 +- pnpm-workspace.yaml | 10 + src/handlers/args-type.ts | 17 +- src/handlers/combine-scalar-filters.ts | 4 +- src/handlers/create-aggregate-input.ts | 15 +- src/handlers/emit-single.ts | 2 +- src/handlers/input-type.ts | 47 +- src/handlers/model-data.ts | 8 +- src/handlers/model-output-type.ts | 1 - src/handlers/no-atomic-operations.ts | 2 +- src/handlers/prisma-enum-doc.ts | 24 + src/handlers/purge-output.ts | 4 +- src/handlers/re-export.ts | 4 +- src/handlers/register-enum.ts | 43 +- src/helpers/create-config.spec.ts | 22 +- src/helpers/create-config.ts | 53 +- src/helpers/create-emit-blocks.ts | 4 +- src/helpers/factory-get-source-file.ts | 4 +- src/helpers/generate-file-name.spec.ts | 6 +- src/helpers/get-graphql-input-type.ts | 1 - src/helpers/get-where-unique-at-least-keys.ts | 2 +- src/helpers/import-declaration-map.ts | 4 +- src/helpers/object-settings.ts | 48 +- src/helpers/property-structure.ts | 16 +- src/helpers/update-object-property.ts | 4 +- src/test/compatibility.ts | 2 +- src/test/custom-decorators.spec.ts | 191 ++++--- src/test/decimal.spec.ts | 1 - src/test/generate.spec.ts | 2 +- src/test/helpers.ts | 2 +- src/test/test-generate.ts | 13 +- src/test/test.spec.ts | 10 +- src/types.ts | 2 +- 578 files changed, 9095 insertions(+), 8801 deletions(-) create mode 100644 .DS_Store create mode 100644 pnpm-workspace.yaml create mode 100644 src/handlers/prisma-enum-doc.ts diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6b4159b4a11b4e31480ec79d31e19133f58289f9 GIT binary patch literal 6148 zcmeHKJx?1!5Pgd+?2yLSAc`Pe0&S4!C=chNlo4_lDH7O5IFX$*=2I!qHB_l0rOY3Q z(ohhkNb3BO^gvIMH@geo<$ORDMbVBl`|fsTcAlSoyFLJ_xz}9=8UX5a!Ric$2_|vz zf=$_(M?@uS^tYB&w z_dm=ap$?mPM;~DWyTq=?>cR0PSxwAyxuu`p|9oq>mE?{Y-j(a|d?K=OGwvY6zGX?q zF30HX>-wY|mtWF+d}R3*)^gRmEzji@U7QH78W|l@w*iLe`>cT3FU1U()5q5b*mzsF1-39gjif^N(@F z?Y**ac%_4_bGsI!UcYH+cW>jFEmnVMFpNQgpg>UIS^?P~V!B{rF*m5U4h~bim3UQ9 zjMoi|vBktpa1{> literal 0 HcmV?d00001 diff --git a/@generated/article/aggregate-article.output.ts b/@generated/article/aggregate-article.output.ts index d5e310c5..2724636a 100644 --- a/@generated/article/aggregate-article.output.ts +++ b/@generated/article/aggregate-article.output.ts @@ -8,18 +8,19 @@ import { ArticleMaxAggregate } from './article-max-aggregate.output'; @ObjectType() export class AggregateArticle { - @Field(() => ArticleCountAggregate, { nullable: true }) - _count?: ArticleCountAggregate; - @Field(() => ArticleAvgAggregate, { nullable: true }) - _avg?: ArticleAvgAggregate; + @Field(() => ArticleCountAggregate, {nullable:true}) + _count?: ArticleCountAggregate; - @Field(() => ArticleSumAggregate, { nullable: true }) - _sum?: ArticleSumAggregate; + @Field(() => ArticleAvgAggregate, {nullable:true}) + _avg?: ArticleAvgAggregate; - @Field(() => ArticleMinAggregate, { nullable: true }) - _min?: ArticleMinAggregate; + @Field(() => ArticleSumAggregate, {nullable:true}) + _sum?: ArticleSumAggregate; - @Field(() => ArticleMaxAggregate, { nullable: true }) - _max?: ArticleMaxAggregate; + @Field(() => ArticleMinAggregate, {nullable:true}) + _min?: ArticleMinAggregate; + + @Field(() => ArticleMaxAggregate, {nullable:true}) + _max?: ArticleMaxAggregate; } diff --git a/@generated/article/article-aggregate.args.ts b/@generated/article/article-aggregate.args.ts index b99437d1..c4673b3a 100644 --- a/@generated/article/article-aggregate.args.ts +++ b/@generated/article/article-aggregate.args.ts @@ -14,34 +14,35 @@ import { ArticleMaxAggregateInput } from './article-max-aggregate.input'; @ArgsType() export class ArticleAggregateArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => [ArticleOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ArticleOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => ArticleCountAggregateInput, { nullable: true }) - _count?: ArticleCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => ArticleAvgAggregateInput, { nullable: true }) - _avg?: ArticleAvgAggregateInput; + @Field(() => ArticleCountAggregateInput, {nullable:true}) + _count?: ArticleCountAggregateInput; - @Field(() => ArticleSumAggregateInput, { nullable: true }) - _sum?: ArticleSumAggregateInput; + @Field(() => ArticleAvgAggregateInput, {nullable:true}) + _avg?: ArticleAvgAggregateInput; - @Field(() => ArticleMinAggregateInput, { nullable: true }) - _min?: ArticleMinAggregateInput; + @Field(() => ArticleSumAggregateInput, {nullable:true}) + _sum?: ArticleSumAggregateInput; - @Field(() => ArticleMaxAggregateInput, { nullable: true }) - _max?: ArticleMaxAggregateInput; + @Field(() => ArticleMinAggregateInput, {nullable:true}) + _min?: ArticleMinAggregateInput; + + @Field(() => ArticleMaxAggregateInput, {nullable:true}) + _max?: ArticleMaxAggregateInput; } diff --git a/@generated/article/article-avg-aggregate.input.ts b/@generated/article/article-avg-aggregate.input.ts index 2a425696..ac5988c8 100644 --- a/@generated/article/article-avg-aggregate.input.ts +++ b/@generated/article/article-avg-aggregate.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ArticleAvgAggregateInput { - @Field(() => Boolean, { nullable: true }) - favoritesCount?: true; + + @Field(() => Boolean, {nullable:true}) + favoritesCount?: true; } diff --git a/@generated/article/article-avg-aggregate.output.ts b/@generated/article/article-avg-aggregate.output.ts index b21f6f5b..d9f7c1a5 100644 --- a/@generated/article/article-avg-aggregate.output.ts +++ b/@generated/article/article-avg-aggregate.output.ts @@ -4,6 +4,7 @@ import { Float } from '@nestjs/graphql'; @ObjectType() export class ArticleAvgAggregate { - @Field(() => Float, { nullable: true }) - favoritesCount?: number; + + @Field(() => Float, {nullable:true}) + favoritesCount?: number; } diff --git a/@generated/article/article-avg-order-by-aggregate.input.ts b/@generated/article/article-avg-order-by-aggregate.input.ts index 508cc081..f4dd03bd 100644 --- a/@generated/article/article-avg-order-by-aggregate.input.ts +++ b/@generated/article/article-avg-order-by-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleAvgOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; } diff --git a/@generated/article/article-count-aggregate.input.ts b/@generated/article/article-count-aggregate.input.ts index 75d2aa06..95191a15 100644 --- a/@generated/article/article-count-aggregate.input.ts +++ b/@generated/article/article-count-aggregate.input.ts @@ -3,36 +3,37 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ArticleCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - slug?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - title?: true; + @Field(() => Boolean, {nullable:true}) + slug?: true; - @Field(() => Boolean, { nullable: true }) - description?: true; + @Field(() => Boolean, {nullable:true}) + title?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + description?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - favoritesCount?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + favoritesCount?: true; - @Field(() => Boolean, { nullable: true }) - active?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + active?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/article/article-count-aggregate.output.ts b/@generated/article/article-count-aggregate.output.ts index b6804d27..9c360ddd 100644 --- a/@generated/article/article-count-aggregate.output.ts +++ b/@generated/article/article-count-aggregate.output.ts @@ -4,36 +4,37 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - slug!: number; + @Field(() => Int, {nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - title!: number; + @Field(() => Int, {nullable:false}) + slug!: number; - @Field(() => Int, { nullable: false }) - description!: number; + @Field(() => Int, {nullable:false}) + title!: number; - @Field(() => Int, { nullable: false }) - body!: number; + @Field(() => Int, {nullable:false}) + description!: number; - @Field(() => Int, { nullable: false }) - createdAt!: number; + @Field(() => Int, {nullable:false}) + body!: number; - @Field(() => Int, { nullable: false }) - updatedAt!: number; + @Field(() => Int, {nullable:false}) + createdAt!: number; - @Field(() => Int, { nullable: false }) - favoritesCount!: number; + @Field(() => Int, {nullable:false}) + updatedAt!: number; - @Field(() => Int, { nullable: false }) - authorId!: number; + @Field(() => Int, {nullable:false}) + favoritesCount!: number; - @Field(() => Int, { nullable: false }) - active!: number; + @Field(() => Int, {nullable:false}) + authorId!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + active!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/article/article-count-order-by-aggregate.input.ts b/@generated/article/article-count-order-by-aggregate.input.ts index 5a20c67c..0aea1b9e 100644 --- a/@generated/article/article-count-order-by-aggregate.input.ts +++ b/@generated/article/article-count-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - slug?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - title?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + slug?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - description?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + title?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + description?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - active?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + active?: `${SortOrder}`; } diff --git a/@generated/article/article-count.output.ts b/@generated/article/article-count.output.ts index 96d8aa3a..bd1ea167 100644 --- a/@generated/article/article-count.output.ts +++ b/@generated/article/article-count.output.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleCount { - @Field(() => Int, { nullable: false }) - tags?: number; - @Field(() => Int, { nullable: false }) - favoritedBy?: number; + @Field(() => Int, {nullable:false}) + tags?: number; - @Field(() => Int, { nullable: false }) - comments?: number; + @Field(() => Int, {nullable:false}) + favoritedBy?: number; + + @Field(() => Int, {nullable:false}) + comments?: number; } diff --git a/@generated/article/article-create-many-author-input-envelope.input.ts b/@generated/article/article-create-many-author-input-envelope.input.ts index 07a8c661..c2de7eae 100644 --- a/@generated/article/article-create-many-author-input-envelope.input.ts +++ b/@generated/article/article-create-many-author-input-envelope.input.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @InputType() export class ArticleCreateManyAuthorInputEnvelope { - @Field(() => [ArticleCreateManyAuthorInput], { nullable: false }) - @Type(() => ArticleCreateManyAuthorInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [ArticleCreateManyAuthorInput], {nullable:false}) + @Type(() => ArticleCreateManyAuthorInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/article/article-create-many-author.input.ts b/@generated/article/article-create-many-author.input.ts index 91e5fca9..fac6f50b 100644 --- a/@generated/article/article-create-many-author.input.ts +++ b/@generated/article/article-create-many-author.input.ts @@ -5,30 +5,31 @@ import { Int } from '@nestjs/graphql'; @InputType() export class ArticleCreateManyAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; + + @Field(() => Boolean, {nullable:true}) + active?: boolean; } diff --git a/@generated/article/article-create-many.input.ts b/@generated/article/article-create-many.input.ts index 859b204a..05825735 100644 --- a/@generated/article/article-create-many.input.ts +++ b/@generated/article/article-create-many.input.ts @@ -5,33 +5,34 @@ import { Int } from '@nestjs/graphql'; @InputType() export class ArticleCreateManyInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; + + @Field(() => Boolean, {nullable:true}) + active?: boolean; } diff --git a/@generated/article/article-create-nested-many-without-author.input.ts b/@generated/article/article-create-nested-many-without-author.input.ts index 736fab8f..e7f16648 100644 --- a/@generated/article/article-create-nested-many-without-author.input.ts +++ b/@generated/article/article-create-nested-many-without-author.input.ts @@ -9,19 +9,20 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleCreateNestedManyWithoutAuthorInput { - @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateWithoutAuthorInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateWithoutAuthorInput) + create?: Array; - @Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => ArticleCreateManyAuthorInputEnvelope) - createMany?: ArticleCreateManyAuthorInputEnvelope; + @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => ArticleCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => ArticleCreateManyAuthorInputEnvelope) + createMany?: ArticleCreateManyAuthorInputEnvelope; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-create-nested-many-without-favorited-by.input.ts b/@generated/article/article-create-nested-many-without-favorited-by.input.ts index 61cf2736..4af4e26e 100644 --- a/@generated/article/article-create-nested-many-without-favorited-by.input.ts +++ b/@generated/article/article-create-nested-many-without-favorited-by.input.ts @@ -8,15 +8,16 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleCreateNestedManyWithoutFavoritedByInput { - @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) + connectOrCreate?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-create-nested-many-without-tags.input.ts b/@generated/article/article-create-nested-many-without-tags.input.ts index a1c1cc33..d5809374 100644 --- a/@generated/article/article-create-nested-many-without-tags.input.ts +++ b/@generated/article/article-create-nested-many-without-tags.input.ts @@ -8,15 +8,16 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleCreateNestedManyWithoutTagsInput { - @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateWithoutTagsInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutTagsInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateWithoutTagsInput) + create?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleCreateOrConnectWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutTagsInput) + connectOrCreate?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-create-nested-one-without-comments.input.ts b/@generated/article/article-create-nested-one-without-comments.input.ts index 3e3d7299..0500a8c5 100644 --- a/@generated/article/article-create-nested-one-without-comments.input.ts +++ b/@generated/article/article-create-nested-one-without-comments.input.ts @@ -8,15 +8,16 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleCreateNestedOneWithoutCommentsInput { - @Field(() => ArticleCreateWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateWithoutCommentsInput) - create?: ArticleCreateWithoutCommentsInput; - @Field(() => ArticleCreateOrConnectWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutCommentsInput) - connectOrCreate?: ArticleCreateOrConnectWithoutCommentsInput; + @Field(() => ArticleCreateWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateWithoutCommentsInput) + create?: ArticleCreateWithoutCommentsInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Prisma.AtLeast; + @Field(() => ArticleCreateOrConnectWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutCommentsInput) + connectOrCreate?: ArticleCreateOrConnectWithoutCommentsInput; + + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Prisma.AtLeast; } diff --git a/@generated/article/article-create-or-connect-without-author.input.ts b/@generated/article/article-create-or-connect-without-author.input.ts index 60db2993..95ad5b66 100644 --- a/@generated/article/article-create-or-connect-without-author.input.ts +++ b/@generated/article/article-create-or-connect-without-author.input.ts @@ -7,11 +7,12 @@ import { ArticleCreateWithoutAuthorInput } from './article-create-without-author @InputType() export class ArticleCreateOrConnectWithoutAuthorInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutAuthorInput, { nullable: false }) - @Type(() => ArticleCreateWithoutAuthorInput) - create!: ArticleCreateWithoutAuthorInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleCreateWithoutAuthorInput, {nullable:false}) + @Type(() => ArticleCreateWithoutAuthorInput) + create!: ArticleCreateWithoutAuthorInput; } diff --git a/@generated/article/article-create-or-connect-without-comments.input.ts b/@generated/article/article-create-or-connect-without-comments.input.ts index 2683d381..e264e102 100644 --- a/@generated/article/article-create-or-connect-without-comments.input.ts +++ b/@generated/article/article-create-or-connect-without-comments.input.ts @@ -7,11 +7,12 @@ import { ArticleCreateWithoutCommentsInput } from './article-create-without-comm @InputType() export class ArticleCreateOrConnectWithoutCommentsInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutCommentsInput, { nullable: false }) - @Type(() => ArticleCreateWithoutCommentsInput) - create!: ArticleCreateWithoutCommentsInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleCreateWithoutCommentsInput, {nullable:false}) + @Type(() => ArticleCreateWithoutCommentsInput) + create!: ArticleCreateWithoutCommentsInput; } diff --git a/@generated/article/article-create-or-connect-without-favorited-by.input.ts b/@generated/article/article-create-or-connect-without-favorited-by.input.ts index 48e364c9..05857412 100644 --- a/@generated/article/article-create-or-connect-without-favorited-by.input.ts +++ b/@generated/article/article-create-or-connect-without-favorited-by.input.ts @@ -7,11 +7,12 @@ import { ArticleCreateWithoutFavoritedByInput } from './article-create-without-f @InputType() export class ArticleCreateOrConnectWithoutFavoritedByInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutFavoritedByInput, { nullable: false }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create!: ArticleCreateWithoutFavoritedByInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleCreateWithoutFavoritedByInput, {nullable:false}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create!: ArticleCreateWithoutFavoritedByInput; } diff --git a/@generated/article/article-create-or-connect-without-tags.input.ts b/@generated/article/article-create-or-connect-without-tags.input.ts index 68c57dbc..790f9e99 100644 --- a/@generated/article/article-create-or-connect-without-tags.input.ts +++ b/@generated/article/article-create-or-connect-without-tags.input.ts @@ -7,11 +7,12 @@ import { ArticleCreateWithoutTagsInput } from './article-create-without-tags.inp @InputType() export class ArticleCreateOrConnectWithoutTagsInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutTagsInput, { nullable: false }) - @Type(() => ArticleCreateWithoutTagsInput) - create!: ArticleCreateWithoutTagsInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleCreateWithoutTagsInput, {nullable:false}) + @Type(() => ArticleCreateWithoutTagsInput) + create!: ArticleCreateWithoutTagsInput; } diff --git a/@generated/article/article-create-without-author.input.ts b/@generated/article/article-create-without-author.input.ts index 856a9bb3..7dd2a90e 100644 --- a/@generated/article/article-create-without-author.input.ts +++ b/@generated/article/article-create-without-author.input.ts @@ -9,41 +9,42 @@ import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-c @InputType() export class ArticleCreateWithoutAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => TagCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => TagCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagCreateNestedManyWithoutArticlesInput; - @Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutArticleInput) - comments?: CommentCreateNestedManyWithoutArticleInput; + @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutArticleInput) + comments?: CommentCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-create-without-comments.input.ts b/@generated/article/article-create-without-comments.input.ts index 394a24cb..4ac3c09c 100644 --- a/@generated/article/article-create-without-comments.input.ts +++ b/@generated/article/article-create-without-comments.input.ts @@ -9,41 +9,42 @@ import { UserCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-c @InputType() export class ArticleCreateWithoutCommentsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => TagCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutArticlesInput) - author!: UserCreateNestedOneWithoutArticlesInput; + @Field(() => TagCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagCreateNestedManyWithoutArticlesInput; - @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => UserCreateNestedOneWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutArticlesInput) + author!: UserCreateNestedOneWithoutArticlesInput; + + @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; } diff --git a/@generated/article/article-create-without-favorited-by.input.ts b/@generated/article/article-create-without-favorited-by.input.ts index b53d4148..e8e09070 100644 --- a/@generated/article/article-create-without-favorited-by.input.ts +++ b/@generated/article/article-create-without-favorited-by.input.ts @@ -9,41 +9,42 @@ import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-c @InputType() export class ArticleCreateWithoutFavoritedByInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => TagCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutArticlesInput) - author!: UserCreateNestedOneWithoutArticlesInput; + @Field(() => TagCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagCreateNestedManyWithoutArticlesInput; - @Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutArticleInput) - comments?: CommentCreateNestedManyWithoutArticleInput; + @Field(() => UserCreateNestedOneWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutArticlesInput) + author!: UserCreateNestedOneWithoutArticlesInput; + + @Field(() => CommentCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutArticleInput) + comments?: CommentCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-create-without-tags.input.ts b/@generated/article/article-create-without-tags.input.ts index 4063c5a9..86c87ee6 100644 --- a/@generated/article/article-create-without-tags.input.ts +++ b/@generated/article/article-create-without-tags.input.ts @@ -9,42 +9,43 @@ import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-c @InputType() export class ArticleCreateWithoutTagsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutArticlesInput) - author!: UserCreateNestedOneWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => UserCreateNestedOneWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutArticlesInput) + author!: UserCreateNestedOneWithoutArticlesInput; - @Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutArticleInput) - comments?: CommentCreateNestedManyWithoutArticleInput; + @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutArticleInput) + comments?: CommentCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-create.input.ts b/@generated/article/article-create.input.ts index e8ebc5f4..40fe5f80 100644 --- a/@generated/article/article-create.input.ts +++ b/@generated/article/article-create.input.ts @@ -10,45 +10,46 @@ import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-c @InputType() export class ArticleCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => TagCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutArticlesInput) - author!: UserCreateNestedOneWithoutArticlesInput; + @Field(() => TagCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagCreateNestedManyWithoutArticlesInput; - @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => UserCreateNestedOneWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutArticlesInput) + author!: UserCreateNestedOneWithoutArticlesInput; - @Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutArticleInput) - comments?: CommentCreateNestedManyWithoutArticleInput; + @Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutArticleInput) + comments?: CommentCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-group-by.args.ts b/@generated/article/article-group-by.args.ts index 81520337..842b130c 100644 --- a/@generated/article/article-group-by.args.ts +++ b/@generated/article/article-group-by.args.ts @@ -14,37 +14,38 @@ import { ArticleMaxAggregateInput } from './article-max-aggregate.input'; @ArgsType() export class ArticleGroupByArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => [ArticleOrderByWithAggregationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; - @Field(() => [ArticleScalarFieldEnum], { nullable: false }) - by!: Array<`${ArticleScalarFieldEnum}`>; + @Field(() => [ArticleOrderByWithAggregationInput], {nullable:true}) + orderBy?: Array; - @Field(() => ArticleScalarWhereWithAggregatesInput, { nullable: true }) - having?: ArticleScalarWhereWithAggregatesInput; + @Field(() => [ArticleScalarFieldEnum], {nullable:false}) + by!: Array<`${ArticleScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ArticleScalarWhereWithAggregatesInput, {nullable:true}) + having?: ArticleScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => ArticleCountAggregateInput, { nullable: true }) - _count?: ArticleCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => ArticleAvgAggregateInput, { nullable: true }) - _avg?: ArticleAvgAggregateInput; + @Field(() => ArticleCountAggregateInput, {nullable:true}) + _count?: ArticleCountAggregateInput; - @Field(() => ArticleSumAggregateInput, { nullable: true }) - _sum?: ArticleSumAggregateInput; + @Field(() => ArticleAvgAggregateInput, {nullable:true}) + _avg?: ArticleAvgAggregateInput; - @Field(() => ArticleMinAggregateInput, { nullable: true }) - _min?: ArticleMinAggregateInput; + @Field(() => ArticleSumAggregateInput, {nullable:true}) + _sum?: ArticleSumAggregateInput; - @Field(() => ArticleMaxAggregateInput, { nullable: true }) - _max?: ArticleMaxAggregateInput; + @Field(() => ArticleMinAggregateInput, {nullable:true}) + _min?: ArticleMinAggregateInput; + + @Field(() => ArticleMaxAggregateInput, {nullable:true}) + _max?: ArticleMaxAggregateInput; } diff --git a/@generated/article/article-group-by.output.ts b/@generated/article/article-group-by.output.ts index e468c495..0f0794df 100644 --- a/@generated/article/article-group-by.output.ts +++ b/@generated/article/article-group-by.output.ts @@ -9,48 +9,49 @@ import { ArticleMaxAggregate } from './article-max-aggregate.output'; @ObjectType() export class ArticleGroupBy { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @Field(() => Date, { nullable: false }) - createdAt!: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: false }) - updatedAt!: Date | string; + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; - @Field(() => Int, { nullable: false }) - favoritesCount!: number; + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:false}) + favoritesCount!: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => ArticleCountAggregate, { nullable: true }) - _count?: ArticleCountAggregate; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => ArticleAvgAggregate, { nullable: true }) - _avg?: ArticleAvgAggregate; + @Field(() => ArticleCountAggregate, {nullable:true}) + _count?: ArticleCountAggregate; - @Field(() => ArticleSumAggregate, { nullable: true }) - _sum?: ArticleSumAggregate; + @Field(() => ArticleAvgAggregate, {nullable:true}) + _avg?: ArticleAvgAggregate; - @Field(() => ArticleMinAggregate, { nullable: true }) - _min?: ArticleMinAggregate; + @Field(() => ArticleSumAggregate, {nullable:true}) + _sum?: ArticleSumAggregate; - @Field(() => ArticleMaxAggregate, { nullable: true }) - _max?: ArticleMaxAggregate; + @Field(() => ArticleMinAggregate, {nullable:true}) + _min?: ArticleMinAggregate; + + @Field(() => ArticleMaxAggregate, {nullable:true}) + _max?: ArticleMaxAggregate; } diff --git a/@generated/article/article-list-relation-filter.input.ts b/@generated/article/article-list-relation-filter.input.ts index bf21c6f8..fde169d7 100644 --- a/@generated/article/article-list-relation-filter.input.ts +++ b/@generated/article/article-list-relation-filter.input.ts @@ -4,12 +4,13 @@ import { ArticleWhereInput } from './article-where.input'; @InputType() export class ArticleListRelationFilter { - @Field(() => ArticleWhereInput, { nullable: true }) - every?: ArticleWhereInput; - @Field(() => ArticleWhereInput, { nullable: true }) - some?: ArticleWhereInput; + @Field(() => ArticleWhereInput, {nullable:true}) + every?: ArticleWhereInput; - @Field(() => ArticleWhereInput, { nullable: true }) - none?: ArticleWhereInput; + @Field(() => ArticleWhereInput, {nullable:true}) + some?: ArticleWhereInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + none?: ArticleWhereInput; } diff --git a/@generated/article/article-max-aggregate.input.ts b/@generated/article/article-max-aggregate.input.ts index d113282b..165caeae 100644 --- a/@generated/article/article-max-aggregate.input.ts +++ b/@generated/article/article-max-aggregate.input.ts @@ -3,33 +3,34 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ArticleMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - slug?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - title?: true; + @Field(() => Boolean, {nullable:true}) + slug?: true; - @Field(() => Boolean, { nullable: true }) - description?: true; + @Field(() => Boolean, {nullable:true}) + title?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + description?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - favoritesCount?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + favoritesCount?: true; - @Field(() => Boolean, { nullable: true }) - active?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; + + @Field(() => Boolean, {nullable:true}) + active?: true; } diff --git a/@generated/article/article-max-aggregate.output.ts b/@generated/article/article-max-aggregate.output.ts index 1d02ebed..1fb8cbd9 100644 --- a/@generated/article/article-max-aggregate.output.ts +++ b/@generated/article/article-max-aggregate.output.ts @@ -4,33 +4,34 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleMaxAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - slug?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: true }) - title?: string; + @Field(() => String, {nullable:true}) + slug?: string; - @Field(() => String, { nullable: true }) - description?: string; + @Field(() => String, {nullable:true}) + title?: string; - @Field(() => String, { nullable: true }) - body?: string; + @Field(() => String, {nullable:true}) + description?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + body?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - authorId?: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:true}) + authorId?: string; + + @Field(() => Boolean, {nullable:true}) + active?: boolean; } diff --git a/@generated/article/article-max-order-by-aggregate.input.ts b/@generated/article/article-max-order-by-aggregate.input.ts index 805ac09b..0834c902 100644 --- a/@generated/article/article-max-order-by-aggregate.input.ts +++ b/@generated/article/article-max-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - slug?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - title?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + slug?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - description?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + title?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + description?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - active?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + active?: `${SortOrder}`; } diff --git a/@generated/article/article-min-aggregate.input.ts b/@generated/article/article-min-aggregate.input.ts index f440acb6..6127615f 100644 --- a/@generated/article/article-min-aggregate.input.ts +++ b/@generated/article/article-min-aggregate.input.ts @@ -3,33 +3,34 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ArticleMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - slug?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - title?: true; + @Field(() => Boolean, {nullable:true}) + slug?: true; - @Field(() => Boolean, { nullable: true }) - description?: true; + @Field(() => Boolean, {nullable:true}) + title?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + description?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - favoritesCount?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + favoritesCount?: true; - @Field(() => Boolean, { nullable: true }) - active?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; + + @Field(() => Boolean, {nullable:true}) + active?: true; } diff --git a/@generated/article/article-min-aggregate.output.ts b/@generated/article/article-min-aggregate.output.ts index d427daba..ee8094d1 100644 --- a/@generated/article/article-min-aggregate.output.ts +++ b/@generated/article/article-min-aggregate.output.ts @@ -4,33 +4,34 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleMinAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - slug?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: true }) - title?: string; + @Field(() => String, {nullable:true}) + slug?: string; - @Field(() => String, { nullable: true }) - description?: string; + @Field(() => String, {nullable:true}) + title?: string; - @Field(() => String, { nullable: true }) - body?: string; + @Field(() => String, {nullable:true}) + description?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + body?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - authorId?: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:true}) + authorId?: string; + + @Field(() => Boolean, {nullable:true}) + active?: boolean; } diff --git a/@generated/article/article-min-order-by-aggregate.input.ts b/@generated/article/article-min-order-by-aggregate.input.ts index 63dc75f2..7c25f718 100644 --- a/@generated/article/article-min-order-by-aggregate.input.ts +++ b/@generated/article/article-min-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - slug?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - title?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + slug?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - description?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + title?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + description?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - active?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + active?: `${SortOrder}`; } diff --git a/@generated/article/article-nullable-scalar-relation-filter.input.ts b/@generated/article/article-nullable-scalar-relation-filter.input.ts index b22121f9..ee2bb1b0 100644 --- a/@generated/article/article-nullable-scalar-relation-filter.input.ts +++ b/@generated/article/article-nullable-scalar-relation-filter.input.ts @@ -4,9 +4,10 @@ import { ArticleWhereInput } from './article-where.input'; @InputType() export class ArticleNullableScalarRelationFilter { - @Field(() => ArticleWhereInput, { nullable: true }) - is?: ArticleWhereInput; - @Field(() => ArticleWhereInput, { nullable: true }) - isNot?: ArticleWhereInput; + @Field(() => ArticleWhereInput, {nullable:true}) + is?: ArticleWhereInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + isNot?: ArticleWhereInput; } diff --git a/@generated/article/article-order-by-relation-aggregate.input.ts b/@generated/article/article-order-by-relation-aggregate.input.ts index 4485fcea..b032918e 100644 --- a/@generated/article/article-order-by-relation-aggregate.input.ts +++ b/@generated/article/article-order-by-relation-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleOrderByRelationAggregateInput { - @Field(() => SortOrder, { nullable: true }) - _count?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + _count?: `${SortOrder}`; } diff --git a/@generated/article/article-order-by-relevance-field.enum.ts b/@generated/article/article-order-by-relevance-field.enum.ts index 34e0bf28..e833f347 100644 --- a/@generated/article/article-order-by-relevance-field.enum.ts +++ b/@generated/article/article-order-by-relevance-field.enum.ts @@ -1,15 +1,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum ArticleOrderByRelevanceFieldEnum { - id = 'id', - slug = 'slug', - title = 'title', - description = 'description', - body = 'body', - authorId = 'authorId', + + + + + + } -registerEnumType(ArticleOrderByRelevanceFieldEnum, { - name: 'ArticleOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(ArticleOrderByRelevanceFieldEnum, { name: 'ArticleOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/article/article-order-by-relevance.input.ts b/@generated/article/article-order-by-relevance.input.ts index 976324e5..54cd427a 100644 --- a/@generated/article/article-order-by-relevance.input.ts +++ b/@generated/article/article-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleOrderByRelevanceInput { - @Field(() => [ArticleOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${ArticleOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [ArticleOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${ArticleOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/article/article-order-by-with-aggregation.input.ts b/@generated/article/article-order-by-with-aggregation.input.ts index af37f3dc..d8ed5e67 100644 --- a/@generated/article/article-order-by-with-aggregation.input.ts +++ b/@generated/article/article-order-by-with-aggregation.input.ts @@ -10,48 +10,49 @@ import { ArticleSumOrderByAggregateInput } from './article-sum-order-by-aggregat @InputType() export class ArticleOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - slug?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - title?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + slug?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - description?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + title?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + description?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - active?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; - @Field(() => ArticleCountOrderByAggregateInput, { nullable: true }) - _count?: ArticleCountOrderByAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + active?: SortOrderInput; - @Field(() => ArticleAvgOrderByAggregateInput, { nullable: true }) - _avg?: ArticleAvgOrderByAggregateInput; + @Field(() => ArticleCountOrderByAggregateInput, {nullable:true}) + _count?: ArticleCountOrderByAggregateInput; - @Field(() => ArticleMaxOrderByAggregateInput, { nullable: true }) - _max?: ArticleMaxOrderByAggregateInput; + @Field(() => ArticleAvgOrderByAggregateInput, {nullable:true}) + _avg?: ArticleAvgOrderByAggregateInput; - @Field(() => ArticleMinOrderByAggregateInput, { nullable: true }) - _min?: ArticleMinOrderByAggregateInput; + @Field(() => ArticleMaxOrderByAggregateInput, {nullable:true}) + _max?: ArticleMaxOrderByAggregateInput; - @Field(() => ArticleSumOrderByAggregateInput, { nullable: true }) - _sum?: ArticleSumOrderByAggregateInput; + @Field(() => ArticleMinOrderByAggregateInput, {nullable:true}) + _min?: ArticleMinOrderByAggregateInput; + + @Field(() => ArticleSumOrderByAggregateInput, {nullable:true}) + _sum?: ArticleSumOrderByAggregateInput; } diff --git a/@generated/article/article-order-by-with-relation.input.ts b/@generated/article/article-order-by-with-relation.input.ts index 0bf46e83..ab300f24 100644 --- a/@generated/article/article-order-by-with-relation.input.ts +++ b/@generated/article/article-order-by-with-relation.input.ts @@ -11,51 +11,52 @@ import { ArticleOrderByRelevanceInput } from './article-order-by-relevance.input @InputType() export class ArticleOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - slug?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - title?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + slug?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - description?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + title?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + description?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - active?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; - @Field(() => TagOrderByRelationAggregateInput, { nullable: true }) - tags?: TagOrderByRelationAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + active?: SortOrderInput; - @Field(() => UserOrderByWithRelationInput, { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - author?: UserOrderByWithRelationInput; + @Field(() => TagOrderByRelationAggregateInput, {nullable:true}) + tags?: TagOrderByRelationAggregateInput; - @Field(() => UserOrderByRelationAggregateInput, { nullable: true }) - @Type(() => UserOrderByRelationAggregateInput) - favoritedBy?: UserOrderByRelationAggregateInput; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + author?: UserOrderByWithRelationInput; - @Field(() => CommentOrderByRelationAggregateInput, { nullable: true }) - @Type(() => CommentOrderByRelationAggregateInput) - comments?: CommentOrderByRelationAggregateInput; + @Field(() => UserOrderByRelationAggregateInput, {nullable:true}) + @Type(() => UserOrderByRelationAggregateInput) + favoritedBy?: UserOrderByRelationAggregateInput; - @Field(() => ArticleOrderByRelevanceInput, { nullable: true }) - _relevance?: ArticleOrderByRelevanceInput; + @Field(() => CommentOrderByRelationAggregateInput, {nullable:true}) + @Type(() => CommentOrderByRelationAggregateInput) + comments?: CommentOrderByRelationAggregateInput; + + @Field(() => ArticleOrderByRelevanceInput, {nullable:true}) + _relevance?: ArticleOrderByRelevanceInput; } diff --git a/@generated/article/article-scalar-field.enum.ts b/@generated/article/article-scalar-field.enum.ts index d9983842..006e4669 100644 --- a/@generated/article/article-scalar-field.enum.ts +++ b/@generated/article/article-scalar-field.enum.ts @@ -1,19 +1,17 @@ import { registerEnumType } from '@nestjs/graphql'; export enum ArticleScalarFieldEnum { - id = 'id', - slug = 'slug', - title = 'title', - description = 'description', - body = 'body', - createdAt = 'createdAt', - updatedAt = 'updatedAt', - favoritesCount = 'favoritesCount', - authorId = 'authorId', - active = 'active', + + + + + + + + + + } -registerEnumType(ArticleScalarFieldEnum, { - name: 'ArticleScalarFieldEnum', - description: undefined, -}); + +registerEnumType(ArticleScalarFieldEnum, { name: 'ArticleScalarFieldEnum', description: undefined }) diff --git a/@generated/article/article-scalar-where-with-aggregates.input.ts b/@generated/article/article-scalar-where-with-aggregates.input.ts index 3e56f506..d94909ee 100644 --- a/@generated/article/article-scalar-where-with-aggregates.input.ts +++ b/@generated/article/article-scalar-where-with-aggregates.input.ts @@ -7,42 +7,43 @@ import { BoolNullableWithAggregatesFilter } from '../prisma/bool-nullable-with-a @InputType() export class ArticleScalarWhereWithAggregatesInput { - @Field(() => [ArticleScalarWhereWithAggregatesInput], { nullable: true }) - AND?: Array; - @Field(() => [ArticleScalarWhereWithAggregatesInput], { nullable: true }) - OR?: Array; + @Field(() => [ArticleScalarWhereWithAggregatesInput], {nullable:true}) + AND?: Array; - @Field(() => [ArticleScalarWhereWithAggregatesInput], { nullable: true }) - NOT?: Array; + @Field(() => [ArticleScalarWhereWithAggregatesInput], {nullable:true}) + OR?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - id?: StringWithAggregatesFilter; + @Field(() => [ArticleScalarWhereWithAggregatesInput], {nullable:true}) + NOT?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - slug?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + id?: StringWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - title?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + slug?: StringWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - description?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + title?: StringWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - body?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + description?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, { nullable: true }) - createdAt?: DateTimeWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + body?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, { nullable: true }) - updatedAt?: DateTimeWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; - @Field(() => IntWithAggregatesFilter, { nullable: true }) - favoritesCount?: IntWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - authorId?: StringWithAggregatesFilter; + @Field(() => IntWithAggregatesFilter, {nullable:true}) + favoritesCount?: IntWithAggregatesFilter; - @Field(() => BoolNullableWithAggregatesFilter, { nullable: true }) - active?: BoolNullableWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + authorId?: StringWithAggregatesFilter; + + @Field(() => BoolNullableWithAggregatesFilter, {nullable:true}) + active?: BoolNullableWithAggregatesFilter; } diff --git a/@generated/article/article-scalar-where.input.ts b/@generated/article/article-scalar-where.input.ts index d0656ea8..4f469468 100644 --- a/@generated/article/article-scalar-where.input.ts +++ b/@generated/article/article-scalar-where.input.ts @@ -7,42 +7,43 @@ import { BoolNullableFilter } from '../prisma/bool-nullable-filter.input'; @InputType() export class ArticleScalarWhereInput { - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - slug?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - title?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + slug?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - description?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + title?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + description?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => IntFilter, { nullable: true }) - favoritesCount?: IntFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => IntFilter, {nullable:true}) + favoritesCount?: IntFilter; - @Field(() => BoolNullableFilter, { nullable: true }) - active?: BoolNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; + + @Field(() => BoolNullableFilter, {nullable:true}) + active?: BoolNullableFilter; } diff --git a/@generated/article/article-sum-aggregate.input.ts b/@generated/article/article-sum-aggregate.input.ts index 214c04d2..2d7cd758 100644 --- a/@generated/article/article-sum-aggregate.input.ts +++ b/@generated/article/article-sum-aggregate.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ArticleSumAggregateInput { - @Field(() => Boolean, { nullable: true }) - favoritesCount?: true; + + @Field(() => Boolean, {nullable:true}) + favoritesCount?: true; } diff --git a/@generated/article/article-sum-aggregate.output.ts b/@generated/article/article-sum-aggregate.output.ts index 054a5312..c6c785b8 100644 --- a/@generated/article/article-sum-aggregate.output.ts +++ b/@generated/article/article-sum-aggregate.output.ts @@ -4,6 +4,7 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleSumAggregate { - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + + @Field(() => Int, {nullable:true}) + favoritesCount?: number; } diff --git a/@generated/article/article-sum-order-by-aggregate.input.ts b/@generated/article/article-sum-order-by-aggregate.input.ts index 10cb3abd..ecb76914 100644 --- a/@generated/article/article-sum-order-by-aggregate.input.ts +++ b/@generated/article/article-sum-order-by-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ArticleSumOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - favoritesCount?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + favoritesCount?: `${SortOrder}`; } diff --git a/@generated/article/article-unchecked-create-nested-many-without-author.input.ts b/@generated/article/article-unchecked-create-nested-many-without-author.input.ts index f966d340..d3f1af19 100644 --- a/@generated/article/article-unchecked-create-nested-many-without-author.input.ts +++ b/@generated/article/article-unchecked-create-nested-many-without-author.input.ts @@ -9,19 +9,20 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleUncheckedCreateNestedManyWithoutAuthorInput { - @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateWithoutAuthorInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateWithoutAuthorInput) + create?: Array; - @Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => ArticleCreateManyAuthorInputEnvelope) - createMany?: ArticleCreateManyAuthorInputEnvelope; + @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => ArticleCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => ArticleCreateManyAuthorInputEnvelope) + createMany?: ArticleCreateManyAuthorInputEnvelope; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-unchecked-create-nested-many-without-favorited-by.input.ts b/@generated/article/article-unchecked-create-nested-many-without-favorited-by.input.ts index 623ffb13..ba323fa5 100644 --- a/@generated/article/article-unchecked-create-nested-many-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-create-nested-many-without-favorited-by.input.ts @@ -8,15 +8,16 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleUncheckedCreateNestedManyWithoutFavoritedByInput { - @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) + connectOrCreate?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-unchecked-create-nested-many-without-tags.input.ts b/@generated/article/article-unchecked-create-nested-many-without-tags.input.ts index 7c5ea186..d84d7ecf 100644 --- a/@generated/article/article-unchecked-create-nested-many-without-tags.input.ts +++ b/@generated/article/article-unchecked-create-nested-many-without-tags.input.ts @@ -8,15 +8,16 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @InputType() export class ArticleUncheckedCreateNestedManyWithoutTagsInput { - @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateWithoutTagsInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutTagsInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateWithoutTagsInput) + create?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleCreateOrConnectWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutTagsInput) + connectOrCreate?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/article/article-unchecked-create-without-author.input.ts b/@generated/article/article-unchecked-create-without-author.input.ts index 6e55c706..9d738cf2 100644 --- a/@generated/article/article-unchecked-create-without-author.input.ts +++ b/@generated/article/article-unchecked-create-without-author.input.ts @@ -9,43 +9,42 @@ import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/ @InputType() export class ArticleUncheckedCreateWithoutAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, { - nullable: true, - }) - @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) - comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) + comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-unchecked-create-without-comments.input.ts b/@generated/article/article-unchecked-create-without-comments.input.ts index cb18b556..77734c86 100644 --- a/@generated/article/article-unchecked-create-without-comments.input.ts +++ b/@generated/article/article-unchecked-create-without-comments.input.ts @@ -8,42 +8,41 @@ import { Type } from 'class-transformer'; @InputType() export class ArticleUncheckedCreateWithoutCommentsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, { - nullable: true, - }) - @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + + @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; } diff --git a/@generated/article/article-unchecked-create-without-favorited-by.input.ts b/@generated/article/article-unchecked-create-without-favorited-by.input.ts index 4b7f35e6..116bb0f0 100644 --- a/@generated/article/article-unchecked-create-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-create-without-favorited-by.input.ts @@ -8,40 +8,41 @@ import { Type } from 'class-transformer'; @InputType() export class ArticleUncheckedCreateWithoutFavoritedByInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) - comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; + @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) + comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-unchecked-create-without-tags.input.ts b/@generated/article/article-unchecked-create-without-tags.input.ts index 25a095d0..9398aa0d 100644 --- a/@generated/article/article-unchecked-create-without-tags.input.ts +++ b/@generated/article/article-unchecked-create-without-tags.input.ts @@ -8,43 +8,42 @@ import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/ @InputType() export class ArticleUncheckedCreateWithoutTagsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, { - nullable: true, - }) - @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) - comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) + comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-unchecked-create.input.ts b/@generated/article/article-unchecked-create.input.ts index 4a875acc..a74d3e65 100644 --- a/@generated/article/article-unchecked-create.input.ts +++ b/@generated/article/article-unchecked-create.input.ts @@ -9,46 +9,45 @@ import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/ @InputType() export class ArticleUncheckedCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @HideField() - createdAt?: Date | string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @HideField() + createdAt?: Date | string; - @Field(() => Int, { nullable: true }) - favoritesCount?: number; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {nullable:true}) + favoritesCount?: number; - @Field(() => Boolean, { nullable: true }) - active?: boolean; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; + @Field(() => Boolean, {nullable:true}) + active?: boolean; - @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, { - nullable: true, - }) - @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, {nullable:true}) + tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) - comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput) + favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutArticleInput) + comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; } diff --git a/@generated/article/article-unchecked-update-many-without-author-nested.input.ts b/@generated/article/article-unchecked-update-many-without-author-nested.input.ts index 616cb227..d6c2b1c2 100644 --- a/@generated/article/article-unchecked-update-many-without-author-nested.input.ts +++ b/@generated/article/article-unchecked-update-many-without-author-nested.input.ts @@ -13,47 +13,48 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUncheckedUpdateManyWithoutAuthorNestedInput { - @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateWithoutAuthorInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateWithoutAuthorInput) + create?: Array; - @Field(() => [ArticleUpsertWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutAuthorInput) - upsert?: Array; + @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => ArticleCreateManyAuthorInputEnvelope) - createMany?: ArticleCreateManyAuthorInputEnvelope; + @Field(() => [ArticleUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; + @Field(() => ArticleCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => ArticleCreateManyAuthorInputEnvelope) + createMany?: ArticleCreateManyAuthorInputEnvelope; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; - @Field(() => [ArticleUpdateWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutAuthorInput) - update?: Array; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; - @Field(() => [ArticleUpdateManyWithWhereWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutAuthorInput) - updateMany?: Array; + @Field(() => [ArticleUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + @Field(() => [ArticleUpdateManyWithWhereWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-unchecked-update-many-without-author.input.ts b/@generated/article/article-unchecked-update-many-without-author.input.ts index 15e8e036..a5a8c7d8 100644 --- a/@generated/article/article-unchecked-update-many-without-author.input.ts +++ b/@generated/article/article-unchecked-update-many-without-author.input.ts @@ -7,30 +7,31 @@ import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool- @InputType() export class ArticleUncheckedUpdateManyWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; + + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; } diff --git a/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts b/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts index 1efab459..98694b53 100644 --- a/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts +++ b/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts @@ -12,47 +12,44 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput { - @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create?: Array; - - @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) - connectOrCreate?: Array; - - @Field(() => [ArticleUpsertWithWhereUniqueWithoutFavoritedByInput], { - nullable: true, - }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutFavoritedByInput) - upsert?: Array; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; - - @Field(() => [ArticleUpdateWithWhereUniqueWithoutFavoritedByInput], { - nullable: true, - }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutFavoritedByInput) - update?: Array; - - @Field(() => [ArticleUpdateManyWithWhereWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutFavoritedByInput) - updateMany?: Array; - - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + + @Field(() => [ArticleCreateWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create?: Array; + + @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) + connectOrCreate?: Array; + + @Field(() => [ArticleUpsertWithWhereUniqueWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutFavoritedByInput) + upsert?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; + + @Field(() => [ArticleUpdateWithWhereUniqueWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutFavoritedByInput) + update?: Array; + + @Field(() => [ArticleUpdateManyWithWhereWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutFavoritedByInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts b/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts index 62cbc923..9568c278 100644 --- a/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts @@ -7,33 +7,34 @@ import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool- @InputType() export class ArticleUncheckedUpdateManyWithoutFavoritedByInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; } diff --git a/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts b/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts index fd056891..bfcb8b33 100644 --- a/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts +++ b/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts @@ -12,43 +12,44 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUncheckedUpdateManyWithoutTagsNestedInput { - @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateWithoutTagsInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutTagsInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateWithoutTagsInput) + create?: Array; - @Field(() => [ArticleUpsertWithWhereUniqueWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutTagsInput) - upsert?: Array; + @Field(() => [ArticleCreateOrConnectWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutTagsInput) + connectOrCreate?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; + @Field(() => [ArticleUpsertWithWhereUniqueWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutTagsInput) + upsert?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; - @Field(() => [ArticleUpdateWithWhereUniqueWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutTagsInput) - update?: Array; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; - @Field(() => [ArticleUpdateManyWithWhereWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutTagsInput) - updateMany?: Array; + @Field(() => [ArticleUpdateWithWhereUniqueWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutTagsInput) + update?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + @Field(() => [ArticleUpdateManyWithWhereWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutTagsInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-unchecked-update-many-without-tags.input.ts b/@generated/article/article-unchecked-update-many-without-tags.input.ts index e04be714..2ea6019e 100644 --- a/@generated/article/article-unchecked-update-many-without-tags.input.ts +++ b/@generated/article/article-unchecked-update-many-without-tags.input.ts @@ -7,33 +7,34 @@ import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool- @InputType() export class ArticleUncheckedUpdateManyWithoutTagsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; } diff --git a/@generated/article/article-unchecked-update-many.input.ts b/@generated/article/article-unchecked-update-many.input.ts index 3ee82daa..ebb20e31 100644 --- a/@generated/article/article-unchecked-update-many.input.ts +++ b/@generated/article/article-unchecked-update-many.input.ts @@ -7,33 +7,34 @@ import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool- @InputType() export class ArticleUncheckedUpdateManyInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; } diff --git a/@generated/article/article-unchecked-update-without-author.input.ts b/@generated/article/article-unchecked-update-without-author.input.ts index ac2c7025..1bd78905 100644 --- a/@generated/article/article-unchecked-update-without-author.input.ts +++ b/@generated/article/article-unchecked-update-without-author.input.ts @@ -11,43 +11,42 @@ import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/ @InputType() export class ArticleUncheckedUpdateWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { - nullable: true, - }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) - comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-unchecked-update-without-comments.input.ts b/@generated/article/article-unchecked-update-without-comments.input.ts index 4d66b550..27cf6458 100644 --- a/@generated/article/article-unchecked-update-without-comments.input.ts +++ b/@generated/article/article-unchecked-update-without-comments.input.ts @@ -10,42 +10,41 @@ import { Type } from 'class-transformer'; @InputType() export class ArticleUncheckedUpdateWithoutCommentsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { - nullable: true, - }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; } diff --git a/@generated/article/article-unchecked-update-without-favorited-by.input.ts b/@generated/article/article-unchecked-update-without-favorited-by.input.ts index 0b9e5606..ddf9d208 100644 --- a/@generated/article/article-unchecked-update-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-update-without-favorited-by.input.ts @@ -10,40 +10,41 @@ import { Type } from 'class-transformer'; @InputType() export class ArticleUncheckedUpdateWithoutFavoritedByInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) - comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-unchecked-update-without-tags.input.ts b/@generated/article/article-unchecked-update-without-tags.input.ts index 209e7dca..3e13298e 100644 --- a/@generated/article/article-unchecked-update-without-tags.input.ts +++ b/@generated/article/article-unchecked-update-without-tags.input.ts @@ -10,43 +10,42 @@ import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/ @InputType() export class ArticleUncheckedUpdateWithoutTagsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { - nullable: true, - }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) - comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-unchecked-update.input.ts b/@generated/article/article-unchecked-update.input.ts index 8cf9af61..fe2eeacb 100644 --- a/@generated/article/article-unchecked-update.input.ts +++ b/@generated/article/article-unchecked-update.input.ts @@ -11,46 +11,45 @@ import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/ @InputType() export class ArticleUncheckedUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { - nullable: true, - }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) - comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutArticleNestedInput) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-update-many-mutation.input.ts b/@generated/article/article-update-many-mutation.input.ts index e45daa8f..ea27d041 100644 --- a/@generated/article/article-update-many-mutation.input.ts +++ b/@generated/article/article-update-many-mutation.input.ts @@ -7,30 +7,31 @@ import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool- @InputType() export class ArticleUpdateManyMutationInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; + + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; } diff --git a/@generated/article/article-update-many-with-where-without-author.input.ts b/@generated/article/article-update-many-with-where-without-author.input.ts index 436cbc80..f1a17f7d 100644 --- a/@generated/article/article-update-many-with-where-without-author.input.ts +++ b/@generated/article/article-update-many-with-where-without-author.input.ts @@ -6,11 +6,12 @@ import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.i @InputType() export class ArticleUpdateManyWithWhereWithoutAuthorInput { - @Field(() => ArticleScalarWhereInput, { nullable: false }) - @Type(() => ArticleScalarWhereInput) - where!: ArticleScalarWhereInput; - @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) - @Type(() => ArticleUpdateManyMutationInput) - data!: ArticleUpdateManyMutationInput; + @Field(() => ArticleScalarWhereInput, {nullable:false}) + @Type(() => ArticleScalarWhereInput) + where!: ArticleScalarWhereInput; + + @Field(() => ArticleUpdateManyMutationInput, {nullable:false}) + @Type(() => ArticleUpdateManyMutationInput) + data!: ArticleUpdateManyMutationInput; } diff --git a/@generated/article/article-update-many-with-where-without-favorited-by.input.ts b/@generated/article/article-update-many-with-where-without-favorited-by.input.ts index 826049bb..2329ca33 100644 --- a/@generated/article/article-update-many-with-where-without-favorited-by.input.ts +++ b/@generated/article/article-update-many-with-where-without-favorited-by.input.ts @@ -6,11 +6,12 @@ import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.i @InputType() export class ArticleUpdateManyWithWhereWithoutFavoritedByInput { - @Field(() => ArticleScalarWhereInput, { nullable: false }) - @Type(() => ArticleScalarWhereInput) - where!: ArticleScalarWhereInput; - @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) - @Type(() => ArticleUpdateManyMutationInput) - data!: ArticleUpdateManyMutationInput; + @Field(() => ArticleScalarWhereInput, {nullable:false}) + @Type(() => ArticleScalarWhereInput) + where!: ArticleScalarWhereInput; + + @Field(() => ArticleUpdateManyMutationInput, {nullable:false}) + @Type(() => ArticleUpdateManyMutationInput) + data!: ArticleUpdateManyMutationInput; } diff --git a/@generated/article/article-update-many-with-where-without-tags.input.ts b/@generated/article/article-update-many-with-where-without-tags.input.ts index 3b7c221c..1fe467ff 100644 --- a/@generated/article/article-update-many-with-where-without-tags.input.ts +++ b/@generated/article/article-update-many-with-where-without-tags.input.ts @@ -6,11 +6,12 @@ import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.i @InputType() export class ArticleUpdateManyWithWhereWithoutTagsInput { - @Field(() => ArticleScalarWhereInput, { nullable: false }) - @Type(() => ArticleScalarWhereInput) - where!: ArticleScalarWhereInput; - @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) - @Type(() => ArticleUpdateManyMutationInput) - data!: ArticleUpdateManyMutationInput; + @Field(() => ArticleScalarWhereInput, {nullable:false}) + @Type(() => ArticleScalarWhereInput) + where!: ArticleScalarWhereInput; + + @Field(() => ArticleUpdateManyMutationInput, {nullable:false}) + @Type(() => ArticleUpdateManyMutationInput) + data!: ArticleUpdateManyMutationInput; } diff --git a/@generated/article/article-update-many-without-author-nested.input.ts b/@generated/article/article-update-many-without-author-nested.input.ts index f364dbc3..82724cca 100644 --- a/@generated/article/article-update-many-without-author-nested.input.ts +++ b/@generated/article/article-update-many-without-author-nested.input.ts @@ -13,47 +13,48 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUpdateManyWithoutAuthorNestedInput { - @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateWithoutAuthorInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateWithoutAuthorInput) + create?: Array; - @Field(() => [ArticleUpsertWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutAuthorInput) - upsert?: Array; + @Field(() => [ArticleCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => ArticleCreateManyAuthorInputEnvelope) - createMany?: ArticleCreateManyAuthorInputEnvelope; + @Field(() => [ArticleUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; + @Field(() => ArticleCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => ArticleCreateManyAuthorInputEnvelope) + createMany?: ArticleCreateManyAuthorInputEnvelope; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; - @Field(() => [ArticleUpdateWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutAuthorInput) - update?: Array; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; - @Field(() => [ArticleUpdateManyWithWhereWithoutAuthorInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutAuthorInput) - updateMany?: Array; + @Field(() => [ArticleUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + @Field(() => [ArticleUpdateManyWithWhereWithoutAuthorInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-update-many-without-favorited-by-nested.input.ts b/@generated/article/article-update-many-without-favorited-by-nested.input.ts index 8ff9c61c..943c29c9 100644 --- a/@generated/article/article-update-many-without-favorited-by-nested.input.ts +++ b/@generated/article/article-update-many-without-favorited-by-nested.input.ts @@ -12,47 +12,44 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUpdateManyWithoutFavoritedByNestedInput { - @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create?: Array; - - @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) - connectOrCreate?: Array; - - @Field(() => [ArticleUpsertWithWhereUniqueWithoutFavoritedByInput], { - nullable: true, - }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutFavoritedByInput) - upsert?: Array; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; - - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; - - @Field(() => [ArticleUpdateWithWhereUniqueWithoutFavoritedByInput], { - nullable: true, - }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutFavoritedByInput) - update?: Array; - - @Field(() => [ArticleUpdateManyWithWhereWithoutFavoritedByInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutFavoritedByInput) - updateMany?: Array; - - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + + @Field(() => [ArticleCreateWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create?: Array; + + @Field(() => [ArticleCreateOrConnectWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutFavoritedByInput) + connectOrCreate?: Array; + + @Field(() => [ArticleUpsertWithWhereUniqueWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutFavoritedByInput) + upsert?: Array; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; + + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; + + @Field(() => [ArticleUpdateWithWhereUniqueWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutFavoritedByInput) + update?: Array; + + @Field(() => [ArticleUpdateManyWithWhereWithoutFavoritedByInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutFavoritedByInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-update-many-without-tags-nested.input.ts b/@generated/article/article-update-many-without-tags-nested.input.ts index be7557fd..56b9210f 100644 --- a/@generated/article/article-update-many-without-tags-nested.input.ts +++ b/@generated/article/article-update-many-without-tags-nested.input.ts @@ -12,43 +12,44 @@ import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() export class ArticleUpdateManyWithoutTagsNestedInput { - @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateWithoutTagsInput) - create?: Array; - @Field(() => [ArticleCreateOrConnectWithoutTagsInput], { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutTagsInput) - connectOrCreate?: Array; + @Field(() => [ArticleCreateWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateWithoutTagsInput) + create?: Array; - @Field(() => [ArticleUpsertWithWhereUniqueWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpsertWithWhereUniqueWithoutTagsInput) - upsert?: Array; + @Field(() => [ArticleCreateOrConnectWithoutTagsInput], {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutTagsInput) + connectOrCreate?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - set?: Array>; + @Field(() => [ArticleUpsertWithWhereUniqueWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpsertWithWhereUniqueWithoutTagsInput) + upsert?: Array; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - disconnect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + set?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - delete?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + disconnect?: Array>; - @Field(() => [ArticleWhereUniqueInput], { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Array>; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + delete?: Array>; - @Field(() => [ArticleUpdateWithWhereUniqueWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpdateWithWhereUniqueWithoutTagsInput) - update?: Array; + @Field(() => [ArticleWhereUniqueInput], {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Array>; - @Field(() => [ArticleUpdateManyWithWhereWithoutTagsInput], { nullable: true }) - @Type(() => ArticleUpdateManyWithWhereWithoutTagsInput) - updateMany?: Array; + @Field(() => [ArticleUpdateWithWhereUniqueWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpdateWithWhereUniqueWithoutTagsInput) + update?: Array; - @Field(() => [ArticleScalarWhereInput], { nullable: true }) - @Type(() => ArticleScalarWhereInput) - deleteMany?: Array; + @Field(() => [ArticleUpdateManyWithWhereWithoutTagsInput], {nullable:true}) + @Type(() => ArticleUpdateManyWithWhereWithoutTagsInput) + updateMany?: Array; + + @Field(() => [ArticleScalarWhereInput], {nullable:true}) + @Type(() => ArticleScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/article/article-update-one-without-comments-nested.input.ts b/@generated/article/article-update-one-without-comments-nested.input.ts index 21d1b328..69c67488 100644 --- a/@generated/article/article-update-one-without-comments-nested.input.ts +++ b/@generated/article/article-update-one-without-comments-nested.input.ts @@ -11,31 +11,32 @@ import { ArticleUpdateToOneWithWhereWithoutCommentsInput } from './article-updat @InputType() export class ArticleUpdateOneWithoutCommentsNestedInput { - @Field(() => ArticleCreateWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateWithoutCommentsInput) - create?: ArticleCreateWithoutCommentsInput; - @Field(() => ArticleCreateOrConnectWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateOrConnectWithoutCommentsInput) - connectOrCreate?: ArticleCreateOrConnectWithoutCommentsInput; + @Field(() => ArticleCreateWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateWithoutCommentsInput) + create?: ArticleCreateWithoutCommentsInput; - @Field(() => ArticleUpsertWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleUpsertWithoutCommentsInput) - upsert?: ArticleUpsertWithoutCommentsInput; + @Field(() => ArticleCreateOrConnectWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateOrConnectWithoutCommentsInput) + connectOrCreate?: ArticleCreateOrConnectWithoutCommentsInput; - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - disconnect?: ArticleWhereInput; + @Field(() => ArticleUpsertWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleUpsertWithoutCommentsInput) + upsert?: ArticleUpsertWithoutCommentsInput; - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - delete?: ArticleWhereInput; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + disconnect?: ArticleWhereInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - @Type(() => ArticleWhereUniqueInput) - connect?: Prisma.AtLeast; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + delete?: ArticleWhereInput; - @Field(() => ArticleUpdateToOneWithWhereWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleUpdateToOneWithWhereWithoutCommentsInput) - update?: ArticleUpdateToOneWithWhereWithoutCommentsInput; + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + @Type(() => ArticleWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => ArticleUpdateToOneWithWhereWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleUpdateToOneWithWhereWithoutCommentsInput) + update?: ArticleUpdateToOneWithWhereWithoutCommentsInput; } diff --git a/@generated/article/article-update-to-one-with-where-without-comments.input.ts b/@generated/article/article-update-to-one-with-where-without-comments.input.ts index 6991406d..4f9e46b1 100644 --- a/@generated/article/article-update-to-one-with-where-without-comments.input.ts +++ b/@generated/article/article-update-to-one-with-where-without-comments.input.ts @@ -6,11 +6,12 @@ import { ArticleUpdateWithoutCommentsInput } from './article-update-without-comm @InputType() export class ArticleUpdateToOneWithWhereWithoutCommentsInput { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => ArticleUpdateWithoutCommentsInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutCommentsInput) - data!: ArticleUpdateWithoutCommentsInput; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; + + @Field(() => ArticleUpdateWithoutCommentsInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutCommentsInput) + data!: ArticleUpdateWithoutCommentsInput; } diff --git a/@generated/article/article-update-with-where-unique-without-author.input.ts b/@generated/article/article-update-with-where-unique-without-author.input.ts index a4a7f599..940e660e 100644 --- a/@generated/article/article-update-with-where-unique-without-author.input.ts +++ b/@generated/article/article-update-with-where-unique-without-author.input.ts @@ -7,11 +7,12 @@ import { ArticleUpdateWithoutAuthorInput } from './article-update-without-author @InputType() export class ArticleUpdateWithWhereUniqueWithoutAuthorInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutAuthorInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutAuthorInput) - data!: ArticleUpdateWithoutAuthorInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleUpdateWithoutAuthorInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutAuthorInput) + data!: ArticleUpdateWithoutAuthorInput; } diff --git a/@generated/article/article-update-with-where-unique-without-favorited-by.input.ts b/@generated/article/article-update-with-where-unique-without-favorited-by.input.ts index 2ae620c9..38ed01e2 100644 --- a/@generated/article/article-update-with-where-unique-without-favorited-by.input.ts +++ b/@generated/article/article-update-with-where-unique-without-favorited-by.input.ts @@ -7,11 +7,12 @@ import { ArticleUpdateWithoutFavoritedByInput } from './article-update-without-f @InputType() export class ArticleUpdateWithWhereUniqueWithoutFavoritedByInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutFavoritedByInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutFavoritedByInput) - data!: ArticleUpdateWithoutFavoritedByInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleUpdateWithoutFavoritedByInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutFavoritedByInput) + data!: ArticleUpdateWithoutFavoritedByInput; } diff --git a/@generated/article/article-update-with-where-unique-without-tags.input.ts b/@generated/article/article-update-with-where-unique-without-tags.input.ts index ee0aff1b..b7cc21e4 100644 --- a/@generated/article/article-update-with-where-unique-without-tags.input.ts +++ b/@generated/article/article-update-with-where-unique-without-tags.input.ts @@ -7,11 +7,12 @@ import { ArticleUpdateWithoutTagsInput } from './article-update-without-tags.inp @InputType() export class ArticleUpdateWithWhereUniqueWithoutTagsInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutTagsInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutTagsInput) - data!: ArticleUpdateWithoutTagsInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ArticleUpdateWithoutTagsInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutTagsInput) + data!: ArticleUpdateWithoutTagsInput; } diff --git a/@generated/article/article-update-without-author.input.ts b/@generated/article/article-update-without-author.input.ts index 6303e6c7..df03e9a4 100644 --- a/@generated/article/article-update-without-author.input.ts +++ b/@generated/article/article-update-without-author.input.ts @@ -11,41 +11,42 @@ import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-u @InputType() export class ArticleUpdateWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUpdateManyWithoutArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutArticleNestedInput) - comments?: CommentUpdateManyWithoutArticleNestedInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutArticleNestedInput) + comments?: CommentUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-update-without-comments.input.ts b/@generated/article/article-update-without-comments.input.ts index a9d84f3d..1ea10fb1 100644 --- a/@generated/article/article-update-without-comments.input.ts +++ b/@generated/article/article-update-without-comments.input.ts @@ -11,41 +11,42 @@ import { UserUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-u @InputType() export class ArticleUpdateWithoutCommentsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) - author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUpdateManyWithoutArticlesNestedInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; } diff --git a/@generated/article/article-update-without-favorited-by.input.ts b/@generated/article/article-update-without-favorited-by.input.ts index df09dbcf..25a0a273 100644 --- a/@generated/article/article-update-without-favorited-by.input.ts +++ b/@generated/article/article-update-without-favorited-by.input.ts @@ -11,41 +11,42 @@ import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-u @InputType() export class ArticleUpdateWithoutFavoritedByInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) - author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUpdateManyWithoutArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutArticleNestedInput) - comments?: CommentUpdateManyWithoutArticleNestedInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + + @Field(() => CommentUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutArticleNestedInput) + comments?: CommentUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-update-without-tags.input.ts b/@generated/article/article-update-without-tags.input.ts index 58c961fb..3bc5bf46 100644 --- a/@generated/article/article-update-without-tags.input.ts +++ b/@generated/article/article-update-without-tags.input.ts @@ -11,42 +11,43 @@ import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-u @InputType() export class ArticleUpdateWithoutTagsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) - author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutArticleNestedInput) - comments?: CommentUpdateManyWithoutArticleNestedInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutArticleNestedInput) + comments?: CommentUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-update.input.ts b/@generated/article/article-update.input.ts index c38e4d55..a8134ad5 100644 --- a/@generated/article/article-update.input.ts +++ b/@generated/article/article-update.input.ts @@ -12,45 +12,46 @@ import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-u @InputType() export class ArticleUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - slug?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - title?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + slug?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - description?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + title?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + description?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - favoritesCount?: IntFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) - active?: NullableBoolFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {nullable:true}) + favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesNestedInput; + @Field(() => NullableBoolFieldUpdateOperationsInput, {nullable:true}) + active?: NullableBoolFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) - author?: UserUpdateOneRequiredWithoutArticlesNestedInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, {nullable:true}) + tags?: TagUpdateManyWithoutArticlesNestedInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutArticleNestedInput) - comments?: CommentUpdateManyWithoutArticleNestedInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; + + @Field(() => CommentUpdateManyWithoutArticleNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutArticleNestedInput) + comments?: CommentUpdateManyWithoutArticleNestedInput; } diff --git a/@generated/article/article-upsert-with-where-unique-without-author.input.ts b/@generated/article/article-upsert-with-where-unique-without-author.input.ts index 6709543d..dc94e414 100644 --- a/@generated/article/article-upsert-with-where-unique-without-author.input.ts +++ b/@generated/article/article-upsert-with-where-unique-without-author.input.ts @@ -8,15 +8,16 @@ import { ArticleCreateWithoutAuthorInput } from './article-create-without-author @InputType() export class ArticleUpsertWithWhereUniqueWithoutAuthorInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutAuthorInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutAuthorInput) - update!: ArticleUpdateWithoutAuthorInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutAuthorInput, { nullable: false }) - @Type(() => ArticleCreateWithoutAuthorInput) - create!: ArticleCreateWithoutAuthorInput; + @Field(() => ArticleUpdateWithoutAuthorInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutAuthorInput) + update!: ArticleUpdateWithoutAuthorInput; + + @Field(() => ArticleCreateWithoutAuthorInput, {nullable:false}) + @Type(() => ArticleCreateWithoutAuthorInput) + create!: ArticleCreateWithoutAuthorInput; } diff --git a/@generated/article/article-upsert-with-where-unique-without-favorited-by.input.ts b/@generated/article/article-upsert-with-where-unique-without-favorited-by.input.ts index 007a2a00..bdab2462 100644 --- a/@generated/article/article-upsert-with-where-unique-without-favorited-by.input.ts +++ b/@generated/article/article-upsert-with-where-unique-without-favorited-by.input.ts @@ -8,15 +8,16 @@ import { ArticleCreateWithoutFavoritedByInput } from './article-create-without-f @InputType() export class ArticleUpsertWithWhereUniqueWithoutFavoritedByInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutFavoritedByInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutFavoritedByInput) - update!: ArticleUpdateWithoutFavoritedByInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutFavoritedByInput, { nullable: false }) - @Type(() => ArticleCreateWithoutFavoritedByInput) - create!: ArticleCreateWithoutFavoritedByInput; + @Field(() => ArticleUpdateWithoutFavoritedByInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutFavoritedByInput) + update!: ArticleUpdateWithoutFavoritedByInput; + + @Field(() => ArticleCreateWithoutFavoritedByInput, {nullable:false}) + @Type(() => ArticleCreateWithoutFavoritedByInput) + create!: ArticleCreateWithoutFavoritedByInput; } diff --git a/@generated/article/article-upsert-with-where-unique-without-tags.input.ts b/@generated/article/article-upsert-with-where-unique-without-tags.input.ts index cd4a0d85..16df1360 100644 --- a/@generated/article/article-upsert-with-where-unique-without-tags.input.ts +++ b/@generated/article/article-upsert-with-where-unique-without-tags.input.ts @@ -8,15 +8,16 @@ import { ArticleCreateWithoutTagsInput } from './article-create-without-tags.inp @InputType() export class ArticleUpsertWithWhereUniqueWithoutTagsInput { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleUpdateWithoutTagsInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutTagsInput) - update!: ArticleUpdateWithoutTagsInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => ArticleCreateWithoutTagsInput, { nullable: false }) - @Type(() => ArticleCreateWithoutTagsInput) - create!: ArticleCreateWithoutTagsInput; + @Field(() => ArticleUpdateWithoutTagsInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutTagsInput) + update!: ArticleUpdateWithoutTagsInput; + + @Field(() => ArticleCreateWithoutTagsInput, {nullable:false}) + @Type(() => ArticleCreateWithoutTagsInput) + create!: ArticleCreateWithoutTagsInput; } diff --git a/@generated/article/article-upsert-without-comments.input.ts b/@generated/article/article-upsert-without-comments.input.ts index 7e722c9c..26e65aef 100644 --- a/@generated/article/article-upsert-without-comments.input.ts +++ b/@generated/article/article-upsert-without-comments.input.ts @@ -7,15 +7,16 @@ import { ArticleWhereInput } from './article-where.input'; @InputType() export class ArticleUpsertWithoutCommentsInput { - @Field(() => ArticleUpdateWithoutCommentsInput, { nullable: false }) - @Type(() => ArticleUpdateWithoutCommentsInput) - update!: ArticleUpdateWithoutCommentsInput; - @Field(() => ArticleCreateWithoutCommentsInput, { nullable: false }) - @Type(() => ArticleCreateWithoutCommentsInput) - create!: ArticleCreateWithoutCommentsInput; + @Field(() => ArticleUpdateWithoutCommentsInput, {nullable:false}) + @Type(() => ArticleUpdateWithoutCommentsInput) + update!: ArticleUpdateWithoutCommentsInput; - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; + @Field(() => ArticleCreateWithoutCommentsInput, {nullable:false}) + @Type(() => ArticleCreateWithoutCommentsInput) + create!: ArticleCreateWithoutCommentsInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; } diff --git a/@generated/article/article-where-unique.input.ts b/@generated/article/article-where-unique.input.ts index 06cfd057..7d4b108f 100644 --- a/@generated/article/article-where-unique.input.ts +++ b/@generated/article/article-where-unique.input.ts @@ -13,57 +13,58 @@ import { CommentListRelationFilter } from '../comment/comment-list-relation-filt @InputType() export class ArticleWhereUniqueInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - slug?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => [ArticleWhereInput], { nullable: true }) - AND?: Array; + @Field(() => String, {nullable:true}) + slug?: string; - @Field(() => [ArticleWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [ArticleWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [ArticleWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [ArticleWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - title?: StringFilter; + @Field(() => [ArticleWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - description?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + title?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + description?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => IntFilter, { nullable: true }) - favoritesCount?: IntFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => IntFilter, {nullable:true}) + favoritesCount?: IntFilter; - @Field(() => BoolNullableFilter, { nullable: true }) - active?: BoolNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; - @Field(() => TagListRelationFilter, { nullable: true }) - tags?: TagListRelationFilter; + @Field(() => BoolNullableFilter, {nullable:true}) + active?: BoolNullableFilter; - @Field(() => UserScalarRelationFilter, { nullable: true }) - @Type(() => UserScalarRelationFilter) - author?: UserScalarRelationFilter; + @Field(() => TagListRelationFilter, {nullable:true}) + tags?: TagListRelationFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - favoritedBy?: UserListRelationFilter; + @Field(() => UserScalarRelationFilter, {nullable:true}) + @Type(() => UserScalarRelationFilter) + author?: UserScalarRelationFilter; - @Field(() => CommentListRelationFilter, { nullable: true }) - @Type(() => CommentListRelationFilter) - comments?: CommentListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + favoritedBy?: UserListRelationFilter; + + @Field(() => CommentListRelationFilter, {nullable:true}) + @Type(() => CommentListRelationFilter) + comments?: CommentListRelationFilter; } diff --git a/@generated/article/article-where.input.ts b/@generated/article/article-where.input.ts index 0ec5249a..352c9b64 100644 --- a/@generated/article/article-where.input.ts +++ b/@generated/article/article-where.input.ts @@ -12,57 +12,58 @@ import { CommentListRelationFilter } from '../comment/comment-list-relation-filt @InputType() export class ArticleWhereInput { - @Field(() => [ArticleWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [ArticleWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [ArticleWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [ArticleWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [ArticleWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [ArticleWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - slug?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - title?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + slug?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - description?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + title?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + description?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => IntFilter, { nullable: true }) - favoritesCount?: IntFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => IntFilter, {nullable:true}) + favoritesCount?: IntFilter; - @Field(() => BoolNullableFilter, { nullable: true }) - active?: BoolNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; - @Field(() => TagListRelationFilter, { nullable: true }) - tags?: TagListRelationFilter; + @Field(() => BoolNullableFilter, {nullable:true}) + active?: BoolNullableFilter; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - author?: UserWhereInput; + @Field(() => TagListRelationFilter, {nullable:true}) + tags?: TagListRelationFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - favoritedBy?: UserListRelationFilter; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + author?: UserWhereInput; - @Field(() => CommentListRelationFilter, { nullable: true }) - @Type(() => CommentListRelationFilter) - comments?: CommentListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + favoritedBy?: UserListRelationFilter; + + @Field(() => CommentListRelationFilter, {nullable:true}) + @Type(() => CommentListRelationFilter) + comments?: CommentListRelationFilter; } diff --git a/@generated/article/article.model.ts b/@generated/article/article.model.ts index aa998f4c..aef82c2c 100644 --- a/@generated/article/article.model.ts +++ b/@generated/article/article.model.ts @@ -9,48 +9,49 @@ import { ArticleCount } from './article-count.output'; @ObjectType() export class Article { - @Field(() => ID, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - slug!: string; + @Field(() => ID, {nullable:false}) + id!: string; - @Field(() => String, { nullable: false }) - title!: string; + @Field(() => String, {nullable:false}) + slug!: string; - @Field(() => String, { nullable: false }) - description!: string; + @Field(() => String, {nullable:false}) + title!: string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => String, {nullable:false}) + description!: string; - @Field(() => Date, { nullable: false }) - createdAt!: Date; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => Date, { nullable: false }) - updatedAt!: Date; + @Field(() => Date, {nullable:false}) + createdAt!: Date; - @Field(() => Int, { defaultValue: 0, nullable: false }) - favoritesCount!: number; + @Field(() => Date, {nullable:false}) + updatedAt!: Date; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => Int, {defaultValue:0,nullable:false}) + favoritesCount!: number; - @Field(() => Boolean, { defaultValue: true, nullable: true }) - active!: boolean | null; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => [Tag], { nullable: true }) - tags?: Array; + @Field(() => Boolean, {defaultValue:true,nullable:true}) + active!: boolean | null; - @Field(() => User, { nullable: false }) - author?: User; + @Field(() => [Tag], {nullable:true}) + tags?: Array; - @Field(() => [User], { nullable: true }) - favoritedBy?: Array; + @Field(() => User, {nullable:false}) + author?: User; - @Field(() => [Comment], { nullable: true }) - comments?: Array; + @Field(() => [User], {nullable:true}) + favoritedBy?: Array; - @Field(() => ArticleCount, { nullable: false }) - _count?: ArticleCount; + @Field(() => [Comment], {nullable:true}) + comments?: Array; + + @Field(() => ArticleCount, {nullable:false}) + _count?: ArticleCount; } diff --git a/@generated/article/create-many-article.args.ts b/@generated/article/create-many-article.args.ts index fc03b238..0485fa69 100644 --- a/@generated/article/create-many-article.args.ts +++ b/@generated/article/create-many-article.args.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateManyArticleArgs { - @Field(() => [ArticleCreateManyInput], { nullable: false }) - @Type(() => ArticleCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [ArticleCreateManyInput], {nullable:false}) + @Type(() => ArticleCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/article/create-one-article.args.ts b/@generated/article/create-one-article.args.ts index 7dcf3217..a5dc7fa8 100644 --- a/@generated/article/create-one-article.args.ts +++ b/@generated/article/create-one-article.args.ts @@ -5,7 +5,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateOneArticleArgs { - @Field(() => ArticleCreateInput, { nullable: false }) - @Type(() => ArticleCreateInput) - data!: ArticleCreateInput; + + @Field(() => ArticleCreateInput, {nullable:false}) + @Type(() => ArticleCreateInput) + data!: ArticleCreateInput; } diff --git a/@generated/article/delete-many-article.args.ts b/@generated/article/delete-many-article.args.ts index 3707e12b..72603e7d 100644 --- a/@generated/article/delete-many-article.args.ts +++ b/@generated/article/delete-many-article.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { ArticleWhereInput } from './article-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyArticleArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/article/delete-one-article.args.ts b/@generated/article/delete-one-article.args.ts index 335689bd..204c7431 100644 --- a/@generated/article/delete-one-article.args.ts +++ b/@generated/article/delete-one-article.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneArticleArgs { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/article/find-first-article-or-throw.args.ts b/@generated/article/find-first-article-or-throw.args.ts index a6a712a8..86aa0532 100644 --- a/@generated/article/find-first-article-or-throw.args.ts +++ b/@generated/article/find-first-article-or-throw.args.ts @@ -10,22 +10,23 @@ import { ArticleScalarFieldEnum } from './article-scalar-field.enum'; @ArgsType() export class FindFirstArticleOrThrowArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => [ArticleOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ArticleOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ArticleScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ArticleScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ArticleScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ArticleScalarFieldEnum}`>; } diff --git a/@generated/article/find-first-article.args.ts b/@generated/article/find-first-article.args.ts index 56870577..19dbee2c 100644 --- a/@generated/article/find-first-article.args.ts +++ b/@generated/article/find-first-article.args.ts @@ -10,22 +10,23 @@ import { ArticleScalarFieldEnum } from './article-scalar-field.enum'; @ArgsType() export class FindFirstArticleArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => [ArticleOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ArticleOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ArticleScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ArticleScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ArticleScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ArticleScalarFieldEnum}`>; } diff --git a/@generated/article/find-many-article.args.ts b/@generated/article/find-many-article.args.ts index e9b90fa7..87d781df 100644 --- a/@generated/article/find-many-article.args.ts +++ b/@generated/article/find-many-article.args.ts @@ -10,22 +10,23 @@ import { ArticleScalarFieldEnum } from './article-scalar-field.enum'; @ArgsType() export class FindManyArticleArgs { - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; - @Field(() => [ArticleOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; - @Field(() => ArticleWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ArticleOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ArticleWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ArticleScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ArticleScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ArticleScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ArticleScalarFieldEnum}`>; } diff --git a/@generated/article/find-unique-article-or-throw.args.ts b/@generated/article/find-unique-article-or-throw.args.ts index d7742512..7fccda1a 100644 --- a/@generated/article/find-unique-article-or-throw.args.ts +++ b/@generated/article/find-unique-article-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueArticleOrThrowArgs { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/article/find-unique-article.args.ts b/@generated/article/find-unique-article.args.ts index 606b2ff4..bae54595 100644 --- a/@generated/article/find-unique-article.args.ts +++ b/@generated/article/find-unique-article.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueArticleArgs { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/article/update-many-article.args.ts b/@generated/article/update-many-article.args.ts index b020d5de..28ff676f 100644 --- a/@generated/article/update-many-article.args.ts +++ b/@generated/article/update-many-article.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.input'; import { Type } from 'class-transformer'; import { ArticleWhereInput } from './article-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyArticleArgs { - @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) - @Type(() => ArticleUpdateManyMutationInput) - data!: ArticleUpdateManyMutationInput; - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - where?: ArticleWhereInput; + @Field(() => ArticleUpdateManyMutationInput, {nullable:false}) + @Type(() => ArticleUpdateManyMutationInput) + data!: ArticleUpdateManyMutationInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + where?: ArticleWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/article/update-one-article.args.ts b/@generated/article/update-one-article.args.ts index 67139a92..b1c90af2 100644 --- a/@generated/article/update-one-article.args.ts +++ b/@generated/article/update-one-article.args.ts @@ -7,11 +7,12 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; @ArgsType() export class UpdateOneArticleArgs { - @Field(() => ArticleUpdateInput, { nullable: false }) - @Type(() => ArticleUpdateInput) - data!: ArticleUpdateInput; - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => ArticleUpdateInput, {nullable:false}) + @Type(() => ArticleUpdateInput) + data!: ArticleUpdateInput; + + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/article/upsert-one-article.args.ts b/@generated/article/upsert-one-article.args.ts index d3ba8f23..7a1003df 100644 --- a/@generated/article/upsert-one-article.args.ts +++ b/@generated/article/upsert-one-article.args.ts @@ -8,15 +8,16 @@ import { ArticleUpdateInput } from './article-update.input'; @ArgsType() export class UpsertOneArticleArgs { - @Field(() => ArticleWhereUniqueInput, { nullable: false }) - @Type(() => ArticleWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ArticleCreateInput, { nullable: false }) - @Type(() => ArticleCreateInput) - create!: ArticleCreateInput; + @Field(() => ArticleWhereUniqueInput, {nullable:false}) + @Type(() => ArticleWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => ArticleUpdateInput, { nullable: false }) - @Type(() => ArticleUpdateInput) - update!: ArticleUpdateInput; + @Field(() => ArticleCreateInput, {nullable:false}) + @Type(() => ArticleCreateInput) + create!: ArticleCreateInput; + + @Field(() => ArticleUpdateInput, {nullable:false}) + @Type(() => ArticleUpdateInput) + update!: ArticleUpdateInput; } diff --git a/@generated/comment/aggregate-comment.output.ts b/@generated/comment/aggregate-comment.output.ts index 59c747eb..3090623a 100644 --- a/@generated/comment/aggregate-comment.output.ts +++ b/@generated/comment/aggregate-comment.output.ts @@ -6,12 +6,13 @@ import { CommentMaxAggregate } from './comment-max-aggregate.output'; @ObjectType() export class AggregateComment { - @Field(() => CommentCountAggregate, { nullable: true }) - _count?: CommentCountAggregate; - @Field(() => CommentMinAggregate, { nullable: true }) - _min?: CommentMinAggregate; + @Field(() => CommentCountAggregate, {nullable:true}) + _count?: CommentCountAggregate; - @Field(() => CommentMaxAggregate, { nullable: true }) - _max?: CommentMaxAggregate; + @Field(() => CommentMinAggregate, {nullable:true}) + _min?: CommentMinAggregate; + + @Field(() => CommentMaxAggregate, {nullable:true}) + _max?: CommentMaxAggregate; } diff --git a/@generated/comment/comment-aggregate.args.ts b/@generated/comment/comment-aggregate.args.ts index c6f49a37..ad8d3bed 100644 --- a/@generated/comment/comment-aggregate.args.ts +++ b/@generated/comment/comment-aggregate.args.ts @@ -12,28 +12,29 @@ import { CommentMaxAggregateInput } from './comment-max-aggregate.input'; @ArgsType() export class CommentAggregateArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; - @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; - @Field(() => CommentWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [CommentOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => CommentWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => CommentCountAggregateInput, { nullable: true }) - _count?: CommentCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => CommentMinAggregateInput, { nullable: true }) - _min?: CommentMinAggregateInput; + @Field(() => CommentCountAggregateInput, {nullable:true}) + _count?: CommentCountAggregateInput; - @Field(() => CommentMaxAggregateInput, { nullable: true }) - _max?: CommentMaxAggregateInput; + @Field(() => CommentMinAggregateInput, {nullable:true}) + _min?: CommentMinAggregateInput; + + @Field(() => CommentMaxAggregateInput, {nullable:true}) + _max?: CommentMaxAggregateInput; } diff --git a/@generated/comment/comment-count-aggregate.input.ts b/@generated/comment/comment-count-aggregate.input.ts index 75d67faf..e50a941c 100644 --- a/@generated/comment/comment-count-aggregate.input.ts +++ b/@generated/comment/comment-count-aggregate.input.ts @@ -3,24 +3,25 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - articleId?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + articleId?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/comment/comment-count-aggregate.output.ts b/@generated/comment/comment-count-aggregate.output.ts index fd7bfc02..d9d20242 100644 --- a/@generated/comment/comment-count-aggregate.output.ts +++ b/@generated/comment/comment-count-aggregate.output.ts @@ -4,24 +4,25 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class CommentCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - createdAt!: number; + @Field(() => Int, {nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - updatedAt!: number; + @Field(() => Int, {nullable:false}) + createdAt!: number; - @Field(() => Int, { nullable: false }) - body!: number; + @Field(() => Int, {nullable:false}) + updatedAt!: number; - @Field(() => Int, { nullable: false }) - authorId!: number; + @Field(() => Int, {nullable:false}) + body!: number; - @Field(() => Int, { nullable: false }) - articleId!: number; + @Field(() => Int, {nullable:false}) + authorId!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + articleId!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/comment/comment-count-order-by-aggregate.input.ts b/@generated/comment/comment-count-order-by-aggregate.input.ts index 4eb9edea..a3df4c58 100644 --- a/@generated/comment/comment-count-order-by-aggregate.input.ts +++ b/@generated/comment/comment-count-order-by-aggregate.input.ts @@ -4,21 +4,22 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class CommentCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - articleId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + articleId?: `${SortOrder}`; } diff --git a/@generated/comment/comment-create-many-article-input-envelope.input.ts b/@generated/comment/comment-create-many-article-input-envelope.input.ts index 40ea2d07..c008db09 100644 --- a/@generated/comment/comment-create-many-article-input-envelope.input.ts +++ b/@generated/comment/comment-create-many-article-input-envelope.input.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @InputType() export class CommentCreateManyArticleInputEnvelope { - @Field(() => [CommentCreateManyArticleInput], { nullable: false }) - @Type(() => CommentCreateManyArticleInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [CommentCreateManyArticleInput], {nullable:false}) + @Type(() => CommentCreateManyArticleInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/comment/comment-create-many-article.input.ts b/@generated/comment/comment-create-many-article.input.ts index 85509527..3788547d 100644 --- a/@generated/comment/comment-create-many-article.input.ts +++ b/@generated/comment/comment-create-many-article.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentCreateManyArticleInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => String, {nullable:false}) + authorId!: string; } diff --git a/@generated/comment/comment-create-many-author-input-envelope.input.ts b/@generated/comment/comment-create-many-author-input-envelope.input.ts index 61137975..2dd543bd 100644 --- a/@generated/comment/comment-create-many-author-input-envelope.input.ts +++ b/@generated/comment/comment-create-many-author-input-envelope.input.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @InputType() export class CommentCreateManyAuthorInputEnvelope { - @Field(() => [CommentCreateManyAuthorInput], { nullable: false }) - @Type(() => CommentCreateManyAuthorInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [CommentCreateManyAuthorInput], {nullable:false}) + @Type(() => CommentCreateManyAuthorInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/comment/comment-create-many-author.input.ts b/@generated/comment/comment-create-many-author.input.ts index 7d5866c1..de176c48 100644 --- a/@generated/comment/comment-create-many-author.input.ts +++ b/@generated/comment/comment-create-many-author.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentCreateManyAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-create-many.input.ts b/@generated/comment/comment-create-many.input.ts index b636adba..14919a8d 100644 --- a/@generated/comment/comment-create-many.input.ts +++ b/@generated/comment/comment-create-many.input.ts @@ -3,21 +3,22 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentCreateManyInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:false}) + authorId!: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-create-nested-many-without-article.input.ts b/@generated/comment/comment-create-nested-many-without-article.input.ts index 8f967a15..732d9c62 100644 --- a/@generated/comment/comment-create-nested-many-without-article.input.ts +++ b/@generated/comment/comment-create-nested-many-without-article.input.ts @@ -9,19 +9,20 @@ import { CommentWhereUniqueInput } from './comment-where-unique.input'; @InputType() export class CommentCreateNestedManyWithoutArticleInput { - @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateWithoutArticleInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutArticleInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateWithoutArticleInput) + create?: Array; - @Field(() => CommentCreateManyArticleInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyArticleInputEnvelope) - createMany?: CommentCreateManyArticleInputEnvelope; + @Field(() => [CommentCreateOrConnectWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutArticleInput) + connectOrCreate?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => CommentCreateManyArticleInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyArticleInputEnvelope) + createMany?: CommentCreateManyArticleInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/comment/comment-create-nested-many-without-author.input.ts b/@generated/comment/comment-create-nested-many-without-author.input.ts index 673c0970..4a7d96d8 100644 --- a/@generated/comment/comment-create-nested-many-without-author.input.ts +++ b/@generated/comment/comment-create-nested-many-without-author.input.ts @@ -9,19 +9,20 @@ import { CommentWhereUniqueInput } from './comment-where-unique.input'; @InputType() export class CommentCreateNestedManyWithoutAuthorInput { - @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateWithoutAuthorInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; - @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyAuthorInputEnvelope) - createMany?: CommentCreateManyAuthorInputEnvelope; + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => CommentCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/comment/comment-create-or-connect-without-article.input.ts b/@generated/comment/comment-create-or-connect-without-article.input.ts index 8ab1608d..4b4e0ddf 100644 --- a/@generated/comment/comment-create-or-connect-without-article.input.ts +++ b/@generated/comment/comment-create-or-connect-without-article.input.ts @@ -7,11 +7,12 @@ import { CommentCreateWithoutArticleInput } from './comment-create-without-artic @InputType() export class CommentCreateOrConnectWithoutArticleInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentCreateWithoutArticleInput, { nullable: false }) - @Type(() => CommentCreateWithoutArticleInput) - create!: CommentCreateWithoutArticleInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => CommentCreateWithoutArticleInput, {nullable:false}) + @Type(() => CommentCreateWithoutArticleInput) + create!: CommentCreateWithoutArticleInput; } diff --git a/@generated/comment/comment-create-or-connect-without-author.input.ts b/@generated/comment/comment-create-or-connect-without-author.input.ts index 5e2cd441..d70d5bfd 100644 --- a/@generated/comment/comment-create-or-connect-without-author.input.ts +++ b/@generated/comment/comment-create-or-connect-without-author.input.ts @@ -7,11 +7,12 @@ import { CommentCreateWithoutAuthorInput } from './comment-create-without-author @InputType() export class CommentCreateOrConnectWithoutAuthorInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentCreateWithoutAuthorInput, { nullable: false }) - @Type(() => CommentCreateWithoutAuthorInput) - create!: CommentCreateWithoutAuthorInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => CommentCreateWithoutAuthorInput, {nullable:false}) + @Type(() => CommentCreateWithoutAuthorInput) + create!: CommentCreateWithoutAuthorInput; } diff --git a/@generated/comment/comment-create-without-article.input.ts b/@generated/comment/comment-create-without-article.input.ts index ab79a09a..b9c8937c 100644 --- a/@generated/comment/comment-create-without-article.input.ts +++ b/@generated/comment/comment-create-without-article.input.ts @@ -5,19 +5,20 @@ import { Type } from 'class-transformer'; @InputType() export class CommentCreateWithoutArticleInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutCommentsInput) - author!: UserCreateNestedOneWithoutCommentsInput; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutCommentsInput) + author!: UserCreateNestedOneWithoutCommentsInput; } diff --git a/@generated/comment/comment-create-without-author.input.ts b/@generated/comment/comment-create-without-author.input.ts index 86d9aaba..55c39af5 100644 --- a/@generated/comment/comment-create-without-author.input.ts +++ b/@generated/comment/comment-create-without-author.input.ts @@ -5,19 +5,20 @@ import { Type } from 'class-transformer'; @InputType() export class CommentCreateWithoutAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => ArticleCreateNestedOneWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateNestedOneWithoutCommentsInput) - article?: ArticleCreateNestedOneWithoutCommentsInput; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => ArticleCreateNestedOneWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateNestedOneWithoutCommentsInput) + article?: ArticleCreateNestedOneWithoutCommentsInput; } diff --git a/@generated/comment/comment-create.input.ts b/@generated/comment/comment-create.input.ts index 82fa85e1..fb9dc042 100644 --- a/@generated/comment/comment-create.input.ts +++ b/@generated/comment/comment-create.input.ts @@ -6,23 +6,24 @@ import { ArticleCreateNestedOneWithoutCommentsInput } from '../article/article-c @InputType() export class CommentCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutCommentsInput) - author!: UserCreateNestedOneWithoutCommentsInput; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => ArticleCreateNestedOneWithoutCommentsInput, { nullable: true }) - @Type(() => ArticleCreateNestedOneWithoutCommentsInput) - article?: ArticleCreateNestedOneWithoutCommentsInput; + @Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutCommentsInput) + author!: UserCreateNestedOneWithoutCommentsInput; + + @Field(() => ArticleCreateNestedOneWithoutCommentsInput, {nullable:true}) + @Type(() => ArticleCreateNestedOneWithoutCommentsInput) + article?: ArticleCreateNestedOneWithoutCommentsInput; } diff --git a/@generated/comment/comment-group-by.args.ts b/@generated/comment/comment-group-by.args.ts index 111fc742..626f41c5 100644 --- a/@generated/comment/comment-group-by.args.ts +++ b/@generated/comment/comment-group-by.args.ts @@ -12,31 +12,32 @@ import { CommentMaxAggregateInput } from './comment-max-aggregate.input'; @ArgsType() export class CommentGroupByArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; - @Field(() => [CommentOrderByWithAggregationInput], { nullable: true }) - orderBy?: Array; + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; - @Field(() => [CommentScalarFieldEnum], { nullable: false }) - by!: Array<`${CommentScalarFieldEnum}`>; + @Field(() => [CommentOrderByWithAggregationInput], {nullable:true}) + orderBy?: Array; - @Field(() => CommentScalarWhereWithAggregatesInput, { nullable: true }) - having?: CommentScalarWhereWithAggregatesInput; + @Field(() => [CommentScalarFieldEnum], {nullable:false}) + by!: Array<`${CommentScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => CommentScalarWhereWithAggregatesInput, {nullable:true}) + having?: CommentScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => CommentCountAggregateInput, { nullable: true }) - _count?: CommentCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => CommentMinAggregateInput, { nullable: true }) - _min?: CommentMinAggregateInput; + @Field(() => CommentCountAggregateInput, {nullable:true}) + _count?: CommentCountAggregateInput; - @Field(() => CommentMaxAggregateInput, { nullable: true }) - _max?: CommentMaxAggregateInput; + @Field(() => CommentMinAggregateInput, {nullable:true}) + _min?: CommentMinAggregateInput; + + @Field(() => CommentMaxAggregateInput, {nullable:true}) + _max?: CommentMaxAggregateInput; } diff --git a/@generated/comment/comment-group-by.output.ts b/@generated/comment/comment-group-by.output.ts index 0969c04e..956d0f2c 100644 --- a/@generated/comment/comment-group-by.output.ts +++ b/@generated/comment/comment-group-by.output.ts @@ -6,30 +6,31 @@ import { CommentMaxAggregate } from './comment-max-aggregate.output'; @ObjectType() export class CommentGroupBy { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: false }) - createdAt!: Date | string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => Date, { nullable: false }) - updatedAt!: Date | string; + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => CommentCountAggregate, { nullable: true }) - _count?: CommentCountAggregate; + @Field(() => String, {nullable:true}) + articleId?: string; - @Field(() => CommentMinAggregate, { nullable: true }) - _min?: CommentMinAggregate; + @Field(() => CommentCountAggregate, {nullable:true}) + _count?: CommentCountAggregate; - @Field(() => CommentMaxAggregate, { nullable: true }) - _max?: CommentMaxAggregate; + @Field(() => CommentMinAggregate, {nullable:true}) + _min?: CommentMinAggregate; + + @Field(() => CommentMaxAggregate, {nullable:true}) + _max?: CommentMaxAggregate; } diff --git a/@generated/comment/comment-list-relation-filter.input.ts b/@generated/comment/comment-list-relation-filter.input.ts index 7e058603..5f2ca5b2 100644 --- a/@generated/comment/comment-list-relation-filter.input.ts +++ b/@generated/comment/comment-list-relation-filter.input.ts @@ -4,12 +4,13 @@ import { CommentWhereInput } from './comment-where.input'; @InputType() export class CommentListRelationFilter { - @Field(() => CommentWhereInput, { nullable: true }) - every?: CommentWhereInput; - @Field(() => CommentWhereInput, { nullable: true }) - some?: CommentWhereInput; + @Field(() => CommentWhereInput, {nullable:true}) + every?: CommentWhereInput; - @Field(() => CommentWhereInput, { nullable: true }) - none?: CommentWhereInput; + @Field(() => CommentWhereInput, {nullable:true}) + some?: CommentWhereInput; + + @Field(() => CommentWhereInput, {nullable:true}) + none?: CommentWhereInput; } diff --git a/@generated/comment/comment-max-aggregate.input.ts b/@generated/comment/comment-max-aggregate.input.ts index fdeb0b9d..251fedcc 100644 --- a/@generated/comment/comment-max-aggregate.input.ts +++ b/@generated/comment/comment-max-aggregate.input.ts @@ -3,21 +3,22 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - articleId?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; + + @Field(() => Boolean, {nullable:true}) + articleId?: true; } diff --git a/@generated/comment/comment-max-aggregate.output.ts b/@generated/comment/comment-max-aggregate.output.ts index ab979fb7..6f437680 100644 --- a/@generated/comment/comment-max-aggregate.output.ts +++ b/@generated/comment/comment-max-aggregate.output.ts @@ -3,21 +3,22 @@ import { ObjectType } from '@nestjs/graphql'; @ObjectType() export class CommentMaxAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: true }) - body?: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - authorId?: string; + @Field(() => String, {nullable:true}) + body?: string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:true}) + authorId?: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-max-order-by-aggregate.input.ts b/@generated/comment/comment-max-order-by-aggregate.input.ts index 4b26db01..47bfd543 100644 --- a/@generated/comment/comment-max-order-by-aggregate.input.ts +++ b/@generated/comment/comment-max-order-by-aggregate.input.ts @@ -4,21 +4,22 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class CommentMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - articleId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + articleId?: `${SortOrder}`; } diff --git a/@generated/comment/comment-min-aggregate.input.ts b/@generated/comment/comment-min-aggregate.input.ts index 44330cad..dc195f09 100644 --- a/@generated/comment/comment-min-aggregate.input.ts +++ b/@generated/comment/comment-min-aggregate.input.ts @@ -3,21 +3,22 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - createdAt?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - updatedAt?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; - @Field(() => Boolean, { nullable: true }) - body?: true; + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; - @Field(() => Boolean, { nullable: true }) - authorId?: true; + @Field(() => Boolean, {nullable:true}) + body?: true; - @Field(() => Boolean, { nullable: true }) - articleId?: true; + @Field(() => Boolean, {nullable:true}) + authorId?: true; + + @Field(() => Boolean, {nullable:true}) + articleId?: true; } diff --git a/@generated/comment/comment-min-aggregate.output.ts b/@generated/comment/comment-min-aggregate.output.ts index 90824433..e54c1bca 100644 --- a/@generated/comment/comment-min-aggregate.output.ts +++ b/@generated/comment/comment-min-aggregate.output.ts @@ -3,21 +3,22 @@ import { ObjectType } from '@nestjs/graphql'; @ObjectType() export class CommentMinAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: true }) - body?: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - authorId?: string; + @Field(() => String, {nullable:true}) + body?: string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:true}) + authorId?: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-min-order-by-aggregate.input.ts b/@generated/comment/comment-min-order-by-aggregate.input.ts index 5a6556c7..da6a6593 100644 --- a/@generated/comment/comment-min-order-by-aggregate.input.ts +++ b/@generated/comment/comment-min-order-by-aggregate.input.ts @@ -4,21 +4,22 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class CommentMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - articleId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + articleId?: `${SortOrder}`; } diff --git a/@generated/comment/comment-order-by-relation-aggregate.input.ts b/@generated/comment/comment-order-by-relation-aggregate.input.ts index 5468971d..5415739c 100644 --- a/@generated/comment/comment-order-by-relation-aggregate.input.ts +++ b/@generated/comment/comment-order-by-relation-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class CommentOrderByRelationAggregateInput { - @Field(() => SortOrder, { nullable: true }) - _count?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + _count?: `${SortOrder}`; } diff --git a/@generated/comment/comment-order-by-relevance-field.enum.ts b/@generated/comment/comment-order-by-relevance-field.enum.ts index 9e0adcd2..60415254 100644 --- a/@generated/comment/comment-order-by-relevance-field.enum.ts +++ b/@generated/comment/comment-order-by-relevance-field.enum.ts @@ -1,13 +1,11 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentOrderByRelevanceFieldEnum { - id = 'id', - body = 'body', - authorId = 'authorId', - articleId = 'articleId', + + + + } -registerEnumType(CommentOrderByRelevanceFieldEnum, { - name: 'CommentOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(CommentOrderByRelevanceFieldEnum, { name: 'CommentOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/comment/comment-order-by-relevance.input.ts b/@generated/comment/comment-order-by-relevance.input.ts index 9e3eb172..a8595f41 100644 --- a/@generated/comment/comment-order-by-relevance.input.ts +++ b/@generated/comment/comment-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class CommentOrderByRelevanceInput { - @Field(() => [CommentOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${CommentOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [CommentOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${CommentOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/comment/comment-order-by-with-aggregation.input.ts b/@generated/comment/comment-order-by-with-aggregation.input.ts index 19f1288f..6a74dfc3 100644 --- a/@generated/comment/comment-order-by-with-aggregation.input.ts +++ b/@generated/comment/comment-order-by-with-aggregation.input.ts @@ -8,30 +8,31 @@ import { CommentMinOrderByAggregateInput } from './comment-min-order-by-aggregat @InputType() export class CommentOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - articleId?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; - @Field(() => CommentCountOrderByAggregateInput, { nullable: true }) - _count?: CommentCountOrderByAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + articleId?: SortOrderInput; - @Field(() => CommentMaxOrderByAggregateInput, { nullable: true }) - _max?: CommentMaxOrderByAggregateInput; + @Field(() => CommentCountOrderByAggregateInput, {nullable:true}) + _count?: CommentCountOrderByAggregateInput; - @Field(() => CommentMinOrderByAggregateInput, { nullable: true }) - _min?: CommentMinOrderByAggregateInput; + @Field(() => CommentMaxOrderByAggregateInput, {nullable:true}) + _max?: CommentMaxOrderByAggregateInput; + + @Field(() => CommentMinOrderByAggregateInput, {nullable:true}) + _min?: CommentMinOrderByAggregateInput; } diff --git a/@generated/comment/comment-order-by-with-relation.input.ts b/@generated/comment/comment-order-by-with-relation.input.ts index 9d2b9467..2975aa7e 100644 --- a/@generated/comment/comment-order-by-with-relation.input.ts +++ b/@generated/comment/comment-order-by-with-relation.input.ts @@ -9,32 +9,33 @@ import { CommentOrderByRelevanceInput } from './comment-order-by-relevance.input @InputType() export class CommentOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - createdAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - updatedAt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + createdAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - body?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + updatedAt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - authorId?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + body?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - articleId?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + authorId?: `${SortOrder}`; - @Field(() => UserOrderByWithRelationInput, { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - author?: UserOrderByWithRelationInput; + @Field(() => SortOrderInput, {nullable:true}) + articleId?: SortOrderInput; - @Field(() => ArticleOrderByWithRelationInput, { nullable: true }) - @Type(() => ArticleOrderByWithRelationInput) - article?: ArticleOrderByWithRelationInput; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + author?: UserOrderByWithRelationInput; - @Field(() => CommentOrderByRelevanceInput, { nullable: true }) - _relevance?: CommentOrderByRelevanceInput; + @Field(() => ArticleOrderByWithRelationInput, {nullable:true}) + @Type(() => ArticleOrderByWithRelationInput) + article?: ArticleOrderByWithRelationInput; + + @Field(() => CommentOrderByRelevanceInput, {nullable:true}) + _relevance?: CommentOrderByRelevanceInput; } diff --git a/@generated/comment/comment-scalar-field.enum.ts b/@generated/comment/comment-scalar-field.enum.ts index 075d0872..af8183b6 100644 --- a/@generated/comment/comment-scalar-field.enum.ts +++ b/@generated/comment/comment-scalar-field.enum.ts @@ -1,15 +1,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentScalarFieldEnum { - id = 'id', - createdAt = 'createdAt', - updatedAt = 'updatedAt', - body = 'body', - authorId = 'authorId', - articleId = 'articleId', + + + + + + } -registerEnumType(CommentScalarFieldEnum, { - name: 'CommentScalarFieldEnum', - description: undefined, -}); + +registerEnumType(CommentScalarFieldEnum, { name: 'CommentScalarFieldEnum', description: undefined }) diff --git a/@generated/comment/comment-scalar-where-with-aggregates.input.ts b/@generated/comment/comment-scalar-where-with-aggregates.input.ts index 8d613335..3d4caaac 100644 --- a/@generated/comment/comment-scalar-where-with-aggregates.input.ts +++ b/@generated/comment/comment-scalar-where-with-aggregates.input.ts @@ -6,30 +6,31 @@ import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-wi @InputType() export class CommentScalarWhereWithAggregatesInput { - @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) - AND?: Array; - @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) - OR?: Array; + @Field(() => [CommentScalarWhereWithAggregatesInput], {nullable:true}) + AND?: Array; - @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) - NOT?: Array; + @Field(() => [CommentScalarWhereWithAggregatesInput], {nullable:true}) + OR?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - id?: StringWithAggregatesFilter; + @Field(() => [CommentScalarWhereWithAggregatesInput], {nullable:true}) + NOT?: Array; - @Field(() => DateTimeWithAggregatesFilter, { nullable: true }) - createdAt?: DateTimeWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, { nullable: true }) - updatedAt?: DateTimeWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - body?: StringWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - authorId?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + body?: StringWithAggregatesFilter; - @Field(() => StringNullableWithAggregatesFilter, { nullable: true }) - articleId?: StringNullableWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + authorId?: StringWithAggregatesFilter; + + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) + articleId?: StringNullableWithAggregatesFilter; } diff --git a/@generated/comment/comment-scalar-where.input.ts b/@generated/comment/comment-scalar-where.input.ts index 2df79cb9..030467d5 100644 --- a/@generated/comment/comment-scalar-where.input.ts +++ b/@generated/comment/comment-scalar-where.input.ts @@ -6,30 +6,31 @@ import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; @InputType() export class CommentScalarWhereInput { - @Field(() => [CommentScalarWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [CommentScalarWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [CommentScalarWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [CommentScalarWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - articleId?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; + + @Field(() => StringNullableFilter, {nullable:true}) + articleId?: StringNullableFilter; } diff --git a/@generated/comment/comment-unchecked-create-nested-many-without-article.input.ts b/@generated/comment/comment-unchecked-create-nested-many-without-article.input.ts index 9a93249e..7ce7b77c 100644 --- a/@generated/comment/comment-unchecked-create-nested-many-without-article.input.ts +++ b/@generated/comment/comment-unchecked-create-nested-many-without-article.input.ts @@ -9,19 +9,20 @@ import { CommentWhereUniqueInput } from './comment-where-unique.input'; @InputType() export class CommentUncheckedCreateNestedManyWithoutArticleInput { - @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateWithoutArticleInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutArticleInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateWithoutArticleInput) + create?: Array; - @Field(() => CommentCreateManyArticleInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyArticleInputEnvelope) - createMany?: CommentCreateManyArticleInputEnvelope; + @Field(() => [CommentCreateOrConnectWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutArticleInput) + connectOrCreate?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => CommentCreateManyArticleInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyArticleInputEnvelope) + createMany?: CommentCreateManyArticleInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts b/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts index 818e5765..41ebd9b4 100644 --- a/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts +++ b/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts @@ -9,19 +9,20 @@ import { CommentWhereUniqueInput } from './comment-where-unique.input'; @InputType() export class CommentUncheckedCreateNestedManyWithoutAuthorInput { - @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateWithoutAuthorInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; - @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyAuthorInputEnvelope) - createMany?: CommentCreateManyAuthorInputEnvelope; + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => CommentCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/comment/comment-unchecked-create-without-article.input.ts b/@generated/comment/comment-unchecked-create-without-article.input.ts index 7a7fc62e..0cdb1773 100644 --- a/@generated/comment/comment-unchecked-create-without-article.input.ts +++ b/@generated/comment/comment-unchecked-create-without-article.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutArticleInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => String, {nullable:false}) + authorId!: string; } diff --git a/@generated/comment/comment-unchecked-create-without-author.input.ts b/@generated/comment/comment-unchecked-create-without-author.input.ts index e1e5c600..b5e2825a 100644 --- a/@generated/comment/comment-unchecked-create-without-author.input.ts +++ b/@generated/comment/comment-unchecked-create-without-author.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutAuthorInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:false}) + body!: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-unchecked-create.input.ts b/@generated/comment/comment-unchecked-create.input.ts index f1b76c78..73af0b75 100644 --- a/@generated/comment/comment-unchecked-create.input.ts +++ b/@generated/comment/comment-unchecked-create.input.ts @@ -3,21 +3,22 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - createdAt?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Date, { nullable: true }) - updatedAt?: Date | string; + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => String, { nullable: true }) - articleId?: string; + @Field(() => String, {nullable:false}) + authorId!: string; + + @Field(() => String, {nullable:true}) + articleId?: string; } diff --git a/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts b/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts index fbdd8626..9541760f 100644 --- a/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts @@ -13,47 +13,48 @@ import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() export class CommentUncheckedUpdateManyWithoutArticleNestedInput { - @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateWithoutArticleInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutArticleInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateWithoutArticleInput) + create?: Array; - @Field(() => [CommentUpsertWithWhereUniqueWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpsertWithWhereUniqueWithoutArticleInput) - upsert?: Array; + @Field(() => [CommentCreateOrConnectWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutArticleInput) + connectOrCreate?: Array; - @Field(() => CommentCreateManyArticleInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyArticleInputEnvelope) - createMany?: CommentCreateManyArticleInputEnvelope; + @Field(() => [CommentUpsertWithWhereUniqueWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpsertWithWhereUniqueWithoutArticleInput) + upsert?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - set?: Array>; + @Field(() => CommentCreateManyArticleInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyArticleInputEnvelope) + createMany?: CommentCreateManyArticleInputEnvelope; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - disconnect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + set?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - delete?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + delete?: Array>; - @Field(() => [CommentUpdateWithWhereUniqueWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpdateWithWhereUniqueWithoutArticleInput) - update?: Array; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; - @Field(() => [CommentUpdateManyWithWhereWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpdateManyWithWhereWithoutArticleInput) - updateMany?: Array; + @Field(() => [CommentUpdateWithWhereUniqueWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpdateWithWhereUniqueWithoutArticleInput) + update?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - @Type(() => CommentScalarWhereInput) - deleteMany?: Array; + @Field(() => [CommentUpdateManyWithWhereWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpdateManyWithWhereWithoutArticleInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], {nullable:true}) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/comment/comment-unchecked-update-many-without-article.input.ts b/@generated/comment/comment-unchecked-update-many-without-article.input.ts index b9b73272..05ce19da 100644 --- a/@generated/comment/comment-unchecked-update-many-without-article.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-article.input.ts @@ -6,18 +6,19 @@ import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedUpdateManyWithoutArticleInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts b/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts index 3ea7f1df..82e5083c 100644 --- a/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts @@ -13,47 +13,48 @@ import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() export class CommentUncheckedUpdateManyWithoutAuthorNestedInput { - @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateWithoutAuthorInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; - @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) - upsert?: Array; + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyAuthorInputEnvelope) - createMany?: CommentCreateManyAuthorInputEnvelope; + @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - set?: Array>; + @Field(() => CommentCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - disconnect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + set?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - delete?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + delete?: Array>; - @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) - update?: Array; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; - @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) - updateMany?: Array; + @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - @Type(() => CommentScalarWhereInput) - deleteMany?: Array; + @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], {nullable:true}) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/comment/comment-unchecked-update-many-without-author.input.ts b/@generated/comment/comment-unchecked-update-many-without-author.input.ts index a2c33a6e..62c4f96c 100644 --- a/@generated/comment/comment-unchecked-update-many-without-author.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-author.input.ts @@ -7,18 +7,19 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class CommentUncheckedUpdateManyWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - articleId?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + articleId?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-unchecked-update-many.input.ts b/@generated/comment/comment-unchecked-update-many.input.ts index 5aef42a4..007ef1e8 100644 --- a/@generated/comment/comment-unchecked-update-many.input.ts +++ b/@generated/comment/comment-unchecked-update-many.input.ts @@ -7,21 +7,22 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class CommentUncheckedUpdateManyInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - articleId?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + articleId?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-unchecked-update-without-article.input.ts b/@generated/comment/comment-unchecked-update-without-article.input.ts index 642fe026..4881765b 100644 --- a/@generated/comment/comment-unchecked-update-without-article.input.ts +++ b/@generated/comment/comment-unchecked-update-without-article.input.ts @@ -6,18 +6,19 @@ import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedUpdateWithoutArticleInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-unchecked-update-without-author.input.ts b/@generated/comment/comment-unchecked-update-without-author.input.ts index 5973f8ba..f9b8e909 100644 --- a/@generated/comment/comment-unchecked-update-without-author.input.ts +++ b/@generated/comment/comment-unchecked-update-without-author.input.ts @@ -7,18 +7,19 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class CommentUncheckedUpdateWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - articleId?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + articleId?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-unchecked-update.input.ts b/@generated/comment/comment-unchecked-update.input.ts index 3cb75246..b4ec369a 100644 --- a/@generated/comment/comment-unchecked-update.input.ts +++ b/@generated/comment/comment-unchecked-update.input.ts @@ -7,21 +7,22 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class CommentUncheckedUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - authorId?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - articleId?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + articleId?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-update-many-mutation.input.ts b/@generated/comment/comment-update-many-mutation.input.ts index 702eae50..51255562 100644 --- a/@generated/comment/comment-update-many-mutation.input.ts +++ b/@generated/comment/comment-update-many-mutation.input.ts @@ -6,15 +6,16 @@ import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUpdateManyMutationInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; } diff --git a/@generated/comment/comment-update-many-with-where-without-article.input.ts b/@generated/comment/comment-update-many-with-where-without-article.input.ts index 21236f66..5b2e85e0 100644 --- a/@generated/comment/comment-update-many-with-where-without-article.input.ts +++ b/@generated/comment/comment-update-many-with-where-without-article.input.ts @@ -6,11 +6,12 @@ import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.i @InputType() export class CommentUpdateManyWithWhereWithoutArticleInput { - @Field(() => CommentScalarWhereInput, { nullable: false }) - @Type(() => CommentScalarWhereInput) - where!: CommentScalarWhereInput; - @Field(() => CommentUpdateManyMutationInput, { nullable: false }) - @Type(() => CommentUpdateManyMutationInput) - data!: CommentUpdateManyMutationInput; + @Field(() => CommentScalarWhereInput, {nullable:false}) + @Type(() => CommentScalarWhereInput) + where!: CommentScalarWhereInput; + + @Field(() => CommentUpdateManyMutationInput, {nullable:false}) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; } diff --git a/@generated/comment/comment-update-many-with-where-without-author.input.ts b/@generated/comment/comment-update-many-with-where-without-author.input.ts index c14e531f..5ddc8df2 100644 --- a/@generated/comment/comment-update-many-with-where-without-author.input.ts +++ b/@generated/comment/comment-update-many-with-where-without-author.input.ts @@ -6,11 +6,12 @@ import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.i @InputType() export class CommentUpdateManyWithWhereWithoutAuthorInput { - @Field(() => CommentScalarWhereInput, { nullable: false }) - @Type(() => CommentScalarWhereInput) - where!: CommentScalarWhereInput; - @Field(() => CommentUpdateManyMutationInput, { nullable: false }) - @Type(() => CommentUpdateManyMutationInput) - data!: CommentUpdateManyMutationInput; + @Field(() => CommentScalarWhereInput, {nullable:false}) + @Type(() => CommentScalarWhereInput) + where!: CommentScalarWhereInput; + + @Field(() => CommentUpdateManyMutationInput, {nullable:false}) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; } diff --git a/@generated/comment/comment-update-many-without-article-nested.input.ts b/@generated/comment/comment-update-many-without-article-nested.input.ts index 17549924..414d40a7 100644 --- a/@generated/comment/comment-update-many-without-article-nested.input.ts +++ b/@generated/comment/comment-update-many-without-article-nested.input.ts @@ -13,47 +13,48 @@ import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() export class CommentUpdateManyWithoutArticleNestedInput { - @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateWithoutArticleInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutArticleInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutArticleInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateWithoutArticleInput) + create?: Array; - @Field(() => [CommentUpsertWithWhereUniqueWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpsertWithWhereUniqueWithoutArticleInput) - upsert?: Array; + @Field(() => [CommentCreateOrConnectWithoutArticleInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutArticleInput) + connectOrCreate?: Array; - @Field(() => CommentCreateManyArticleInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyArticleInputEnvelope) - createMany?: CommentCreateManyArticleInputEnvelope; + @Field(() => [CommentUpsertWithWhereUniqueWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpsertWithWhereUniqueWithoutArticleInput) + upsert?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - set?: Array>; + @Field(() => CommentCreateManyArticleInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyArticleInputEnvelope) + createMany?: CommentCreateManyArticleInputEnvelope; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - disconnect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + set?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - delete?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + delete?: Array>; - @Field(() => [CommentUpdateWithWhereUniqueWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpdateWithWhereUniqueWithoutArticleInput) - update?: Array; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; - @Field(() => [CommentUpdateManyWithWhereWithoutArticleInput], { nullable: true }) - @Type(() => CommentUpdateManyWithWhereWithoutArticleInput) - updateMany?: Array; + @Field(() => [CommentUpdateWithWhereUniqueWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpdateWithWhereUniqueWithoutArticleInput) + update?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - @Type(() => CommentScalarWhereInput) - deleteMany?: Array; + @Field(() => [CommentUpdateManyWithWhereWithoutArticleInput], {nullable:true}) + @Type(() => CommentUpdateManyWithWhereWithoutArticleInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], {nullable:true}) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/comment/comment-update-many-without-author-nested.input.ts b/@generated/comment/comment-update-many-without-author-nested.input.ts index faf72587..7e670372 100644 --- a/@generated/comment/comment-update-many-without-author-nested.input.ts +++ b/@generated/comment/comment-update-many-without-author-nested.input.ts @@ -13,47 +13,48 @@ import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() export class CommentUpdateManyWithoutAuthorNestedInput { - @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateWithoutAuthorInput) - create?: Array; - @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) - @Type(() => CommentCreateOrConnectWithoutAuthorInput) - connectOrCreate?: Array; + @Field(() => [CommentCreateWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; - @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) - upsert?: Array; + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], {nullable:true}) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; - @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) - @Type(() => CommentCreateManyAuthorInputEnvelope) - createMany?: CommentCreateManyAuthorInputEnvelope; + @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - set?: Array>; + @Field(() => CommentCreateManyAuthorInputEnvelope, {nullable:true}) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - disconnect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + set?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - delete?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array>; - @Field(() => [CommentWhereUniqueInput], { nullable: true }) - @Type(() => CommentWhereUniqueInput) - connect?: Array>; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + delete?: Array>; - @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) - update?: Array; + @Field(() => [CommentWhereUniqueInput], {nullable:true}) + @Type(() => CommentWhereUniqueInput) + connect?: Array>; - @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], { nullable: true }) - @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) - updateMany?: Array; + @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; - @Field(() => [CommentScalarWhereInput], { nullable: true }) - @Type(() => CommentScalarWhereInput) - deleteMany?: Array; + @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], {nullable:true}) + @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], {nullable:true}) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/comment/comment-update-with-where-unique-without-article.input.ts b/@generated/comment/comment-update-with-where-unique-without-article.input.ts index a6733187..73698959 100644 --- a/@generated/comment/comment-update-with-where-unique-without-article.input.ts +++ b/@generated/comment/comment-update-with-where-unique-without-article.input.ts @@ -7,11 +7,12 @@ import { CommentUpdateWithoutArticleInput } from './comment-update-without-artic @InputType() export class CommentUpdateWithWhereUniqueWithoutArticleInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentUpdateWithoutArticleInput, { nullable: false }) - @Type(() => CommentUpdateWithoutArticleInput) - data!: CommentUpdateWithoutArticleInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => CommentUpdateWithoutArticleInput, {nullable:false}) + @Type(() => CommentUpdateWithoutArticleInput) + data!: CommentUpdateWithoutArticleInput; } diff --git a/@generated/comment/comment-update-with-where-unique-without-author.input.ts b/@generated/comment/comment-update-with-where-unique-without-author.input.ts index cd37b1a6..19641b8e 100644 --- a/@generated/comment/comment-update-with-where-unique-without-author.input.ts +++ b/@generated/comment/comment-update-with-where-unique-without-author.input.ts @@ -7,11 +7,12 @@ import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author @InputType() export class CommentUpdateWithWhereUniqueWithoutAuthorInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentUpdateWithoutAuthorInput, { nullable: false }) - @Type(() => CommentUpdateWithoutAuthorInput) - data!: CommentUpdateWithoutAuthorInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => CommentUpdateWithoutAuthorInput, {nullable:false}) + @Type(() => CommentUpdateWithoutAuthorInput) + data!: CommentUpdateWithoutAuthorInput; } diff --git a/@generated/comment/comment-update-without-article.input.ts b/@generated/comment/comment-update-without-article.input.ts index 4e5949d2..b6648901 100644 --- a/@generated/comment/comment-update-without-article.input.ts +++ b/@generated/comment/comment-update-without-article.input.ts @@ -8,19 +8,20 @@ import { Type } from 'class-transformer'; @InputType() export class CommentUpdateWithoutArticleInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) - author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; } diff --git a/@generated/comment/comment-update-without-author.input.ts b/@generated/comment/comment-update-without-author.input.ts index 30071334..df893a24 100644 --- a/@generated/comment/comment-update-without-author.input.ts +++ b/@generated/comment/comment-update-without-author.input.ts @@ -8,19 +8,20 @@ import { Type } from 'class-transformer'; @InputType() export class CommentUpdateWithoutAuthorInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, { nullable: true }) - @Type(() => ArticleUpdateOneWithoutCommentsNestedInput) - article?: ArticleUpdateOneWithoutCommentsNestedInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, {nullable:true}) + @Type(() => ArticleUpdateOneWithoutCommentsNestedInput) + article?: ArticleUpdateOneWithoutCommentsNestedInput; } diff --git a/@generated/comment/comment-update.input.ts b/@generated/comment/comment-update.input.ts index 2a56d21d..0b56e2c8 100644 --- a/@generated/comment/comment-update.input.ts +++ b/@generated/comment/comment-update.input.ts @@ -9,23 +9,24 @@ import { ArticleUpdateOneWithoutCommentsNestedInput } from '../article/article-u @InputType() export class CommentUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) - createdAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @HideField() - updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - body?: StringFieldUpdateOperationsInput; + @HideField() + updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) - author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, { nullable: true }) - @Type(() => ArticleUpdateOneWithoutCommentsNestedInput) - article?: ArticleUpdateOneWithoutCommentsNestedInput; + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + + @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, {nullable:true}) + @Type(() => ArticleUpdateOneWithoutCommentsNestedInput) + article?: ArticleUpdateOneWithoutCommentsNestedInput; } diff --git a/@generated/comment/comment-upsert-with-where-unique-without-article.input.ts b/@generated/comment/comment-upsert-with-where-unique-without-article.input.ts index 7380580a..71ed01fa 100644 --- a/@generated/comment/comment-upsert-with-where-unique-without-article.input.ts +++ b/@generated/comment/comment-upsert-with-where-unique-without-article.input.ts @@ -8,15 +8,16 @@ import { CommentCreateWithoutArticleInput } from './comment-create-without-artic @InputType() export class CommentUpsertWithWhereUniqueWithoutArticleInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentUpdateWithoutArticleInput, { nullable: false }) - @Type(() => CommentUpdateWithoutArticleInput) - update!: CommentUpdateWithoutArticleInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => CommentCreateWithoutArticleInput, { nullable: false }) - @Type(() => CommentCreateWithoutArticleInput) - create!: CommentCreateWithoutArticleInput; + @Field(() => CommentUpdateWithoutArticleInput, {nullable:false}) + @Type(() => CommentUpdateWithoutArticleInput) + update!: CommentUpdateWithoutArticleInput; + + @Field(() => CommentCreateWithoutArticleInput, {nullable:false}) + @Type(() => CommentCreateWithoutArticleInput) + create!: CommentCreateWithoutArticleInput; } diff --git a/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts b/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts index cabb0494..a65f9928 100644 --- a/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts +++ b/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts @@ -8,15 +8,16 @@ import { CommentCreateWithoutAuthorInput } from './comment-create-without-author @InputType() export class CommentUpsertWithWhereUniqueWithoutAuthorInput { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentUpdateWithoutAuthorInput, { nullable: false }) - @Type(() => CommentUpdateWithoutAuthorInput) - update!: CommentUpdateWithoutAuthorInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => CommentCreateWithoutAuthorInput, { nullable: false }) - @Type(() => CommentCreateWithoutAuthorInput) - create!: CommentCreateWithoutAuthorInput; + @Field(() => CommentUpdateWithoutAuthorInput, {nullable:false}) + @Type(() => CommentUpdateWithoutAuthorInput) + update!: CommentUpdateWithoutAuthorInput; + + @Field(() => CommentCreateWithoutAuthorInput, {nullable:false}) + @Type(() => CommentCreateWithoutAuthorInput) + create!: CommentCreateWithoutAuthorInput; } diff --git a/@generated/comment/comment-where-unique.input.ts b/@generated/comment/comment-where-unique.input.ts index b9e693fa..8f7d0e26 100644 --- a/@generated/comment/comment-where-unique.input.ts +++ b/@generated/comment/comment-where-unique.input.ts @@ -10,38 +10,39 @@ import { ArticleNullableScalarRelationFilter } from '../article/article-nullable @InputType() export class CommentWhereUniqueInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => [CommentWhereInput], { nullable: true }) - AND?: Array; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => [CommentWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [CommentWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [CommentWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [CommentWhereInput], {nullable:true}) + OR?: Array; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => [CommentWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - articleId?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; - @Field(() => UserScalarRelationFilter, { nullable: true }) - @Type(() => UserScalarRelationFilter) - author?: UserScalarRelationFilter; + @Field(() => StringNullableFilter, {nullable:true}) + articleId?: StringNullableFilter; - @Field(() => ArticleNullableScalarRelationFilter, { nullable: true }) - @Type(() => ArticleNullableScalarRelationFilter) - article?: ArticleNullableScalarRelationFilter; + @Field(() => UserScalarRelationFilter, {nullable:true}) + @Type(() => UserScalarRelationFilter) + author?: UserScalarRelationFilter; + + @Field(() => ArticleNullableScalarRelationFilter, {nullable:true}) + @Type(() => ArticleNullableScalarRelationFilter) + article?: ArticleNullableScalarRelationFilter; } diff --git a/@generated/comment/comment-where.input.ts b/@generated/comment/comment-where.input.ts index 35c2965c..fb66a1c0 100644 --- a/@generated/comment/comment-where.input.ts +++ b/@generated/comment/comment-where.input.ts @@ -9,38 +9,39 @@ import { ArticleWhereInput } from '../article/article-where.input'; @InputType() export class CommentWhereInput { - @Field(() => [CommentWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [CommentWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [CommentWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [CommentWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [CommentWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [CommentWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => DateTimeFilter, { nullable: true }) - createdAt?: DateTimeFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => DateTimeFilter, { nullable: true }) - updatedAt?: DateTimeFilter; + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - body?: StringFilter; + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; - @Field(() => StringFilter, { nullable: true }) - authorId?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + body?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - articleId?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + authorId?: StringFilter; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - author?: UserWhereInput; + @Field(() => StringNullableFilter, {nullable:true}) + articleId?: StringNullableFilter; - @Field(() => ArticleWhereInput, { nullable: true }) - @Type(() => ArticleWhereInput) - article?: ArticleWhereInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + author?: UserWhereInput; + + @Field(() => ArticleWhereInput, {nullable:true}) + @Type(() => ArticleWhereInput) + article?: ArticleWhereInput; } diff --git a/@generated/comment/comment.model.ts b/@generated/comment/comment.model.ts index 9a468df3..ad7b130f 100644 --- a/@generated/comment/comment.model.ts +++ b/@generated/comment/comment.model.ts @@ -6,27 +6,28 @@ import { Article } from '../article/article.model'; @ObjectType() export class Comment { - @Field(() => ID, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: false }) - createdAt!: Date; + @Field(() => ID, {nullable:false}) + id!: string; - @Field(() => Date, { nullable: false }) - updatedAt!: Date; + @Field(() => Date, {nullable:false}) + createdAt!: Date; - @Field(() => String, { nullable: false }) - body!: string; + @Field(() => Date, {nullable:false}) + updatedAt!: Date; - @Field(() => String, { nullable: false }) - authorId!: string; + @Field(() => String, {nullable:false}) + body!: string; - @Field(() => String, { nullable: true }) - articleId!: string | null; + @Field(() => String, {nullable:false}) + authorId!: string; - @Field(() => User, { nullable: false }) - author?: User; + @Field(() => String, {nullable:true}) + articleId!: string | null; - @Field(() => Article, { nullable: true }) - article?: Article | null; + @Field(() => User, {nullable:false}) + author?: User; + + @Field(() => Article, {nullable:true}) + article?: Article | null; } diff --git a/@generated/comment/create-many-comment.args.ts b/@generated/comment/create-many-comment.args.ts index 4f66f49c..51b3f472 100644 --- a/@generated/comment/create-many-comment.args.ts +++ b/@generated/comment/create-many-comment.args.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateManyCommentArgs { - @Field(() => [CommentCreateManyInput], { nullable: false }) - @Type(() => CommentCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [CommentCreateManyInput], {nullable:false}) + @Type(() => CommentCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/comment/create-one-comment.args.ts b/@generated/comment/create-one-comment.args.ts index 0867c2ea..66568894 100644 --- a/@generated/comment/create-one-comment.args.ts +++ b/@generated/comment/create-one-comment.args.ts @@ -5,7 +5,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateOneCommentArgs { - @Field(() => CommentCreateInput, { nullable: false }) - @Type(() => CommentCreateInput) - data!: CommentCreateInput; + + @Field(() => CommentCreateInput, {nullable:false}) + @Type(() => CommentCreateInput) + data!: CommentCreateInput; } diff --git a/@generated/comment/delete-many-comment.args.ts b/@generated/comment/delete-many-comment.args.ts index f224a9cb..6aedbe78 100644 --- a/@generated/comment/delete-many-comment.args.ts +++ b/@generated/comment/delete-many-comment.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentWhereInput } from './comment-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyCommentArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; + + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/comment/delete-one-comment.args.ts b/@generated/comment/delete-one-comment.args.ts index 3cf95886..6a42c88e 100644 --- a/@generated/comment/delete-one-comment.args.ts +++ b/@generated/comment/delete-one-comment.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneCommentArgs { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/comment/find-first-comment-or-throw.args.ts b/@generated/comment/find-first-comment-or-throw.args.ts index 7638c93b..809a54ef 100644 --- a/@generated/comment/find-first-comment-or-throw.args.ts +++ b/@generated/comment/find-first-comment-or-throw.args.ts @@ -10,22 +10,23 @@ import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; @ArgsType() export class FindFirstCommentOrThrowArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; - @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; - @Field(() => CommentWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [CommentOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => CommentWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [CommentScalarFieldEnum], { nullable: true }) - distinct?: Array<`${CommentScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], {nullable:true}) + distinct?: Array<`${CommentScalarFieldEnum}`>; } diff --git a/@generated/comment/find-first-comment.args.ts b/@generated/comment/find-first-comment.args.ts index 7505c5ba..9cef9556 100644 --- a/@generated/comment/find-first-comment.args.ts +++ b/@generated/comment/find-first-comment.args.ts @@ -10,22 +10,23 @@ import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; @ArgsType() export class FindFirstCommentArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; - @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; - @Field(() => CommentWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [CommentOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => CommentWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [CommentScalarFieldEnum], { nullable: true }) - distinct?: Array<`${CommentScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], {nullable:true}) + distinct?: Array<`${CommentScalarFieldEnum}`>; } diff --git a/@generated/comment/find-many-comment.args.ts b/@generated/comment/find-many-comment.args.ts index f14402f1..84794dbe 100644 --- a/@generated/comment/find-many-comment.args.ts +++ b/@generated/comment/find-many-comment.args.ts @@ -10,22 +10,23 @@ import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; @ArgsType() export class FindManyCommentArgs { - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; - @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; - @Field(() => CommentWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [CommentOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => CommentWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [CommentScalarFieldEnum], { nullable: true }) - distinct?: Array<`${CommentScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], {nullable:true}) + distinct?: Array<`${CommentScalarFieldEnum}`>; } diff --git a/@generated/comment/find-unique-comment-or-throw.args.ts b/@generated/comment/find-unique-comment-or-throw.args.ts index 11e90587..030c4222 100644 --- a/@generated/comment/find-unique-comment-or-throw.args.ts +++ b/@generated/comment/find-unique-comment-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueCommentOrThrowArgs { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/comment/find-unique-comment.args.ts b/@generated/comment/find-unique-comment.args.ts index c83da804..646ebdb2 100644 --- a/@generated/comment/find-unique-comment.args.ts +++ b/@generated/comment/find-unique-comment.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueCommentArgs { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/comment/update-many-comment.args.ts b/@generated/comment/update-many-comment.args.ts index 3cc46548..fdc4b310 100644 --- a/@generated/comment/update-many-comment.args.ts +++ b/@generated/comment/update-many-comment.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; import { Type } from 'class-transformer'; import { CommentWhereInput } from './comment-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyCommentArgs { - @Field(() => CommentUpdateManyMutationInput, { nullable: false }) - @Type(() => CommentUpdateManyMutationInput) - data!: CommentUpdateManyMutationInput; - @Field(() => CommentWhereInput, { nullable: true }) - @Type(() => CommentWhereInput) - where?: CommentWhereInput; + @Field(() => CommentUpdateManyMutationInput, {nullable:false}) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; + + @Field(() => CommentWhereInput, {nullable:true}) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/comment/update-one-comment.args.ts b/@generated/comment/update-one-comment.args.ts index a4af5988..f55dcb5f 100644 --- a/@generated/comment/update-one-comment.args.ts +++ b/@generated/comment/update-one-comment.args.ts @@ -7,11 +7,12 @@ import { CommentWhereUniqueInput } from './comment-where-unique.input'; @ArgsType() export class UpdateOneCommentArgs { - @Field(() => CommentUpdateInput, { nullable: false }) - @Type(() => CommentUpdateInput) - data!: CommentUpdateInput; - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => CommentUpdateInput, {nullable:false}) + @Type(() => CommentUpdateInput) + data!: CommentUpdateInput; + + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/comment/upsert-one-comment.args.ts b/@generated/comment/upsert-one-comment.args.ts index 49e7d49a..9393adf5 100644 --- a/@generated/comment/upsert-one-comment.args.ts +++ b/@generated/comment/upsert-one-comment.args.ts @@ -8,15 +8,16 @@ import { CommentUpdateInput } from './comment-update.input'; @ArgsType() export class UpsertOneCommentArgs { - @Field(() => CommentWhereUniqueInput, { nullable: false }) - @Type(() => CommentWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => CommentCreateInput, { nullable: false }) - @Type(() => CommentCreateInput) - create!: CommentCreateInput; + @Field(() => CommentWhereUniqueInput, {nullable:false}) + @Type(() => CommentWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => CommentUpdateInput, { nullable: false }) - @Type(() => CommentUpdateInput) - update!: CommentUpdateInput; + @Field(() => CommentCreateInput, {nullable:false}) + @Type(() => CommentCreateInput) + create!: CommentCreateInput; + + @Field(() => CommentUpdateInput, {nullable:false}) + @Type(() => CommentUpdateInput) + update!: CommentUpdateInput; } diff --git a/@generated/dummy/aggregate-dummy.output.ts b/@generated/dummy/aggregate-dummy.output.ts index 7e8da3a8..c6afb2cb 100644 --- a/@generated/dummy/aggregate-dummy.output.ts +++ b/@generated/dummy/aggregate-dummy.output.ts @@ -8,18 +8,19 @@ import { DummyMaxAggregate } from './dummy-max-aggregate.output'; @ObjectType() export class AggregateDummy { - @Field(() => DummyCountAggregate, { nullable: true }) - _count?: DummyCountAggregate; - @Field(() => DummyAvgAggregate, { nullable: true }) - _avg?: DummyAvgAggregate; + @Field(() => DummyCountAggregate, {nullable:true}) + _count?: DummyCountAggregate; - @Field(() => DummySumAggregate, { nullable: true }) - _sum?: DummySumAggregate; + @Field(() => DummyAvgAggregate, {nullable:true}) + _avg?: DummyAvgAggregate; - @Field(() => DummyMinAggregate, { nullable: true }) - _min?: DummyMinAggregate; + @Field(() => DummySumAggregate, {nullable:true}) + _sum?: DummySumAggregate; - @Field(() => DummyMaxAggregate, { nullable: true }) - _max?: DummyMaxAggregate; + @Field(() => DummyMinAggregate, {nullable:true}) + _min?: DummyMinAggregate; + + @Field(() => DummyMaxAggregate, {nullable:true}) + _max?: DummyMaxAggregate; } diff --git a/@generated/dummy/create-many-dummy.args.ts b/@generated/dummy/create-many-dummy.args.ts index c6e17c4c..0439f3f4 100644 --- a/@generated/dummy/create-many-dummy.args.ts +++ b/@generated/dummy/create-many-dummy.args.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateManyDummyArgs { - @Field(() => [DummyCreateManyInput], { nullable: false }) - @Type(() => DummyCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [DummyCreateManyInput], {nullable:false}) + @Type(() => DummyCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/dummy/create-one-dummy.args.ts b/@generated/dummy/create-one-dummy.args.ts index b74233bb..07749581 100644 --- a/@generated/dummy/create-one-dummy.args.ts +++ b/@generated/dummy/create-one-dummy.args.ts @@ -5,7 +5,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateOneDummyArgs { - @Field(() => DummyCreateInput, { nullable: false }) - @Type(() => DummyCreateInput) - data!: DummyCreateInput; + + @Field(() => DummyCreateInput, {nullable:false}) + @Type(() => DummyCreateInput) + data!: DummyCreateInput; } diff --git a/@generated/dummy/delete-many-dummy.args.ts b/@generated/dummy/delete-many-dummy.args.ts index 0e6c001b..c6bd86fc 100644 --- a/@generated/dummy/delete-many-dummy.args.ts +++ b/@generated/dummy/delete-many-dummy.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { DummyWhereInput } from './dummy-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyDummyArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; + + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/dummy/delete-one-dummy.args.ts b/@generated/dummy/delete-one-dummy.args.ts index 09de5ce1..eea83a65 100644 --- a/@generated/dummy/delete-one-dummy.args.ts +++ b/@generated/dummy/delete-one-dummy.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneDummyArgs { - @Field(() => DummyWhereUniqueInput, { nullable: false }) - @Type(() => DummyWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => DummyWhereUniqueInput, {nullable:false}) + @Type(() => DummyWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/dummy/dummy-aggregate.args.ts b/@generated/dummy/dummy-aggregate.args.ts index e57e34ea..718e6753 100644 --- a/@generated/dummy/dummy-aggregate.args.ts +++ b/@generated/dummy/dummy-aggregate.args.ts @@ -14,41 +14,42 @@ import { DummyMaxAggregateInput } from './dummy-max-aggregate.input'; @ArgsType() export class DummyAggregateArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; - @Field(() => [DummyOrderByWithRelationInput], { nullable: true }) - @Type(() => DummyOrderByWithRelationInput) - orderBy?: Array; + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; - @Field(() => DummyWhereUniqueInput, { nullable: true }) - @Type(() => DummyWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [DummyOrderByWithRelationInput], {nullable:true}) + @Type(() => DummyOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => DummyWhereUniqueInput, {nullable:true}) + @Type(() => DummyWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => DummyCountAggregateInput, { nullable: true }) - @Type(() => DummyCountAggregateInput) - _count?: DummyCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => DummyAvgAggregateInput, { nullable: true }) - @Type(() => DummyAvgAggregateInput) - _avg?: DummyAvgAggregateInput; + @Field(() => DummyCountAggregateInput, {nullable:true}) + @Type(() => DummyCountAggregateInput) + _count?: DummyCountAggregateInput; - @Field(() => DummySumAggregateInput, { nullable: true }) - @Type(() => DummySumAggregateInput) - _sum?: DummySumAggregateInput; + @Field(() => DummyAvgAggregateInput, {nullable:true}) + @Type(() => DummyAvgAggregateInput) + _avg?: DummyAvgAggregateInput; - @Field(() => DummyMinAggregateInput, { nullable: true }) - @Type(() => DummyMinAggregateInput) - _min?: DummyMinAggregateInput; + @Field(() => DummySumAggregateInput, {nullable:true}) + @Type(() => DummySumAggregateInput) + _sum?: DummySumAggregateInput; - @Field(() => DummyMaxAggregateInput, { nullable: true }) - @Type(() => DummyMaxAggregateInput) - _max?: DummyMaxAggregateInput; + @Field(() => DummyMinAggregateInput, {nullable:true}) + @Type(() => DummyMinAggregateInput) + _min?: DummyMinAggregateInput; + + @Field(() => DummyMaxAggregateInput, {nullable:true}) + @Type(() => DummyMaxAggregateInput) + _max?: DummyMaxAggregateInput; } diff --git a/@generated/dummy/dummy-avg-aggregate.input.ts b/@generated/dummy/dummy-avg-aggregate.input.ts index 7c96f099..fca0eac3 100644 --- a/@generated/dummy/dummy-avg-aggregate.input.ts +++ b/@generated/dummy/dummy-avg-aggregate.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyAvgAggregateInput { - @Field(() => Boolean, { nullable: true }) - int?: true; - @Field(() => Boolean, { nullable: true }) - float?: true; + @Field(() => Boolean, {nullable:true}) + int?: true; - @Field(() => Boolean, { nullable: true }) - decimal?: true; + @Field(() => Boolean, {nullable:true}) + float?: true; - @Field(() => Boolean, { nullable: true }) - decimals?: true; + @Field(() => Boolean, {nullable:true}) + decimal?: true; - @Field(() => Boolean, { nullable: true }) - bigInt?: true; + @Field(() => Boolean, {nullable:true}) + decimals?: true; + + @Field(() => Boolean, {nullable:true}) + bigInt?: true; } diff --git a/@generated/dummy/dummy-avg-aggregate.output.ts b/@generated/dummy/dummy-avg-aggregate.output.ts index c9e6e1d6..9af48435 100644 --- a/@generated/dummy/dummy-avg-aggregate.output.ts +++ b/@generated/dummy/dummy-avg-aggregate.output.ts @@ -6,18 +6,19 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class DummyAvgAggregate { - @Field(() => Float, { nullable: true }) - int?: number; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Float, {nullable:true}) + int?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - decimal?: Decimal; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - decimals?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + decimal?: Decimal; - @Field(() => Float, { nullable: true }) - bigInt?: number; + @Field(() => GraphQLDecimal, {nullable:true}) + decimals?: Decimal; + + @Field(() => Float, {nullable:true}) + bigInt?: number; } diff --git a/@generated/dummy/dummy-avg-order-by-aggregate.input.ts b/@generated/dummy/dummy-avg-order-by-aggregate.input.ts index f9809424..f81e0c43 100644 --- a/@generated/dummy/dummy-avg-order-by-aggregate.input.ts +++ b/@generated/dummy/dummy-avg-order-by-aggregate.input.ts @@ -4,18 +4,19 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummyAvgOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - float?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + float?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimals?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bigInt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimals?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + bigInt?: `${SortOrder}`; } diff --git a/@generated/dummy/dummy-count-aggregate.input.ts b/@generated/dummy/dummy-count-aggregate.input.ts index 0f22252a..e647daae 100644 --- a/@generated/dummy/dummy-count-aggregate.input.ts +++ b/@generated/dummy/dummy-count-aggregate.input.ts @@ -3,36 +3,37 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - date?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - int?: true; + @Field(() => Boolean, {nullable:true}) + date?: true; - @Field(() => Boolean, { nullable: true }) - float?: true; + @Field(() => Boolean, {nullable:true}) + int?: true; - @Field(() => Boolean, { nullable: true }) - bytes?: true; + @Field(() => Boolean, {nullable:true}) + float?: true; - @Field(() => Boolean, { nullable: true }) - decimal?: true; + @Field(() => Boolean, {nullable:true}) + bytes?: true; - @Field(() => Boolean, { nullable: true }) - decimals?: true; + @Field(() => Boolean, {nullable:true}) + decimal?: true; - @Field(() => Boolean, { nullable: true }) - bigInt?: true; + @Field(() => Boolean, {nullable:true}) + decimals?: true; - @Field(() => Boolean, { nullable: true }) - json?: true; + @Field(() => Boolean, {nullable:true}) + bigInt?: true; - @Field(() => Boolean, { nullable: true }) - friends?: true; + @Field(() => Boolean, {nullable:true}) + json?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + friends?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/dummy/dummy-count-aggregate.output.ts b/@generated/dummy/dummy-count-aggregate.output.ts index d6c2ed05..b588d018 100644 --- a/@generated/dummy/dummy-count-aggregate.output.ts +++ b/@generated/dummy/dummy-count-aggregate.output.ts @@ -4,36 +4,37 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class DummyCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - date!: number; + @Field(() => Int, {nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - int!: number; + @Field(() => Int, {nullable:false}) + date!: number; - @Field(() => Int, { nullable: false }) - float!: number; + @Field(() => Int, {nullable:false}) + int!: number; - @Field(() => Int, { nullable: false }) - bytes!: number; + @Field(() => Int, {nullable:false}) + float!: number; - @Field(() => Int, { nullable: false }) - decimal!: number; + @Field(() => Int, {nullable:false}) + bytes!: number; - @Field(() => Int, { nullable: false }) - decimals!: number; + @Field(() => Int, {nullable:false}) + decimal!: number; - @Field(() => Int, { nullable: false }) - bigInt!: number; + @Field(() => Int, {nullable:false}) + decimals!: number; - @Field(() => Int, { nullable: false }) - json!: number; + @Field(() => Int, {nullable:false}) + bigInt!: number; - @Field(() => Int, { nullable: false }) - friends!: number; + @Field(() => Int, {nullable:false}) + json!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + friends!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/dummy/dummy-count-order-by-aggregate.input.ts b/@generated/dummy/dummy-count-order-by-aggregate.input.ts index 14e6e438..b3de2fdf 100644 --- a/@generated/dummy/dummy-count-order-by-aggregate.input.ts +++ b/@generated/dummy/dummy-count-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummyCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - date?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - int?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + date?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - float?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bytes?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + float?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bytes?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimals?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bigInt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimals?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - json?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bigInt?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - friends?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + json?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + friends?: `${SortOrder}`; } diff --git a/@generated/dummy/dummy-create-many.input.ts b/@generated/dummy/dummy-create-many.input.ts index 481561d1..eb87d833 100644 --- a/@generated/dummy/dummy-create-many.input.ts +++ b/@generated/dummy/dummy-create-many.input.ts @@ -13,37 +13,38 @@ import { DummyCreatefriendsInput } from './dummy-createfriends.input'; @InputType() export class DummyCreateManyInput { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: false }) - @Type(() => Object) - @Transform(transformToDecimal) - decimal!: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => DummyCreatedecimalsInput, { nullable: true }) - @Type(() => DummyCreatedecimalsInput) - decimals?: DummyCreatedecimalsInput; + @Field(() => GraphQLDecimal, {nullable:false}) + @Type(() => Object) + @Transform(transformToDecimal) + decimal!: Decimal; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => DummyCreatedecimalsInput, {nullable:true}) + @Type(() => DummyCreatedecimalsInput) + decimals?: DummyCreatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; - @Field(() => DummyCreatefriendsInput, { nullable: true }) - @Type(() => DummyCreatefriendsInput) - friends?: DummyCreatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyCreatefriendsInput, {nullable:true}) + @Type(() => DummyCreatefriendsInput) + friends?: DummyCreatefriendsInput; } diff --git a/@generated/dummy/dummy-create.input.ts b/@generated/dummy/dummy-create.input.ts index c211b1da..143f4b09 100644 --- a/@generated/dummy/dummy-create.input.ts +++ b/@generated/dummy/dummy-create.input.ts @@ -13,37 +13,38 @@ import { DummyCreatefriendsInput } from './dummy-createfriends.input'; @InputType() export class DummyCreateInput { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: false }) - @Type(() => Object) - @Transform(transformToDecimal) - decimal!: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => DummyCreatedecimalsInput, { nullable: true }) - @Type(() => DummyCreatedecimalsInput) - decimals?: DummyCreatedecimalsInput; + @Field(() => GraphQLDecimal, {nullable:false}) + @Type(() => Object) + @Transform(transformToDecimal) + decimal!: Decimal; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => DummyCreatedecimalsInput, {nullable:true}) + @Type(() => DummyCreatedecimalsInput) + decimals?: DummyCreatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; - @Field(() => DummyCreatefriendsInput, { nullable: true }) - @Type(() => DummyCreatefriendsInput) - friends?: DummyCreatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyCreatefriendsInput, {nullable:true}) + @Type(() => DummyCreatefriendsInput) + friends?: DummyCreatefriendsInput; } diff --git a/@generated/dummy/dummy-createdecimals.input.ts b/@generated/dummy/dummy-createdecimals.input.ts index da8e8ca9..e3af1be1 100644 --- a/@generated/dummy/dummy-createdecimals.input.ts +++ b/@generated/dummy/dummy-createdecimals.input.ts @@ -8,8 +8,9 @@ import { Type } from 'class-transformer'; @InputType() export class DummyCreatedecimalsInput { - @Field(() => [GraphQLDecimal], { nullable: false }) - @Type(() => Object) - @Transform(transformToDecimal) - set!: Array; + + @Field(() => [GraphQLDecimal], {nullable:false}) + @Type(() => Object) + @Transform(transformToDecimal) + set!: Array; } diff --git a/@generated/dummy/dummy-createfriends.input.ts b/@generated/dummy/dummy-createfriends.input.ts index a0c11969..800f32b7 100644 --- a/@generated/dummy/dummy-createfriends.input.ts +++ b/@generated/dummy/dummy-createfriends.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyCreatefriendsInput { - @Field(() => [String], { nullable: false }) - set!: Array; + + @Field(() => [String], {nullable:false}) + set!: Array; } diff --git a/@generated/dummy/dummy-group-by.args.ts b/@generated/dummy/dummy-group-by.args.ts index c6e288d5..dd17e635 100644 --- a/@generated/dummy/dummy-group-by.args.ts +++ b/@generated/dummy/dummy-group-by.args.ts @@ -14,44 +14,45 @@ import { DummyMaxAggregateInput } from './dummy-max-aggregate.input'; @ArgsType() export class DummyGroupByArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; - @Field(() => [DummyOrderByWithAggregationInput], { nullable: true }) - @Type(() => DummyOrderByWithAggregationInput) - orderBy?: Array; + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; - @Field(() => [DummyScalarFieldEnum], { nullable: false }) - by!: Array<`${DummyScalarFieldEnum}`>; + @Field(() => [DummyOrderByWithAggregationInput], {nullable:true}) + @Type(() => DummyOrderByWithAggregationInput) + orderBy?: Array; - @Field(() => DummyScalarWhereWithAggregatesInput, { nullable: true }) - @Type(() => DummyScalarWhereWithAggregatesInput) - having?: DummyScalarWhereWithAggregatesInput; + @Field(() => [DummyScalarFieldEnum], {nullable:false}) + by!: Array<`${DummyScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => DummyScalarWhereWithAggregatesInput, {nullable:true}) + @Type(() => DummyScalarWhereWithAggregatesInput) + having?: DummyScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => DummyCountAggregateInput, { nullable: true }) - @Type(() => DummyCountAggregateInput) - _count?: DummyCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => DummyAvgAggregateInput, { nullable: true }) - @Type(() => DummyAvgAggregateInput) - _avg?: DummyAvgAggregateInput; + @Field(() => DummyCountAggregateInput, {nullable:true}) + @Type(() => DummyCountAggregateInput) + _count?: DummyCountAggregateInput; - @Field(() => DummySumAggregateInput, { nullable: true }) - @Type(() => DummySumAggregateInput) - _sum?: DummySumAggregateInput; + @Field(() => DummyAvgAggregateInput, {nullable:true}) + @Type(() => DummyAvgAggregateInput) + _avg?: DummyAvgAggregateInput; - @Field(() => DummyMinAggregateInput, { nullable: true }) - @Type(() => DummyMinAggregateInput) - _min?: DummyMinAggregateInput; + @Field(() => DummySumAggregateInput, {nullable:true}) + @Type(() => DummySumAggregateInput) + _sum?: DummySumAggregateInput; - @Field(() => DummyMaxAggregateInput, { nullable: true }) - @Type(() => DummyMaxAggregateInput) - _max?: DummyMaxAggregateInput; + @Field(() => DummyMinAggregateInput, {nullable:true}) + @Type(() => DummyMinAggregateInput) + _min?: DummyMinAggregateInput; + + @Field(() => DummyMaxAggregateInput, {nullable:true}) + @Type(() => DummyMaxAggregateInput) + _max?: DummyMaxAggregateInput; } diff --git a/@generated/dummy/dummy-group-by.output.ts b/@generated/dummy/dummy-group-by.output.ts index db321999..d09522ce 100644 --- a/@generated/dummy/dummy-group-by.output.ts +++ b/@generated/dummy/dummy-group-by.output.ts @@ -13,48 +13,49 @@ import { DummyMaxAggregate } from './dummy-max-aggregate.output'; @ObjectType() export class DummyGroupBy { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: false }) - decimal!: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => [GraphQLDecimal], { nullable: true }) - decimals?: Array; + @Field(() => GraphQLDecimal, {nullable:false}) + decimal!: Decimal; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => [GraphQLDecimal], {nullable:true}) + decimals?: Array; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; - @Field(() => [String], { nullable: true }) - friends?: Array; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; - @Field(() => DummyCountAggregate, { nullable: true }) - _count?: DummyCountAggregate; + @Field(() => [String], {nullable:true}) + friends?: Array; - @Field(() => DummyAvgAggregate, { nullable: true }) - _avg?: DummyAvgAggregate; + @Field(() => DummyCountAggregate, {nullable:true}) + _count?: DummyCountAggregate; - @Field(() => DummySumAggregate, { nullable: true }) - _sum?: DummySumAggregate; + @Field(() => DummyAvgAggregate, {nullable:true}) + _avg?: DummyAvgAggregate; - @Field(() => DummyMinAggregate, { nullable: true }) - _min?: DummyMinAggregate; + @Field(() => DummySumAggregate, {nullable:true}) + _sum?: DummySumAggregate; - @Field(() => DummyMaxAggregate, { nullable: true }) - _max?: DummyMaxAggregate; + @Field(() => DummyMinAggregate, {nullable:true}) + _min?: DummyMinAggregate; + + @Field(() => DummyMaxAggregate, {nullable:true}) + _max?: DummyMaxAggregate; } diff --git a/@generated/dummy/dummy-max-aggregate.input.ts b/@generated/dummy/dummy-max-aggregate.input.ts index 584e4f7a..38878789 100644 --- a/@generated/dummy/dummy-max-aggregate.input.ts +++ b/@generated/dummy/dummy-max-aggregate.input.ts @@ -3,24 +3,25 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - date?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - int?: true; + @Field(() => Boolean, {nullable:true}) + date?: true; - @Field(() => Boolean, { nullable: true }) - float?: true; + @Field(() => Boolean, {nullable:true}) + int?: true; - @Field(() => Boolean, { nullable: true }) - bytes?: true; + @Field(() => Boolean, {nullable:true}) + float?: true; - @Field(() => Boolean, { nullable: true }) - decimal?: true; + @Field(() => Boolean, {nullable:true}) + bytes?: true; - @Field(() => Boolean, { nullable: true }) - bigInt?: true; + @Field(() => Boolean, {nullable:true}) + decimal?: true; + + @Field(() => Boolean, {nullable:true}) + bigInt?: true; } diff --git a/@generated/dummy/dummy-max-aggregate.output.ts b/@generated/dummy/dummy-max-aggregate.output.ts index c3ff3706..29fca4f6 100644 --- a/@generated/dummy/dummy-max-aggregate.output.ts +++ b/@generated/dummy/dummy-max-aggregate.output.ts @@ -7,24 +7,25 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class DummyMaxAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - decimal?: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => GraphQLDecimal, {nullable:true}) + decimal?: Decimal; + + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; } diff --git a/@generated/dummy/dummy-max-order-by-aggregate.input.ts b/@generated/dummy/dummy-max-order-by-aggregate.input.ts index 0bcbad4f..c2790565 100644 --- a/@generated/dummy/dummy-max-order-by-aggregate.input.ts +++ b/@generated/dummy/dummy-max-order-by-aggregate.input.ts @@ -4,24 +4,25 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummyMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - date?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - int?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + date?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - float?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bytes?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + float?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bytes?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bigInt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + bigInt?: `${SortOrder}`; } diff --git a/@generated/dummy/dummy-min-aggregate.input.ts b/@generated/dummy/dummy-min-aggregate.input.ts index 472704ed..ca819cdc 100644 --- a/@generated/dummy/dummy-min-aggregate.input.ts +++ b/@generated/dummy/dummy-min-aggregate.input.ts @@ -3,24 +3,25 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - date?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - int?: true; + @Field(() => Boolean, {nullable:true}) + date?: true; - @Field(() => Boolean, { nullable: true }) - float?: true; + @Field(() => Boolean, {nullable:true}) + int?: true; - @Field(() => Boolean, { nullable: true }) - bytes?: true; + @Field(() => Boolean, {nullable:true}) + float?: true; - @Field(() => Boolean, { nullable: true }) - decimal?: true; + @Field(() => Boolean, {nullable:true}) + bytes?: true; - @Field(() => Boolean, { nullable: true }) - bigInt?: true; + @Field(() => Boolean, {nullable:true}) + decimal?: true; + + @Field(() => Boolean, {nullable:true}) + bigInt?: true; } diff --git a/@generated/dummy/dummy-min-aggregate.output.ts b/@generated/dummy/dummy-min-aggregate.output.ts index 6ebdc459..be612904 100644 --- a/@generated/dummy/dummy-min-aggregate.output.ts +++ b/@generated/dummy/dummy-min-aggregate.output.ts @@ -7,24 +7,25 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class DummyMinAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - decimal?: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => GraphQLDecimal, {nullable:true}) + decimal?: Decimal; + + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; } diff --git a/@generated/dummy/dummy-min-order-by-aggregate.input.ts b/@generated/dummy/dummy-min-order-by-aggregate.input.ts index de7f65d1..ea189524 100644 --- a/@generated/dummy/dummy-min-order-by-aggregate.input.ts +++ b/@generated/dummy/dummy-min-order-by-aggregate.input.ts @@ -4,24 +4,25 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummyMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - date?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - int?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + date?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - float?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bytes?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + float?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bytes?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bigInt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + bigInt?: `${SortOrder}`; } diff --git a/@generated/dummy/dummy-order-by-relevance-field.enum.ts b/@generated/dummy/dummy-order-by-relevance-field.enum.ts index 534e7081..f4e80eb0 100644 --- a/@generated/dummy/dummy-order-by-relevance-field.enum.ts +++ b/@generated/dummy/dummy-order-by-relevance-field.enum.ts @@ -1,11 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum DummyOrderByRelevanceFieldEnum { - id = 'id', - friends = 'friends', + + } -registerEnumType(DummyOrderByRelevanceFieldEnum, { - name: 'DummyOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(DummyOrderByRelevanceFieldEnum, { name: 'DummyOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/dummy/dummy-order-by-relevance.input.ts b/@generated/dummy/dummy-order-by-relevance.input.ts index e9381408..ba117b43 100644 --- a/@generated/dummy/dummy-order-by-relevance.input.ts +++ b/@generated/dummy/dummy-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummyOrderByRelevanceInput { - @Field(() => [DummyOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${DummyOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [DummyOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${DummyOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/dummy/dummy-order-by-with-aggregation.input.ts b/@generated/dummy/dummy-order-by-with-aggregation.input.ts index 2d4ec2ca..8815ac76 100644 --- a/@generated/dummy/dummy-order-by-with-aggregation.input.ts +++ b/@generated/dummy/dummy-order-by-with-aggregation.input.ts @@ -11,53 +11,54 @@ import { DummySumOrderByAggregateInput } from './dummy-sum-order-by-aggregate.in @InputType() export class DummyOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - date?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - int?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + date?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - float?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + int?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - bytes?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + float?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrderInput, {nullable:true}) + bytes?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - decimals?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - bigInt?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + decimals?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - json?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + bigInt?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - friends?: `${SortOrder}`; + @Field(() => SortOrderInput, {nullable:true}) + json?: SortOrderInput; - @Field(() => DummyCountOrderByAggregateInput, { nullable: true }) - @Type(() => DummyCountOrderByAggregateInput) - _count?: DummyCountOrderByAggregateInput; + @Field(() => SortOrder, {nullable:true}) + friends?: `${SortOrder}`; - @Field(() => DummyAvgOrderByAggregateInput, { nullable: true }) - @Type(() => DummyAvgOrderByAggregateInput) - _avg?: DummyAvgOrderByAggregateInput; + @Field(() => DummyCountOrderByAggregateInput, {nullable:true}) + @Type(() => DummyCountOrderByAggregateInput) + _count?: DummyCountOrderByAggregateInput; - @Field(() => DummyMaxOrderByAggregateInput, { nullable: true }) - @Type(() => DummyMaxOrderByAggregateInput) - _max?: DummyMaxOrderByAggregateInput; + @Field(() => DummyAvgOrderByAggregateInput, {nullable:true}) + @Type(() => DummyAvgOrderByAggregateInput) + _avg?: DummyAvgOrderByAggregateInput; - @Field(() => DummyMinOrderByAggregateInput, { nullable: true }) - @Type(() => DummyMinOrderByAggregateInput) - _min?: DummyMinOrderByAggregateInput; + @Field(() => DummyMaxOrderByAggregateInput, {nullable:true}) + @Type(() => DummyMaxOrderByAggregateInput) + _max?: DummyMaxOrderByAggregateInput; - @Field(() => DummySumOrderByAggregateInput, { nullable: true }) - @Type(() => DummySumOrderByAggregateInput) - _sum?: DummySumOrderByAggregateInput; + @Field(() => DummyMinOrderByAggregateInput, {nullable:true}) + @Type(() => DummyMinOrderByAggregateInput) + _min?: DummyMinOrderByAggregateInput; + + @Field(() => DummySumOrderByAggregateInput, {nullable:true}) + @Type(() => DummySumOrderByAggregateInput) + _sum?: DummySumOrderByAggregateInput; } diff --git a/@generated/dummy/dummy-order-by-with-relation.input.ts b/@generated/dummy/dummy-order-by-with-relation.input.ts index be1f348b..6adc1efa 100644 --- a/@generated/dummy/dummy-order-by-with-relation.input.ts +++ b/@generated/dummy/dummy-order-by-with-relation.input.ts @@ -7,37 +7,38 @@ import { Type } from 'class-transformer'; @InputType() export class DummyOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - date?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - int?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + date?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - float?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + int?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - bytes?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + float?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrderInput, {nullable:true}) + bytes?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - decimals?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - bigInt?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + decimals?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - json?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + bigInt?: SortOrderInput; - @Field(() => SortOrder, { nullable: true }) - friends?: `${SortOrder}`; + @Field(() => SortOrderInput, {nullable:true}) + json?: SortOrderInput; - @Field(() => DummyOrderByRelevanceInput, { nullable: true }) - @Type(() => DummyOrderByRelevanceInput) - _relevance?: DummyOrderByRelevanceInput; + @Field(() => SortOrder, {nullable:true}) + friends?: `${SortOrder}`; + + @Field(() => DummyOrderByRelevanceInput, {nullable:true}) + @Type(() => DummyOrderByRelevanceInput) + _relevance?: DummyOrderByRelevanceInput; } diff --git a/@generated/dummy/dummy-scalar-field.enum.ts b/@generated/dummy/dummy-scalar-field.enum.ts index 2f59deaa..94f7f128 100644 --- a/@generated/dummy/dummy-scalar-field.enum.ts +++ b/@generated/dummy/dummy-scalar-field.enum.ts @@ -1,19 +1,17 @@ import { registerEnumType } from '@nestjs/graphql'; export enum DummyScalarFieldEnum { - id = 'id', - date = 'date', - int = 'int', - float = 'float', - bytes = 'bytes', - decimal = 'decimal', - decimals = 'decimals', - bigInt = 'bigInt', - json = 'json', - friends = 'friends', + + + + + + + + + + } -registerEnumType(DummyScalarFieldEnum, { - name: 'DummyScalarFieldEnum', - description: undefined, -}); + +registerEnumType(DummyScalarFieldEnum, { name: 'DummyScalarFieldEnum', description: undefined }) diff --git a/@generated/dummy/dummy-scalar-where-with-aggregates.input.ts b/@generated/dummy/dummy-scalar-where-with-aggregates.input.ts index 029516da..2b66609d 100644 --- a/@generated/dummy/dummy-scalar-where-with-aggregates.input.ts +++ b/@generated/dummy/dummy-scalar-where-with-aggregates.input.ts @@ -14,47 +14,48 @@ import { StringNullableListFilter } from '../prisma/string-nullable-list-filter. @InputType() export class DummyScalarWhereWithAggregatesInput { - @Field(() => [DummyScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => DummyScalarWhereWithAggregatesInput) - AND?: Array; - @Field(() => [DummyScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => DummyScalarWhereWithAggregatesInput) - OR?: Array; + @Field(() => [DummyScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => DummyScalarWhereWithAggregatesInput) + AND?: Array; - @Field(() => [DummyScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => DummyScalarWhereWithAggregatesInput) - NOT?: Array; + @Field(() => [DummyScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => DummyScalarWhereWithAggregatesInput) + OR?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - id?: StringWithAggregatesFilter; + @Field(() => [DummyScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => DummyScalarWhereWithAggregatesInput) + NOT?: Array; - @Field(() => DateTimeNullableWithAggregatesFilter, { nullable: true }) - date?: DateTimeNullableWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + id?: StringWithAggregatesFilter; - @Field(() => IntNullableWithAggregatesFilter, { nullable: true }) - int?: IntNullableWithAggregatesFilter; + @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) + date?: DateTimeNullableWithAggregatesFilter; - @Field(() => FloatNullableWithAggregatesFilter, { nullable: true }) - float?: FloatNullableWithAggregatesFilter; + @Field(() => IntNullableWithAggregatesFilter, {nullable:true}) + int?: IntNullableWithAggregatesFilter; - @Field(() => BytesNullableWithAggregatesFilter, { nullable: true }) - bytes?: BytesNullableWithAggregatesFilter; + @Field(() => FloatNullableWithAggregatesFilter, {nullable:true}) + float?: FloatNullableWithAggregatesFilter; - @Field(() => DecimalWithAggregatesFilter, { nullable: true }) - @Type(() => DecimalWithAggregatesFilter) - decimal?: DecimalWithAggregatesFilter; + @Field(() => BytesNullableWithAggregatesFilter, {nullable:true}) + bytes?: BytesNullableWithAggregatesFilter; - @Field(() => DecimalNullableListFilter, { nullable: true }) - @Type(() => DecimalNullableListFilter) - decimals?: DecimalNullableListFilter; + @Field(() => DecimalWithAggregatesFilter, {nullable:true}) + @Type(() => DecimalWithAggregatesFilter) + decimal?: DecimalWithAggregatesFilter; - @Field(() => BigIntNullableWithAggregatesFilter, { nullable: true }) - bigInt?: BigIntNullableWithAggregatesFilter; + @Field(() => DecimalNullableListFilter, {nullable:true}) + @Type(() => DecimalNullableListFilter) + decimals?: DecimalNullableListFilter; - @Field(() => JsonNullableWithAggregatesFilter, { nullable: true }) - json?: JsonNullableWithAggregatesFilter; + @Field(() => BigIntNullableWithAggregatesFilter, {nullable:true}) + bigInt?: BigIntNullableWithAggregatesFilter; - @Field(() => StringNullableListFilter, { nullable: true }) - friends?: StringNullableListFilter; + @Field(() => JsonNullableWithAggregatesFilter, {nullable:true}) + json?: JsonNullableWithAggregatesFilter; + + @Field(() => StringNullableListFilter, {nullable:true}) + friends?: StringNullableListFilter; } diff --git a/@generated/dummy/dummy-sum-aggregate.input.ts b/@generated/dummy/dummy-sum-aggregate.input.ts index 7c01517d..3ea8e643 100644 --- a/@generated/dummy/dummy-sum-aggregate.input.ts +++ b/@generated/dummy/dummy-sum-aggregate.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummySumAggregateInput { - @Field(() => Boolean, { nullable: true }) - int?: true; - @Field(() => Boolean, { nullable: true }) - float?: true; + @Field(() => Boolean, {nullable:true}) + int?: true; - @Field(() => Boolean, { nullable: true }) - decimal?: true; + @Field(() => Boolean, {nullable:true}) + float?: true; - @Field(() => Boolean, { nullable: true }) - decimals?: true; + @Field(() => Boolean, {nullable:true}) + decimal?: true; - @Field(() => Boolean, { nullable: true }) - bigInt?: true; + @Field(() => Boolean, {nullable:true}) + decimals?: true; + + @Field(() => Boolean, {nullable:true}) + bigInt?: true; } diff --git a/@generated/dummy/dummy-sum-aggregate.output.ts b/@generated/dummy/dummy-sum-aggregate.output.ts index a68045db..0f313a08 100644 --- a/@generated/dummy/dummy-sum-aggregate.output.ts +++ b/@generated/dummy/dummy-sum-aggregate.output.ts @@ -7,18 +7,19 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class DummySumAggregate { - @Field(() => Int, { nullable: true }) - int?: number; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - decimal?: Decimal; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => [GraphQLDecimal], { nullable: true }) - decimals?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + decimal?: Decimal; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => [GraphQLDecimal], {nullable:true}) + decimals?: Array; + + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; } diff --git a/@generated/dummy/dummy-sum-order-by-aggregate.input.ts b/@generated/dummy/dummy-sum-order-by-aggregate.input.ts index 6047f810..ab2cf6c2 100644 --- a/@generated/dummy/dummy-sum-order-by-aggregate.input.ts +++ b/@generated/dummy/dummy-sum-order-by-aggregate.input.ts @@ -4,18 +4,19 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class DummySumOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - float?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + int?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimal?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + float?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - decimals?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimal?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bigInt?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + decimals?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + bigInt?: `${SortOrder}`; } diff --git a/@generated/dummy/dummy-unchecked-create.input.ts b/@generated/dummy/dummy-unchecked-create.input.ts index a13c7d27..5094bab7 100644 --- a/@generated/dummy/dummy-unchecked-create.input.ts +++ b/@generated/dummy/dummy-unchecked-create.input.ts @@ -13,37 +13,38 @@ import { DummyCreatefriendsInput } from './dummy-createfriends.input'; @InputType() export class DummyUncheckedCreateInput { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: true }) - date?: Date | string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => Int, { nullable: true }) - int?: number; + @Field(() => Date, {nullable:true}) + date?: Date | string; - @Field(() => Float, { nullable: true }) - float?: number; + @Field(() => Int, {nullable:true}) + int?: number; - @Field(() => String, { nullable: true }) - bytes?: Uint8Array; + @Field(() => Float, {nullable:true}) + float?: number; - @Field(() => GraphQLDecimal, { nullable: false }) - @Type(() => Object) - @Transform(transformToDecimal) - decimal!: Decimal; + @Field(() => String, {nullable:true}) + bytes?: Uint8Array; - @Field(() => DummyCreatedecimalsInput, { nullable: true }) - @Type(() => DummyCreatedecimalsInput) - decimals?: DummyCreatedecimalsInput; + @Field(() => GraphQLDecimal, {nullable:false}) + @Type(() => Object) + @Transform(transformToDecimal) + decimal!: Decimal; - @Field(() => String, { nullable: true }) - bigInt?: bigint | number; + @Field(() => DummyCreatedecimalsInput, {nullable:true}) + @Type(() => DummyCreatedecimalsInput) + decimals?: DummyCreatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => String, {nullable:true}) + bigInt?: bigint | number; - @Field(() => DummyCreatefriendsInput, { nullable: true }) - @Type(() => DummyCreatefriendsInput) - friends?: DummyCreatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyCreatefriendsInput, {nullable:true}) + @Type(() => DummyCreatefriendsInput) + friends?: DummyCreatefriendsInput; } diff --git a/@generated/dummy/dummy-unchecked-update-many.input.ts b/@generated/dummy/dummy-unchecked-update-many.input.ts index 655b1f05..7fb0c772 100644 --- a/@generated/dummy/dummy-unchecked-update-many.input.ts +++ b/@generated/dummy/dummy-unchecked-update-many.input.ts @@ -14,36 +14,37 @@ import { DummyUpdatefriendsInput } from './dummy-updatefriends.input'; @InputType() export class DummyUncheckedUpdateManyInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) - date?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - int?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + date?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - float?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + int?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableBytesFieldUpdateOperationsInput, { nullable: true }) - bytes?: NullableBytesFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + float?: NullableFloatFieldUpdateOperationsInput; - @Field(() => DecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => DecimalFieldUpdateOperationsInput) - decimal?: DecimalFieldUpdateOperationsInput; + @Field(() => NullableBytesFieldUpdateOperationsInput, {nullable:true}) + bytes?: NullableBytesFieldUpdateOperationsInput; - @Field(() => DummyUpdatedecimalsInput, { nullable: true }) - @Type(() => DummyUpdatedecimalsInput) - decimals?: DummyUpdatedecimalsInput; + @Field(() => DecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => DecimalFieldUpdateOperationsInput) + decimal?: DecimalFieldUpdateOperationsInput; - @Field(() => NullableBigIntFieldUpdateOperationsInput, { nullable: true }) - bigInt?: NullableBigIntFieldUpdateOperationsInput; + @Field(() => DummyUpdatedecimalsInput, {nullable:true}) + @Type(() => DummyUpdatedecimalsInput) + decimals?: DummyUpdatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => NullableBigIntFieldUpdateOperationsInput, {nullable:true}) + bigInt?: NullableBigIntFieldUpdateOperationsInput; - @Field(() => DummyUpdatefriendsInput, { nullable: true }) - @Type(() => DummyUpdatefriendsInput) - friends?: DummyUpdatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyUpdatefriendsInput, {nullable:true}) + @Type(() => DummyUpdatefriendsInput) + friends?: DummyUpdatefriendsInput; } diff --git a/@generated/dummy/dummy-unchecked-update.input.ts b/@generated/dummy/dummy-unchecked-update.input.ts index 6ed7ceed..3b075b56 100644 --- a/@generated/dummy/dummy-unchecked-update.input.ts +++ b/@generated/dummy/dummy-unchecked-update.input.ts @@ -14,36 +14,37 @@ import { DummyUpdatefriendsInput } from './dummy-updatefriends.input'; @InputType() export class DummyUncheckedUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) - date?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - int?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + date?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - float?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + int?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableBytesFieldUpdateOperationsInput, { nullable: true }) - bytes?: NullableBytesFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + float?: NullableFloatFieldUpdateOperationsInput; - @Field(() => DecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => DecimalFieldUpdateOperationsInput) - decimal?: DecimalFieldUpdateOperationsInput; + @Field(() => NullableBytesFieldUpdateOperationsInput, {nullable:true}) + bytes?: NullableBytesFieldUpdateOperationsInput; - @Field(() => DummyUpdatedecimalsInput, { nullable: true }) - @Type(() => DummyUpdatedecimalsInput) - decimals?: DummyUpdatedecimalsInput; + @Field(() => DecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => DecimalFieldUpdateOperationsInput) + decimal?: DecimalFieldUpdateOperationsInput; - @Field(() => NullableBigIntFieldUpdateOperationsInput, { nullable: true }) - bigInt?: NullableBigIntFieldUpdateOperationsInput; + @Field(() => DummyUpdatedecimalsInput, {nullable:true}) + @Type(() => DummyUpdatedecimalsInput) + decimals?: DummyUpdatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => NullableBigIntFieldUpdateOperationsInput, {nullable:true}) + bigInt?: NullableBigIntFieldUpdateOperationsInput; - @Field(() => DummyUpdatefriendsInput, { nullable: true }) - @Type(() => DummyUpdatefriendsInput) - friends?: DummyUpdatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyUpdatefriendsInput, {nullable:true}) + @Type(() => DummyUpdatefriendsInput) + friends?: DummyUpdatefriendsInput; } diff --git a/@generated/dummy/dummy-update-many-mutation.input.ts b/@generated/dummy/dummy-update-many-mutation.input.ts index 31c7ffa2..6c62e46b 100644 --- a/@generated/dummy/dummy-update-many-mutation.input.ts +++ b/@generated/dummy/dummy-update-many-mutation.input.ts @@ -14,36 +14,37 @@ import { DummyUpdatefriendsInput } from './dummy-updatefriends.input'; @InputType() export class DummyUpdateManyMutationInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) - date?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - int?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + date?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - float?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + int?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableBytesFieldUpdateOperationsInput, { nullable: true }) - bytes?: NullableBytesFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + float?: NullableFloatFieldUpdateOperationsInput; - @Field(() => DecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => DecimalFieldUpdateOperationsInput) - decimal?: DecimalFieldUpdateOperationsInput; + @Field(() => NullableBytesFieldUpdateOperationsInput, {nullable:true}) + bytes?: NullableBytesFieldUpdateOperationsInput; - @Field(() => DummyUpdatedecimalsInput, { nullable: true }) - @Type(() => DummyUpdatedecimalsInput) - decimals?: DummyUpdatedecimalsInput; + @Field(() => DecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => DecimalFieldUpdateOperationsInput) + decimal?: DecimalFieldUpdateOperationsInput; - @Field(() => NullableBigIntFieldUpdateOperationsInput, { nullable: true }) - bigInt?: NullableBigIntFieldUpdateOperationsInput; + @Field(() => DummyUpdatedecimalsInput, {nullable:true}) + @Type(() => DummyUpdatedecimalsInput) + decimals?: DummyUpdatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => NullableBigIntFieldUpdateOperationsInput, {nullable:true}) + bigInt?: NullableBigIntFieldUpdateOperationsInput; - @Field(() => DummyUpdatefriendsInput, { nullable: true }) - @Type(() => DummyUpdatefriendsInput) - friends?: DummyUpdatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyUpdatefriendsInput, {nullable:true}) + @Type(() => DummyUpdatefriendsInput) + friends?: DummyUpdatefriendsInput; } diff --git a/@generated/dummy/dummy-update.input.ts b/@generated/dummy/dummy-update.input.ts index 5302abff..1fc470c3 100644 --- a/@generated/dummy/dummy-update.input.ts +++ b/@generated/dummy/dummy-update.input.ts @@ -14,36 +14,37 @@ import { DummyUpdatefriendsInput } from './dummy-updatefriends.input'; @InputType() export class DummyUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) - date?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - int?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + date?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - float?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + int?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableBytesFieldUpdateOperationsInput, { nullable: true }) - bytes?: NullableBytesFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + float?: NullableFloatFieldUpdateOperationsInput; - @Field(() => DecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => DecimalFieldUpdateOperationsInput) - decimal?: DecimalFieldUpdateOperationsInput; + @Field(() => NullableBytesFieldUpdateOperationsInput, {nullable:true}) + bytes?: NullableBytesFieldUpdateOperationsInput; - @Field(() => DummyUpdatedecimalsInput, { nullable: true }) - @Type(() => DummyUpdatedecimalsInput) - decimals?: DummyUpdatedecimalsInput; + @Field(() => DecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => DecimalFieldUpdateOperationsInput) + decimal?: DecimalFieldUpdateOperationsInput; - @Field(() => NullableBigIntFieldUpdateOperationsInput, { nullable: true }) - bigInt?: NullableBigIntFieldUpdateOperationsInput; + @Field(() => DummyUpdatedecimalsInput, {nullable:true}) + @Type(() => DummyUpdatedecimalsInput) + decimals?: DummyUpdatedecimalsInput; - @Field(() => GraphQLJSON, { nullable: true }) - json?: any; + @Field(() => NullableBigIntFieldUpdateOperationsInput, {nullable:true}) + bigInt?: NullableBigIntFieldUpdateOperationsInput; - @Field(() => DummyUpdatefriendsInput, { nullable: true }) - @Type(() => DummyUpdatefriendsInput) - friends?: DummyUpdatefriendsInput; + @Field(() => GraphQLJSON, {nullable:true}) + json?: any; + + @Field(() => DummyUpdatefriendsInput, {nullable:true}) + @Type(() => DummyUpdatefriendsInput) + friends?: DummyUpdatefriendsInput; } diff --git a/@generated/dummy/dummy-updatedecimals.input.ts b/@generated/dummy/dummy-updatedecimals.input.ts index 94b0cf60..07a6a76d 100644 --- a/@generated/dummy/dummy-updatedecimals.input.ts +++ b/@generated/dummy/dummy-updatedecimals.input.ts @@ -8,13 +8,14 @@ import { Type } from 'class-transformer'; @InputType() export class DummyUpdatedecimalsInput { - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - set?: Array; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - push?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + set?: Array; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + push?: Array; } diff --git a/@generated/dummy/dummy-updatefriends.input.ts b/@generated/dummy/dummy-updatefriends.input.ts index 9638210e..47a68101 100644 --- a/@generated/dummy/dummy-updatefriends.input.ts +++ b/@generated/dummy/dummy-updatefriends.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DummyUpdatefriendsInput { - @Field(() => [String], { nullable: true }) - set?: Array; - @Field(() => [String], { nullable: true }) - push?: Array; + @Field(() => [String], {nullable:true}) + set?: Array; + + @Field(() => [String], {nullable:true}) + push?: Array; } diff --git a/@generated/dummy/dummy-where-unique.input.ts b/@generated/dummy/dummy-where-unique.input.ts index c1933691..211c2d44 100644 --- a/@generated/dummy/dummy-where-unique.input.ts +++ b/@generated/dummy/dummy-where-unique.input.ts @@ -14,47 +14,48 @@ import { StringNullableListFilter } from '../prisma/string-nullable-list-filter. @InputType() export class DummyWhereUniqueInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - AND?: Array; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - OR?: Array; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + AND?: Array; - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - NOT?: Array; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + OR?: Array; - @Field(() => DateTimeNullableFilter, { nullable: true }) - date?: DateTimeNullableFilter; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + NOT?: Array; - @Field(() => IntNullableFilter, { nullable: true }) - int?: IntNullableFilter; + @Field(() => DateTimeNullableFilter, {nullable:true}) + date?: DateTimeNullableFilter; - @Field(() => FloatNullableFilter, { nullable: true }) - float?: FloatNullableFilter; + @Field(() => IntNullableFilter, {nullable:true}) + int?: IntNullableFilter; - @Field(() => BytesNullableFilter, { nullable: true }) - bytes?: BytesNullableFilter; + @Field(() => FloatNullableFilter, {nullable:true}) + float?: FloatNullableFilter; - @Field(() => DecimalFilter, { nullable: true }) - @Type(() => DecimalFilter) - decimal?: DecimalFilter; + @Field(() => BytesNullableFilter, {nullable:true}) + bytes?: BytesNullableFilter; - @Field(() => DecimalNullableListFilter, { nullable: true }) - @Type(() => DecimalNullableListFilter) - decimals?: DecimalNullableListFilter; + @Field(() => DecimalFilter, {nullable:true}) + @Type(() => DecimalFilter) + decimal?: DecimalFilter; - @Field(() => BigIntNullableFilter, { nullable: true }) - bigInt?: BigIntNullableFilter; + @Field(() => DecimalNullableListFilter, {nullable:true}) + @Type(() => DecimalNullableListFilter) + decimals?: DecimalNullableListFilter; - @Field(() => JsonNullableFilter, { nullable: true }) - json?: JsonNullableFilter; + @Field(() => BigIntNullableFilter, {nullable:true}) + bigInt?: BigIntNullableFilter; - @Field(() => StringNullableListFilter, { nullable: true }) - friends?: StringNullableListFilter; + @Field(() => JsonNullableFilter, {nullable:true}) + json?: JsonNullableFilter; + + @Field(() => StringNullableListFilter, {nullable:true}) + friends?: StringNullableListFilter; } diff --git a/@generated/dummy/dummy-where.input.ts b/@generated/dummy/dummy-where.input.ts index a9d5dc51..a6d4ad1a 100644 --- a/@generated/dummy/dummy-where.input.ts +++ b/@generated/dummy/dummy-where.input.ts @@ -14,47 +14,48 @@ import { StringNullableListFilter } from '../prisma/string-nullable-list-filter. @InputType() export class DummyWhereInput { - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - AND?: Array; - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - OR?: Array; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + AND?: Array; - @Field(() => [DummyWhereInput], { nullable: true }) - @Type(() => DummyWhereInput) - NOT?: Array; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [DummyWhereInput], {nullable:true}) + @Type(() => DummyWhereInput) + NOT?: Array; - @Field(() => DateTimeNullableFilter, { nullable: true }) - date?: DateTimeNullableFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => IntNullableFilter, { nullable: true }) - int?: IntNullableFilter; + @Field(() => DateTimeNullableFilter, {nullable:true}) + date?: DateTimeNullableFilter; - @Field(() => FloatNullableFilter, { nullable: true }) - float?: FloatNullableFilter; + @Field(() => IntNullableFilter, {nullable:true}) + int?: IntNullableFilter; - @Field(() => BytesNullableFilter, { nullable: true }) - bytes?: BytesNullableFilter; + @Field(() => FloatNullableFilter, {nullable:true}) + float?: FloatNullableFilter; - @Field(() => DecimalFilter, { nullable: true }) - @Type(() => DecimalFilter) - decimal?: DecimalFilter; + @Field(() => BytesNullableFilter, {nullable:true}) + bytes?: BytesNullableFilter; - @Field(() => DecimalNullableListFilter, { nullable: true }) - @Type(() => DecimalNullableListFilter) - decimals?: DecimalNullableListFilter; + @Field(() => DecimalFilter, {nullable:true}) + @Type(() => DecimalFilter) + decimal?: DecimalFilter; - @Field(() => BigIntNullableFilter, { nullable: true }) - bigInt?: BigIntNullableFilter; + @Field(() => DecimalNullableListFilter, {nullable:true}) + @Type(() => DecimalNullableListFilter) + decimals?: DecimalNullableListFilter; - @Field(() => JsonNullableFilter, { nullable: true }) - json?: JsonNullableFilter; + @Field(() => BigIntNullableFilter, {nullable:true}) + bigInt?: BigIntNullableFilter; - @Field(() => StringNullableListFilter, { nullable: true }) - friends?: StringNullableListFilter; + @Field(() => JsonNullableFilter, {nullable:true}) + json?: JsonNullableFilter; + + @Field(() => StringNullableListFilter, {nullable:true}) + friends?: StringNullableListFilter; } diff --git a/@generated/dummy/dummy.model.ts b/@generated/dummy/dummy.model.ts index 251d026c..899384f9 100644 --- a/@generated/dummy/dummy.model.ts +++ b/@generated/dummy/dummy.model.ts @@ -9,33 +9,34 @@ import { GraphQLJSON } from 'graphql-type-json'; @ObjectType() export class Dummy { - @Field(() => ID, { nullable: false }) - id!: string; - @Field(() => Date, { nullable: true }) - date!: Date | null; + @Field(() => ID, {nullable:false}) + id!: string; - @Field(() => Int, { nullable: true }) - int!: number | null; + @Field(() => Date, {nullable:true}) + date!: Date | null; - @Field(() => Float, { nullable: true }) - float!: number | null; + @Field(() => Int, {nullable:true}) + int!: number | null; - @Field(() => String, { nullable: true }) - bytes!: Uint8Array | null; + @Field(() => Float, {nullable:true}) + float!: number | null; - @Field(() => GraphQLDecimal, { nullable: false }) - decimal!: Decimal; + @Field(() => String, {nullable:true}) + bytes!: Uint8Array | null; - @Field(() => [GraphQLDecimal], { nullable: true }) - decimals!: Array; + @Field(() => GraphQLDecimal, {nullable:false}) + decimal!: Decimal; - @Field(() => String, { nullable: true }) - bigInt!: bigint | null; + @Field(() => [GraphQLDecimal], {nullable:true}) + decimals!: Array; - @Field(() => GraphQLJSON, { nullable: true }) - json!: any | null; + @Field(() => String, {nullable:true}) + bigInt!: bigint | null; - @Field(() => [String], { nullable: true }) - friends!: Array; + @Field(() => GraphQLJSON, {nullable:true}) + json!: any | null; + + @Field(() => [String], {nullable:true}) + friends!: Array; } diff --git a/@generated/dummy/find-first-dummy-or-throw.args.ts b/@generated/dummy/find-first-dummy-or-throw.args.ts index 27075247..be44c76c 100644 --- a/@generated/dummy/find-first-dummy-or-throw.args.ts +++ b/@generated/dummy/find-first-dummy-or-throw.args.ts @@ -10,24 +10,25 @@ import { DummyScalarFieldEnum } from './dummy-scalar-field.enum'; @ArgsType() export class FindFirstDummyOrThrowArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; - @Field(() => [DummyOrderByWithRelationInput], { nullable: true }) - @Type(() => DummyOrderByWithRelationInput) - orderBy?: Array; + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; - @Field(() => DummyWhereUniqueInput, { nullable: true }) - @Type(() => DummyWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [DummyOrderByWithRelationInput], {nullable:true}) + @Type(() => DummyOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => DummyWhereUniqueInput, {nullable:true}) + @Type(() => DummyWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [DummyScalarFieldEnum], { nullable: true }) - distinct?: Array<`${DummyScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [DummyScalarFieldEnum], {nullable:true}) + distinct?: Array<`${DummyScalarFieldEnum}`>; } diff --git a/@generated/dummy/find-first-dummy.args.ts b/@generated/dummy/find-first-dummy.args.ts index 2d6241e5..71eedb04 100644 --- a/@generated/dummy/find-first-dummy.args.ts +++ b/@generated/dummy/find-first-dummy.args.ts @@ -10,24 +10,25 @@ import { DummyScalarFieldEnum } from './dummy-scalar-field.enum'; @ArgsType() export class FindFirstDummyArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; - @Field(() => [DummyOrderByWithRelationInput], { nullable: true }) - @Type(() => DummyOrderByWithRelationInput) - orderBy?: Array; + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; - @Field(() => DummyWhereUniqueInput, { nullable: true }) - @Type(() => DummyWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [DummyOrderByWithRelationInput], {nullable:true}) + @Type(() => DummyOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => DummyWhereUniqueInput, {nullable:true}) + @Type(() => DummyWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [DummyScalarFieldEnum], { nullable: true }) - distinct?: Array<`${DummyScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [DummyScalarFieldEnum], {nullable:true}) + distinct?: Array<`${DummyScalarFieldEnum}`>; } diff --git a/@generated/dummy/find-many-dummy.args.ts b/@generated/dummy/find-many-dummy.args.ts index ccd7742e..eda06c52 100644 --- a/@generated/dummy/find-many-dummy.args.ts +++ b/@generated/dummy/find-many-dummy.args.ts @@ -10,24 +10,25 @@ import { DummyScalarFieldEnum } from './dummy-scalar-field.enum'; @ArgsType() export class FindManyDummyArgs { - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; - @Field(() => [DummyOrderByWithRelationInput], { nullable: true }) - @Type(() => DummyOrderByWithRelationInput) - orderBy?: Array; + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; - @Field(() => DummyWhereUniqueInput, { nullable: true }) - @Type(() => DummyWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [DummyOrderByWithRelationInput], {nullable:true}) + @Type(() => DummyOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => DummyWhereUniqueInput, {nullable:true}) + @Type(() => DummyWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [DummyScalarFieldEnum], { nullable: true }) - distinct?: Array<`${DummyScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [DummyScalarFieldEnum], {nullable:true}) + distinct?: Array<`${DummyScalarFieldEnum}`>; } diff --git a/@generated/dummy/find-unique-dummy-or-throw.args.ts b/@generated/dummy/find-unique-dummy-or-throw.args.ts index 49e0aa4c..fabc26e4 100644 --- a/@generated/dummy/find-unique-dummy-or-throw.args.ts +++ b/@generated/dummy/find-unique-dummy-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueDummyOrThrowArgs { - @Field(() => DummyWhereUniqueInput, { nullable: false }) - @Type(() => DummyWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => DummyWhereUniqueInput, {nullable:false}) + @Type(() => DummyWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/dummy/find-unique-dummy.args.ts b/@generated/dummy/find-unique-dummy.args.ts index 9ada9c1e..67e93b1c 100644 --- a/@generated/dummy/find-unique-dummy.args.ts +++ b/@generated/dummy/find-unique-dummy.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueDummyArgs { - @Field(() => DummyWhereUniqueInput, { nullable: false }) - @Type(() => DummyWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => DummyWhereUniqueInput, {nullable:false}) + @Type(() => DummyWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/dummy/update-many-dummy.args.ts b/@generated/dummy/update-many-dummy.args.ts index 05f7acc4..6984aa2a 100644 --- a/@generated/dummy/update-many-dummy.args.ts +++ b/@generated/dummy/update-many-dummy.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { DummyUpdateManyMutationInput } from './dummy-update-many-mutation.input'; import { Type } from 'class-transformer'; import { DummyWhereInput } from './dummy-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyDummyArgs { - @Field(() => DummyUpdateManyMutationInput, { nullable: false }) - @Type(() => DummyUpdateManyMutationInput) - data!: DummyUpdateManyMutationInput; - @Field(() => DummyWhereInput, { nullable: true }) - @Type(() => DummyWhereInput) - where?: DummyWhereInput; + @Field(() => DummyUpdateManyMutationInput, {nullable:false}) + @Type(() => DummyUpdateManyMutationInput) + data!: DummyUpdateManyMutationInput; + + @Field(() => DummyWhereInput, {nullable:true}) + @Type(() => DummyWhereInput) + where?: DummyWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/dummy/update-one-dummy.args.ts b/@generated/dummy/update-one-dummy.args.ts index 2ad690bf..d5bc7d2f 100644 --- a/@generated/dummy/update-one-dummy.args.ts +++ b/@generated/dummy/update-one-dummy.args.ts @@ -7,11 +7,12 @@ import { DummyWhereUniqueInput } from './dummy-where-unique.input'; @ArgsType() export class UpdateOneDummyArgs { - @Field(() => DummyUpdateInput, { nullable: false }) - @Type(() => DummyUpdateInput) - data!: DummyUpdateInput; - @Field(() => DummyWhereUniqueInput, { nullable: false }) - @Type(() => DummyWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => DummyUpdateInput, {nullable:false}) + @Type(() => DummyUpdateInput) + data!: DummyUpdateInput; + + @Field(() => DummyWhereUniqueInput, {nullable:false}) + @Type(() => DummyWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/dummy/upsert-one-dummy.args.ts b/@generated/dummy/upsert-one-dummy.args.ts index 78c1c3c1..673ea1b5 100644 --- a/@generated/dummy/upsert-one-dummy.args.ts +++ b/@generated/dummy/upsert-one-dummy.args.ts @@ -8,15 +8,16 @@ import { DummyUpdateInput } from './dummy-update.input'; @ArgsType() export class UpsertOneDummyArgs { - @Field(() => DummyWhereUniqueInput, { nullable: false }) - @Type(() => DummyWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => DummyCreateInput, { nullable: false }) - @Type(() => DummyCreateInput) - create!: DummyCreateInput; + @Field(() => DummyWhereUniqueInput, {nullable:false}) + @Type(() => DummyWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => DummyUpdateInput, { nullable: false }) - @Type(() => DummyUpdateInput) - update!: DummyUpdateInput; + @Field(() => DummyCreateInput, {nullable:false}) + @Type(() => DummyCreateInput) + create!: DummyCreateInput; + + @Field(() => DummyUpdateInput, {nullable:false}) + @Type(() => DummyUpdateInput) + update!: DummyUpdateInput; } diff --git a/@generated/prisma/affected-rows.output.ts b/@generated/prisma/affected-rows.output.ts index b43eddcc..05e4950d 100644 --- a/@generated/prisma/affected-rows.output.ts +++ b/@generated/prisma/affected-rows.output.ts @@ -4,6 +4,7 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class AffectedRows { - @Field(() => Int, { nullable: false }) - count!: number; + + @Field(() => Int, {nullable:false}) + count!: number; } diff --git a/@generated/prisma/big-int-nullable-filter.input.ts b/@generated/prisma/big-int-nullable-filter.input.ts index 5d289c52..ba72745f 100644 --- a/@generated/prisma/big-int-nullable-filter.input.ts +++ b/@generated/prisma/big-int-nullable-filter.input.ts @@ -4,27 +4,28 @@ import { NestedBigIntNullableFilter } from './nested-big-int-nullable-filter.inp @InputType() export class BigIntNullableFilter { - @Field(() => String, { nullable: true }) - equals?: bigint | number; - @Field(() => [String], { nullable: true }) - in?: Array | Array; + @Field(() => String, {nullable:true}) + equals?: bigint | number; - @Field(() => [String], { nullable: true }) - notIn?: Array | Array; + @Field(() => [String], {nullable:true}) + in?: Array | Array; - @Field(() => String, { nullable: true }) - lt?: bigint | number; + @Field(() => [String], {nullable:true}) + notIn?: Array | Array; - @Field(() => String, { nullable: true }) - lte?: bigint | number; + @Field(() => String, {nullable:true}) + lt?: bigint | number; - @Field(() => String, { nullable: true }) - gt?: bigint | number; + @Field(() => String, {nullable:true}) + lte?: bigint | number; - @Field(() => String, { nullable: true }) - gte?: bigint | number; + @Field(() => String, {nullable:true}) + gt?: bigint | number; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - not?: NestedBigIntNullableFilter; + @Field(() => String, {nullable:true}) + gte?: bigint | number; + + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + not?: NestedBigIntNullableFilter; } diff --git a/@generated/prisma/big-int-nullable-with-aggregates-filter.input.ts b/@generated/prisma/big-int-nullable-with-aggregates-filter.input.ts index 0fd6a394..468c6bad 100644 --- a/@generated/prisma/big-int-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/big-int-nullable-with-aggregates-filter.input.ts @@ -7,42 +7,43 @@ import { NestedBigIntNullableFilter } from './nested-big-int-nullable-filter.inp @InputType() export class BigIntNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: bigint | number; - @Field(() => [String], { nullable: true }) - in?: Array | Array; + @Field(() => String, {nullable:true}) + equals?: bigint | number; - @Field(() => [String], { nullable: true }) - notIn?: Array | Array; + @Field(() => [String], {nullable:true}) + in?: Array | Array; - @Field(() => String, { nullable: true }) - lt?: bigint | number; + @Field(() => [String], {nullable:true}) + notIn?: Array | Array; - @Field(() => String, { nullable: true }) - lte?: bigint | number; + @Field(() => String, {nullable:true}) + lt?: bigint | number; - @Field(() => String, { nullable: true }) - gt?: bigint | number; + @Field(() => String, {nullable:true}) + lte?: bigint | number; - @Field(() => String, { nullable: true }) - gte?: bigint | number; + @Field(() => String, {nullable:true}) + gt?: bigint | number; - @Field(() => NestedBigIntNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBigIntNullableWithAggregatesFilter; + @Field(() => String, {nullable:true}) + gte?: bigint | number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBigIntNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBigIntNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _sum?: NestedBigIntNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _min?: NestedBigIntNullableFilter; + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _sum?: NestedBigIntNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _max?: NestedBigIntNullableFilter; + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _min?: NestedBigIntNullableFilter; + + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _max?: NestedBigIntNullableFilter; } diff --git a/@generated/prisma/bool-nullable-filter.input.ts b/@generated/prisma/bool-nullable-filter.input.ts index 9cfaa1ce..3a6f82bd 100644 --- a/@generated/prisma/bool-nullable-filter.input.ts +++ b/@generated/prisma/bool-nullable-filter.input.ts @@ -4,9 +4,10 @@ import { NestedBoolNullableFilter } from './nested-bool-nullable-filter.input'; @InputType() export class BoolNullableFilter { - @Field(() => Boolean, { nullable: true }) - equals?: boolean; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - not?: NestedBoolNullableFilter; + @Field(() => Boolean, {nullable:true}) + equals?: boolean; + + @Field(() => NestedBoolNullableFilter, {nullable:true}) + not?: NestedBoolNullableFilter; } diff --git a/@generated/prisma/bool-nullable-with-aggregates-filter.input.ts b/@generated/prisma/bool-nullable-with-aggregates-filter.input.ts index 52864619..d9ffa370 100644 --- a/@generated/prisma/bool-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/bool-nullable-with-aggregates-filter.input.ts @@ -6,18 +6,19 @@ import { NestedBoolNullableFilter } from './nested-bool-nullable-filter.input'; @InputType() export class BoolNullableWithAggregatesFilter { - @Field(() => Boolean, { nullable: true }) - equals?: boolean; - @Field(() => NestedBoolNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBoolNullableWithAggregatesFilter; + @Field(() => Boolean, {nullable:true}) + equals?: boolean; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBoolNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBoolNullableWithAggregatesFilter; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - _min?: NestedBoolNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - _max?: NestedBoolNullableFilter; + @Field(() => NestedBoolNullableFilter, {nullable:true}) + _min?: NestedBoolNullableFilter; + + @Field(() => NestedBoolNullableFilter, {nullable:true}) + _max?: NestedBoolNullableFilter; } diff --git a/@generated/prisma/bytes-nullable-filter.input.ts b/@generated/prisma/bytes-nullable-filter.input.ts index 4fce15ca..05e11271 100644 --- a/@generated/prisma/bytes-nullable-filter.input.ts +++ b/@generated/prisma/bytes-nullable-filter.input.ts @@ -4,15 +4,16 @@ import { NestedBytesNullableFilter } from './nested-bytes-nullable-filter.input' @InputType() export class BytesNullableFilter { - @Field(() => String, { nullable: true }) - equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - not?: NestedBytesNullableFilter; + @Field(() => [String], {nullable:true}) + notIn?: Array; + + @Field(() => NestedBytesNullableFilter, {nullable:true}) + not?: NestedBytesNullableFilter; } diff --git a/@generated/prisma/bytes-nullable-with-aggregates-filter.input.ts b/@generated/prisma/bytes-nullable-with-aggregates-filter.input.ts index c4d97d8f..09d2dc39 100644 --- a/@generated/prisma/bytes-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/bytes-nullable-with-aggregates-filter.input.ts @@ -6,24 +6,25 @@ import { NestedBytesNullableFilter } from './nested-bytes-nullable-filter.input' @InputType() export class BytesNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => NestedBytesNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBytesNullableWithAggregatesFilter; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBytesNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBytesNullableWithAggregatesFilter; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - _min?: NestedBytesNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - _max?: NestedBytesNullableFilter; + @Field(() => NestedBytesNullableFilter, {nullable:true}) + _min?: NestedBytesNullableFilter; + + @Field(() => NestedBytesNullableFilter, {nullable:true}) + _max?: NestedBytesNullableFilter; } diff --git a/@generated/prisma/date-time-field-update-operations.input.ts b/@generated/prisma/date-time-field-update-operations.input.ts index 98976cb5..d53a5ddf 100644 --- a/@generated/prisma/date-time-field-update-operations.input.ts +++ b/@generated/prisma/date-time-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class DateTimeFieldUpdateOperationsInput { - @Field(() => Date, { nullable: true }) - set?: Date | string; + + @Field(() => Date, {nullable:true}) + set?: Date | string; } diff --git a/@generated/prisma/date-time-filter.input.ts b/@generated/prisma/date-time-filter.input.ts index c93b003c..6bccf55d 100644 --- a/@generated/prisma/date-time-filter.input.ts +++ b/@generated/prisma/date-time-filter.input.ts @@ -4,27 +4,28 @@ import { NestedDateTimeFilter } from './nested-date-time-filter.input'; @InputType() export class DateTimeFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeFilter, { nullable: true }) - not?: NestedDateTimeFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; + + @Field(() => NestedDateTimeFilter, {nullable:true}) + not?: NestedDateTimeFilter; } diff --git a/@generated/prisma/date-time-nullable-filter.input.ts b/@generated/prisma/date-time-nullable-filter.input.ts index 88fca8aa..0a134909 100644 --- a/@generated/prisma/date-time-nullable-filter.input.ts +++ b/@generated/prisma/date-time-nullable-filter.input.ts @@ -4,27 +4,28 @@ import { NestedDateTimeNullableFilter } from './nested-date-time-nullable-filter @InputType() export class DateTimeNullableFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - not?: NestedDateTimeNullableFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; + + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + not?: NestedDateTimeNullableFilter; } diff --git a/@generated/prisma/date-time-nullable-with-aggregates-filter.input.ts b/@generated/prisma/date-time-nullable-with-aggregates-filter.input.ts index 2f84adf2..8af95d8e 100644 --- a/@generated/prisma/date-time-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/date-time-nullable-with-aggregates-filter.input.ts @@ -6,36 +6,37 @@ import { NestedDateTimeNullableFilter } from './nested-date-time-nullable-filter @InputType() export class DateTimeNullableWithAggregatesFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeNullableWithAggregatesFilter, { nullable: true }) - not?: NestedDateTimeNullableWithAggregatesFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedDateTimeNullableWithAggregatesFilter, {nullable:true}) + not?: NestedDateTimeNullableWithAggregatesFilter; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - _min?: NestedDateTimeNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - _max?: NestedDateTimeNullableFilter; + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + _min?: NestedDateTimeNullableFilter; + + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + _max?: NestedDateTimeNullableFilter; } diff --git a/@generated/prisma/date-time-with-aggregates-filter.input.ts b/@generated/prisma/date-time-with-aggregates-filter.input.ts index 47fba5e3..ab663c4f 100644 --- a/@generated/prisma/date-time-with-aggregates-filter.input.ts +++ b/@generated/prisma/date-time-with-aggregates-filter.input.ts @@ -6,36 +6,37 @@ import { NestedDateTimeFilter } from './nested-date-time-filter.input'; @InputType() export class DateTimeWithAggregatesFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeWithAggregatesFilter, { nullable: true }) - not?: NestedDateTimeWithAggregatesFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedDateTimeWithAggregatesFilter, {nullable:true}) + not?: NestedDateTimeWithAggregatesFilter; - @Field(() => NestedDateTimeFilter, { nullable: true }) - _min?: NestedDateTimeFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedDateTimeFilter, { nullable: true }) - _max?: NestedDateTimeFilter; + @Field(() => NestedDateTimeFilter, {nullable:true}) + _min?: NestedDateTimeFilter; + + @Field(() => NestedDateTimeFilter, {nullable:true}) + _max?: NestedDateTimeFilter; } diff --git a/@generated/prisma/decimal-field-update-operations.input.ts b/@generated/prisma/decimal-field-update-operations.input.ts index 7ea9b88f..fb22cad3 100644 --- a/@generated/prisma/decimal-field-update-operations.input.ts +++ b/@generated/prisma/decimal-field-update-operations.input.ts @@ -8,28 +8,29 @@ import { Type } from 'class-transformer'; @InputType() export class DecimalFieldUpdateOperationsInput { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - set?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - increment?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + set?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - decrement?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + increment?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - multiply?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + decrement?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - divide?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + multiply?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + divide?: Decimal; } diff --git a/@generated/prisma/decimal-filter.input.ts b/@generated/prisma/decimal-filter.input.ts index f169fac7..6759ad31 100644 --- a/@generated/prisma/decimal-filter.input.ts +++ b/@generated/prisma/decimal-filter.input.ts @@ -9,41 +9,42 @@ import { NestedDecimalFilter } from './nested-decimal-filter.input'; @InputType() export class DecimalFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; - - @Field(() => NestedDecimalFilter, { nullable: true }) - not?: NestedDecimalFilter; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; + + @Field(() => NestedDecimalFilter, {nullable:true}) + not?: NestedDecimalFilter; } diff --git a/@generated/prisma/decimal-nullable-filter.input.ts b/@generated/prisma/decimal-nullable-filter.input.ts index aaeca497..882b9cd1 100644 --- a/@generated/prisma/decimal-nullable-filter.input.ts +++ b/@generated/prisma/decimal-nullable-filter.input.ts @@ -9,41 +9,42 @@ import { NestedDecimalNullableFilter } from './nested-decimal-nullable-filter.in @InputType() export class DecimalNullableFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; - - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - not?: NestedDecimalNullableFilter; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; + + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + not?: NestedDecimalNullableFilter; } diff --git a/@generated/prisma/decimal-nullable-list-filter.input.ts b/@generated/prisma/decimal-nullable-list-filter.input.ts index e1b85651..57eedb62 100644 --- a/@generated/prisma/decimal-nullable-list-filter.input.ts +++ b/@generated/prisma/decimal-nullable-list-filter.input.ts @@ -8,26 +8,27 @@ import { Type } from 'class-transformer'; @InputType() export class DecimalNullableListFilter { - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - has?: Decimal; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Array; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - hasEvery?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + has?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - hasSome?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + hasEvery?: Array; - @Field(() => Boolean, { nullable: true }) - isEmpty?: boolean; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + hasSome?: Array; + + @Field(() => Boolean, {nullable:true}) + isEmpty?: boolean; } diff --git a/@generated/prisma/decimal-nullable-with-aggregates-filter.input.ts b/@generated/prisma/decimal-nullable-with-aggregates-filter.input.ts index bca3a655..7b415d97 100644 --- a/@generated/prisma/decimal-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/decimal-nullable-with-aggregates-filter.input.ts @@ -11,56 +11,57 @@ import { NestedDecimalNullableFilter } from './nested-decimal-nullable-filter.in @InputType() export class DecimalNullableWithAggregatesFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; - @Field(() => NestedDecimalNullableWithAggregatesFilter, { nullable: true }) - not?: NestedDecimalNullableWithAggregatesFilter; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedDecimalNullableWithAggregatesFilter, {nullable:true}) + not?: NestedDecimalNullableWithAggregatesFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _avg?: NestedDecimalNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _sum?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _avg?: NestedDecimalNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _min?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _sum?: NestedDecimalNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _max?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _min?: NestedDecimalNullableFilter; + + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _max?: NestedDecimalNullableFilter; } diff --git a/@generated/prisma/decimal-with-aggregates-filter.input.ts b/@generated/prisma/decimal-with-aggregates-filter.input.ts index 4155d89f..56f957fd 100644 --- a/@generated/prisma/decimal-with-aggregates-filter.input.ts +++ b/@generated/prisma/decimal-with-aggregates-filter.input.ts @@ -11,56 +11,57 @@ import { NestedDecimalFilter } from './nested-decimal-filter.input'; @InputType() export class DecimalWithAggregatesFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; - @Field(() => NestedDecimalWithAggregatesFilter, { nullable: true }) - not?: NestedDecimalWithAggregatesFilter; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedDecimalWithAggregatesFilter, {nullable:true}) + not?: NestedDecimalWithAggregatesFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _avg?: NestedDecimalFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _sum?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _avg?: NestedDecimalFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _min?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _sum?: NestedDecimalFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _max?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _min?: NestedDecimalFilter; + + @Field(() => NestedDecimalFilter, {nullable:true}) + _max?: NestedDecimalFilter; } diff --git a/@generated/prisma/enum-role-nullable-filter.input.ts b/@generated/prisma/enum-role-nullable-filter.input.ts index 2568e827..10ab43b6 100644 --- a/@generated/prisma/enum-role-nullable-filter.input.ts +++ b/@generated/prisma/enum-role-nullable-filter.input.ts @@ -5,15 +5,16 @@ import { NestedEnumRoleNullableFilter } from './nested-enum-role-nullable-filter @InputType() export class EnumRoleNullableFilter { - @Field(() => Role, { nullable: true }) - equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - in?: Array<`${Role}`>; + @Field(() => Role, {nullable:true}) + equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - notIn?: Array<`${Role}`>; + @Field(() => [Role], {nullable:true}) + in?: Array<`${Role}`>; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - not?: NestedEnumRoleNullableFilter; + @Field(() => [Role], {nullable:true}) + notIn?: Array<`${Role}`>; + + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + not?: NestedEnumRoleNullableFilter; } diff --git a/@generated/prisma/enum-role-nullable-with-aggregates-filter.input.ts b/@generated/prisma/enum-role-nullable-with-aggregates-filter.input.ts index acf70374..6d6d80cd 100644 --- a/@generated/prisma/enum-role-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/enum-role-nullable-with-aggregates-filter.input.ts @@ -7,24 +7,25 @@ import { NestedEnumRoleNullableFilter } from './nested-enum-role-nullable-filter @InputType() export class EnumRoleNullableWithAggregatesFilter { - @Field(() => Role, { nullable: true }) - equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - in?: Array<`${Role}`>; + @Field(() => Role, {nullable:true}) + equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - notIn?: Array<`${Role}`>; + @Field(() => [Role], {nullable:true}) + in?: Array<`${Role}`>; - @Field(() => NestedEnumRoleNullableWithAggregatesFilter, { nullable: true }) - not?: NestedEnumRoleNullableWithAggregatesFilter; + @Field(() => [Role], {nullable:true}) + notIn?: Array<`${Role}`>; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedEnumRoleNullableWithAggregatesFilter, {nullable:true}) + not?: NestedEnumRoleNullableWithAggregatesFilter; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - _min?: NestedEnumRoleNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - _max?: NestedEnumRoleNullableFilter; + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + _min?: NestedEnumRoleNullableFilter; + + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + _max?: NestedEnumRoleNullableFilter; } diff --git a/@generated/prisma/float-nullable-filter.input.ts b/@generated/prisma/float-nullable-filter.input.ts index 1d343dd1..e415cbbc 100644 --- a/@generated/prisma/float-nullable-filter.input.ts +++ b/@generated/prisma/float-nullable-filter.input.ts @@ -5,27 +5,28 @@ import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input' @InputType() export class FloatNullableFilter { - @Field(() => Float, { nullable: true }) - equals?: number; - @Field(() => [Float], { nullable: true }) - in?: Array; + @Field(() => Float, {nullable:true}) + equals?: number; - @Field(() => [Float], { nullable: true }) - notIn?: Array; + @Field(() => [Float], {nullable:true}) + in?: Array; - @Field(() => Float, { nullable: true }) - lt?: number; + @Field(() => [Float], {nullable:true}) + notIn?: Array; - @Field(() => Float, { nullable: true }) - lte?: number; + @Field(() => Float, {nullable:true}) + lt?: number; - @Field(() => Float, { nullable: true }) - gt?: number; + @Field(() => Float, {nullable:true}) + lte?: number; - @Field(() => Float, { nullable: true }) - gte?: number; + @Field(() => Float, {nullable:true}) + gt?: number; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - not?: NestedFloatNullableFilter; + @Field(() => Float, {nullable:true}) + gte?: number; + + @Field(() => NestedFloatNullableFilter, {nullable:true}) + not?: NestedFloatNullableFilter; } diff --git a/@generated/prisma/float-nullable-with-aggregates-filter.input.ts b/@generated/prisma/float-nullable-with-aggregates-filter.input.ts index 9c6c327d..e2af29e3 100644 --- a/@generated/prisma/float-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/float-nullable-with-aggregates-filter.input.ts @@ -7,42 +7,43 @@ import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input' @InputType() export class FloatNullableWithAggregatesFilter { - @Field(() => Float, { nullable: true }) - equals?: number; - @Field(() => [Float], { nullable: true }) - in?: Array; + @Field(() => Float, {nullable:true}) + equals?: number; - @Field(() => [Float], { nullable: true }) - notIn?: Array; + @Field(() => [Float], {nullable:true}) + in?: Array; - @Field(() => Float, { nullable: true }) - lt?: number; + @Field(() => [Float], {nullable:true}) + notIn?: Array; - @Field(() => Float, { nullable: true }) - lte?: number; + @Field(() => Float, {nullable:true}) + lt?: number; - @Field(() => Float, { nullable: true }) - gt?: number; + @Field(() => Float, {nullable:true}) + lte?: number; - @Field(() => Float, { nullable: true }) - gte?: number; + @Field(() => Float, {nullable:true}) + gt?: number; - @Field(() => NestedFloatNullableWithAggregatesFilter, { nullable: true }) - not?: NestedFloatNullableWithAggregatesFilter; + @Field(() => Float, {nullable:true}) + gte?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedFloatNullableWithAggregatesFilter, {nullable:true}) + not?: NestedFloatNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _sum?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _min?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _sum?: NestedFloatNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _max?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _min?: NestedFloatNullableFilter; + + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _max?: NestedFloatNullableFilter; } diff --git a/@generated/prisma/int-field-update-operations.input.ts b/@generated/prisma/int-field-update-operations.input.ts index 335ffa09..f4decce3 100644 --- a/@generated/prisma/int-field-update-operations.input.ts +++ b/@generated/prisma/int-field-update-operations.input.ts @@ -4,18 +4,19 @@ import { Int } from '@nestjs/graphql'; @InputType() export class IntFieldUpdateOperationsInput { - @Field(() => Int, { nullable: true }) - set?: number; - @Field(() => Int, { nullable: true }) - increment?: number; + @Field(() => Int, {nullable:true}) + set?: number; - @Field(() => Int, { nullable: true }) - decrement?: number; + @Field(() => Int, {nullable:true}) + increment?: number; - @Field(() => Int, { nullable: true }) - multiply?: number; + @Field(() => Int, {nullable:true}) + decrement?: number; - @Field(() => Int, { nullable: true }) - divide?: number; + @Field(() => Int, {nullable:true}) + multiply?: number; + + @Field(() => Int, {nullable:true}) + divide?: number; } diff --git a/@generated/prisma/int-filter.input.ts b/@generated/prisma/int-filter.input.ts index 3ed50be5..31437c29 100644 --- a/@generated/prisma/int-filter.input.ts +++ b/@generated/prisma/int-filter.input.ts @@ -5,27 +5,28 @@ import { NestedIntFilter } from './nested-int-filter.input'; @InputType() export class IntFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntFilter, { nullable: true }) - not?: NestedIntFilter; + @Field(() => Int, {nullable:true}) + gte?: number; + + @Field(() => NestedIntFilter, {nullable:true}) + not?: NestedIntFilter; } diff --git a/@generated/prisma/int-nullable-filter.input.ts b/@generated/prisma/int-nullable-filter.input.ts index 07d6ecaa..cd2e7ab7 100644 --- a/@generated/prisma/int-nullable-filter.input.ts +++ b/@generated/prisma/int-nullable-filter.input.ts @@ -5,27 +5,28 @@ import { NestedIntNullableFilter } from './nested-int-nullable-filter.input'; @InputType() export class IntNullableFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - not?: NestedIntNullableFilter; + @Field(() => Int, {nullable:true}) + gte?: number; + + @Field(() => NestedIntNullableFilter, {nullable:true}) + not?: NestedIntNullableFilter; } diff --git a/@generated/prisma/int-nullable-with-aggregates-filter.input.ts b/@generated/prisma/int-nullable-with-aggregates-filter.input.ts index 577ec31c..8eb3fa98 100644 --- a/@generated/prisma/int-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/int-nullable-with-aggregates-filter.input.ts @@ -7,42 +7,43 @@ import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input' @InputType() export class IntNullableWithAggregatesFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntNullableWithAggregatesFilter, { nullable: true }) - not?: NestedIntNullableWithAggregatesFilter; + @Field(() => Int, {nullable:true}) + gte?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedIntNullableWithAggregatesFilter, {nullable:true}) + not?: NestedIntNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _sum?: NestedIntNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _min?: NestedIntNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _sum?: NestedIntNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _max?: NestedIntNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _min?: NestedIntNullableFilter; + + @Field(() => NestedIntNullableFilter, {nullable:true}) + _max?: NestedIntNullableFilter; } diff --git a/@generated/prisma/int-with-aggregates-filter.input.ts b/@generated/prisma/int-with-aggregates-filter.input.ts index 38eedc82..b872c127 100644 --- a/@generated/prisma/int-with-aggregates-filter.input.ts +++ b/@generated/prisma/int-with-aggregates-filter.input.ts @@ -7,42 +7,43 @@ import { NestedFloatFilter } from './nested-float-filter.input'; @InputType() export class IntWithAggregatesFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntWithAggregatesFilter, { nullable: true }) - not?: NestedIntWithAggregatesFilter; + @Field(() => Int, {nullable:true}) + gte?: number; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedIntWithAggregatesFilter, {nullable:true}) + not?: NestedIntWithAggregatesFilter; - @Field(() => NestedFloatFilter, { nullable: true }) - _avg?: NestedFloatFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _sum?: NestedIntFilter; + @Field(() => NestedFloatFilter, {nullable:true}) + _avg?: NestedFloatFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _min?: NestedIntFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _sum?: NestedIntFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _max?: NestedIntFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _min?: NestedIntFilter; + + @Field(() => NestedIntFilter, {nullable:true}) + _max?: NestedIntFilter; } diff --git a/@generated/prisma/json-null-value-filter.enum.ts b/@generated/prisma/json-null-value-filter.enum.ts index eed4c588..d0cff508 100644 --- a/@generated/prisma/json-null-value-filter.enum.ts +++ b/@generated/prisma/json-null-value-filter.enum.ts @@ -1,12 +1,10 @@ import { registerEnumType } from '@nestjs/graphql'; export enum JsonNullValueFilter { - DbNull = 'DbNull', - JsonNull = 'JsonNull', - AnyNull = 'AnyNull', + + + } -registerEnumType(JsonNullValueFilter, { - name: 'JsonNullValueFilter', - description: undefined, -}); + +registerEnumType(JsonNullValueFilter, { name: 'JsonNullValueFilter', description: undefined }) diff --git a/@generated/prisma/json-nullable-filter.input.ts b/@generated/prisma/json-nullable-filter.input.ts index 99ec6962..01679dd7 100644 --- a/@generated/prisma/json-nullable-filter.input.ts +++ b/@generated/prisma/json-nullable-filter.input.ts @@ -1,45 +1,50 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import { QueryMode } from './query-mode.enum'; @InputType() export class JsonNullableFilter { - @Field(() => GraphQLJSON, { nullable: true }) - equals?: any; - @Field(() => [String], { nullable: true }) - path?: Array; + @Field(() => GraphQLJSON, {nullable:true}) + equals?: any; - @Field(() => String, { nullable: true }) - string_contains?: string; + @Field(() => [String], {nullable:true}) + path?: Array; - @Field(() => String, { nullable: true }) - string_starts_with?: string; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; - @Field(() => String, { nullable: true }) - string_ends_with?: string; + @Field(() => String, {nullable:true}) + string_contains?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_starts_with?: any; + @Field(() => String, {nullable:true}) + string_starts_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_ends_with?: any; + @Field(() => String, {nullable:true}) + string_ends_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_contains?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_starts_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_ends_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_contains?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lt?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lte?: any; - @Field(() => GraphQLJSON, { nullable: true }) - not?: any; + @Field(() => GraphQLJSON, {nullable:true}) + gt?: any; + + @Field(() => GraphQLJSON, {nullable:true}) + gte?: any; + + @Field(() => GraphQLJSON, {nullable:true}) + not?: any; } diff --git a/@generated/prisma/json-nullable-with-aggregates-filter.input.ts b/@generated/prisma/json-nullable-with-aggregates-filter.input.ts index 7d5bf4c4..83bd918c 100644 --- a/@generated/prisma/json-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/json-nullable-with-aggregates-filter.input.ts @@ -1,56 +1,61 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import { QueryMode } from './query-mode.enum'; import { NestedIntNullableFilter } from './nested-int-nullable-filter.input'; import { NestedJsonNullableFilter } from './nested-json-nullable-filter.input'; @InputType() export class JsonNullableWithAggregatesFilter { - @Field(() => GraphQLJSON, { nullable: true }) - equals?: any; - @Field(() => [String], { nullable: true }) - path?: Array; + @Field(() => GraphQLJSON, {nullable:true}) + equals?: any; - @Field(() => String, { nullable: true }) - string_contains?: string; + @Field(() => [String], {nullable:true}) + path?: Array; - @Field(() => String, { nullable: true }) - string_starts_with?: string; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; - @Field(() => String, { nullable: true }) - string_ends_with?: string; + @Field(() => String, {nullable:true}) + string_contains?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_starts_with?: any; + @Field(() => String, {nullable:true}) + string_starts_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_ends_with?: any; + @Field(() => String, {nullable:true}) + string_ends_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_contains?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_starts_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_ends_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_contains?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lt?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lte?: any; - @Field(() => GraphQLJSON, { nullable: true }) - not?: any; + @Field(() => GraphQLJSON, {nullable:true}) + gt?: any; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => GraphQLJSON, {nullable:true}) + gte?: any; - @Field(() => NestedJsonNullableFilter, { nullable: true }) - _min?: NestedJsonNullableFilter; + @Field(() => GraphQLJSON, {nullable:true}) + not?: any; - @Field(() => NestedJsonNullableFilter, { nullable: true }) - _max?: NestedJsonNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; + + @Field(() => NestedJsonNullableFilter, {nullable:true}) + _min?: NestedJsonNullableFilter; + + @Field(() => NestedJsonNullableFilter, {nullable:true}) + _max?: NestedJsonNullableFilter; } diff --git a/@generated/prisma/nested-big-int-nullable-filter.input.ts b/@generated/prisma/nested-big-int-nullable-filter.input.ts index 471e7001..0b58dad3 100644 --- a/@generated/prisma/nested-big-int-nullable-filter.input.ts +++ b/@generated/prisma/nested-big-int-nullable-filter.input.ts @@ -3,27 +3,28 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedBigIntNullableFilter { - @Field(() => String, { nullable: true }) - equals?: bigint | number; - @Field(() => [String], { nullable: true }) - in?: Array | Array; + @Field(() => String, {nullable:true}) + equals?: bigint | number; - @Field(() => [String], { nullable: true }) - notIn?: Array | Array; + @Field(() => [String], {nullable:true}) + in?: Array | Array; - @Field(() => String, { nullable: true }) - lt?: bigint | number; + @Field(() => [String], {nullable:true}) + notIn?: Array | Array; - @Field(() => String, { nullable: true }) - lte?: bigint | number; + @Field(() => String, {nullable:true}) + lt?: bigint | number; - @Field(() => String, { nullable: true }) - gt?: bigint | number; + @Field(() => String, {nullable:true}) + lte?: bigint | number; - @Field(() => String, { nullable: true }) - gte?: bigint | number; + @Field(() => String, {nullable:true}) + gt?: bigint | number; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - not?: NestedBigIntNullableFilter; + @Field(() => String, {nullable:true}) + gte?: bigint | number; + + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + not?: NestedBigIntNullableFilter; } diff --git a/@generated/prisma/nested-big-int-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-big-int-nullable-with-aggregates-filter.input.ts index bcc4accf..ad4d44c8 100644 --- a/@generated/prisma/nested-big-int-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-big-int-nullable-with-aggregates-filter.input.ts @@ -6,42 +6,43 @@ import { NestedBigIntNullableFilter } from './nested-big-int-nullable-filter.inp @InputType() export class NestedBigIntNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: bigint | number; - @Field(() => [String], { nullable: true }) - in?: Array | Array; + @Field(() => String, {nullable:true}) + equals?: bigint | number; - @Field(() => [String], { nullable: true }) - notIn?: Array | Array; + @Field(() => [String], {nullable:true}) + in?: Array | Array; - @Field(() => String, { nullable: true }) - lt?: bigint | number; + @Field(() => [String], {nullable:true}) + notIn?: Array | Array; - @Field(() => String, { nullable: true }) - lte?: bigint | number; + @Field(() => String, {nullable:true}) + lt?: bigint | number; - @Field(() => String, { nullable: true }) - gt?: bigint | number; + @Field(() => String, {nullable:true}) + lte?: bigint | number; - @Field(() => String, { nullable: true }) - gte?: bigint | number; + @Field(() => String, {nullable:true}) + gt?: bigint | number; - @Field(() => NestedBigIntNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBigIntNullableWithAggregatesFilter; + @Field(() => String, {nullable:true}) + gte?: bigint | number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBigIntNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBigIntNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _sum?: NestedBigIntNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _min?: NestedBigIntNullableFilter; + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _sum?: NestedBigIntNullableFilter; - @Field(() => NestedBigIntNullableFilter, { nullable: true }) - _max?: NestedBigIntNullableFilter; + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _min?: NestedBigIntNullableFilter; + + @Field(() => NestedBigIntNullableFilter, {nullable:true}) + _max?: NestedBigIntNullableFilter; } diff --git a/@generated/prisma/nested-bool-nullable-filter.input.ts b/@generated/prisma/nested-bool-nullable-filter.input.ts index 0ab500d3..ff513a6e 100644 --- a/@generated/prisma/nested-bool-nullable-filter.input.ts +++ b/@generated/prisma/nested-bool-nullable-filter.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedBoolNullableFilter { - @Field(() => Boolean, { nullable: true }) - equals?: boolean; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - not?: NestedBoolNullableFilter; + @Field(() => Boolean, {nullable:true}) + equals?: boolean; + + @Field(() => NestedBoolNullableFilter, {nullable:true}) + not?: NestedBoolNullableFilter; } diff --git a/@generated/prisma/nested-bool-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-bool-nullable-with-aggregates-filter.input.ts index 4a5b57fd..78ab22f9 100644 --- a/@generated/prisma/nested-bool-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-bool-nullable-with-aggregates-filter.input.ts @@ -5,18 +5,19 @@ import { NestedBoolNullableFilter } from './nested-bool-nullable-filter.input'; @InputType() export class NestedBoolNullableWithAggregatesFilter { - @Field(() => Boolean, { nullable: true }) - equals?: boolean; - @Field(() => NestedBoolNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBoolNullableWithAggregatesFilter; + @Field(() => Boolean, {nullable:true}) + equals?: boolean; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBoolNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBoolNullableWithAggregatesFilter; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - _min?: NestedBoolNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBoolNullableFilter, { nullable: true }) - _max?: NestedBoolNullableFilter; + @Field(() => NestedBoolNullableFilter, {nullable:true}) + _min?: NestedBoolNullableFilter; + + @Field(() => NestedBoolNullableFilter, {nullable:true}) + _max?: NestedBoolNullableFilter; } diff --git a/@generated/prisma/nested-bytes-nullable-filter.input.ts b/@generated/prisma/nested-bytes-nullable-filter.input.ts index 8d39a6c2..d96dfcf9 100644 --- a/@generated/prisma/nested-bytes-nullable-filter.input.ts +++ b/@generated/prisma/nested-bytes-nullable-filter.input.ts @@ -3,15 +3,16 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedBytesNullableFilter { - @Field(() => String, { nullable: true }) - equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - not?: NestedBytesNullableFilter; + @Field(() => [String], {nullable:true}) + notIn?: Array; + + @Field(() => NestedBytesNullableFilter, {nullable:true}) + not?: NestedBytesNullableFilter; } diff --git a/@generated/prisma/nested-bytes-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-bytes-nullable-with-aggregates-filter.input.ts index 1c29372f..c277f424 100644 --- a/@generated/prisma/nested-bytes-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-bytes-nullable-with-aggregates-filter.input.ts @@ -5,24 +5,25 @@ import { NestedBytesNullableFilter } from './nested-bytes-nullable-filter.input' @InputType() export class NestedBytesNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: Uint8Array; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => NestedBytesNullableWithAggregatesFilter, { nullable: true }) - not?: NestedBytesNullableWithAggregatesFilter; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedBytesNullableWithAggregatesFilter, {nullable:true}) + not?: NestedBytesNullableWithAggregatesFilter; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - _min?: NestedBytesNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedBytesNullableFilter, { nullable: true }) - _max?: NestedBytesNullableFilter; + @Field(() => NestedBytesNullableFilter, {nullable:true}) + _min?: NestedBytesNullableFilter; + + @Field(() => NestedBytesNullableFilter, {nullable:true}) + _max?: NestedBytesNullableFilter; } diff --git a/@generated/prisma/nested-date-time-filter.input.ts b/@generated/prisma/nested-date-time-filter.input.ts index 5c230f18..36c9137f 100644 --- a/@generated/prisma/nested-date-time-filter.input.ts +++ b/@generated/prisma/nested-date-time-filter.input.ts @@ -3,27 +3,28 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedDateTimeFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeFilter, { nullable: true }) - not?: NestedDateTimeFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; + + @Field(() => NestedDateTimeFilter, {nullable:true}) + not?: NestedDateTimeFilter; } diff --git a/@generated/prisma/nested-date-time-nullable-filter.input.ts b/@generated/prisma/nested-date-time-nullable-filter.input.ts index a6977757..22c3c8ef 100644 --- a/@generated/prisma/nested-date-time-nullable-filter.input.ts +++ b/@generated/prisma/nested-date-time-nullable-filter.input.ts @@ -3,27 +3,28 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedDateTimeNullableFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - not?: NestedDateTimeNullableFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; + + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + not?: NestedDateTimeNullableFilter; } diff --git a/@generated/prisma/nested-date-time-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-date-time-nullable-with-aggregates-filter.input.ts index 2ab5a30a..1d3223f5 100644 --- a/@generated/prisma/nested-date-time-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-date-time-nullable-with-aggregates-filter.input.ts @@ -5,36 +5,37 @@ import { NestedDateTimeNullableFilter } from './nested-date-time-nullable-filter @InputType() export class NestedDateTimeNullableWithAggregatesFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeNullableWithAggregatesFilter, { nullable: true }) - not?: NestedDateTimeNullableWithAggregatesFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedDateTimeNullableWithAggregatesFilter, {nullable:true}) + not?: NestedDateTimeNullableWithAggregatesFilter; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - _min?: NestedDateTimeNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedDateTimeNullableFilter, { nullable: true }) - _max?: NestedDateTimeNullableFilter; + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + _min?: NestedDateTimeNullableFilter; + + @Field(() => NestedDateTimeNullableFilter, {nullable:true}) + _max?: NestedDateTimeNullableFilter; } diff --git a/@generated/prisma/nested-date-time-with-aggregates-filter.input.ts b/@generated/prisma/nested-date-time-with-aggregates-filter.input.ts index 5c884d81..69263fc3 100644 --- a/@generated/prisma/nested-date-time-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-date-time-with-aggregates-filter.input.ts @@ -5,36 +5,37 @@ import { NestedDateTimeFilter } from './nested-date-time-filter.input'; @InputType() export class NestedDateTimeWithAggregatesFilter { - @Field(() => Date, { nullable: true }) - equals?: Date | string; - @Field(() => [Date], { nullable: true }) - in?: Array | Array; + @Field(() => Date, {nullable:true}) + equals?: Date | string; - @Field(() => [Date], { nullable: true }) - notIn?: Array | Array; + @Field(() => [Date], {nullable:true}) + in?: Array | Array; - @Field(() => Date, { nullable: true }) - lt?: Date | string; + @Field(() => [Date], {nullable:true}) + notIn?: Array | Array; - @Field(() => Date, { nullable: true }) - lte?: Date | string; + @Field(() => Date, {nullable:true}) + lt?: Date | string; - @Field(() => Date, { nullable: true }) - gt?: Date | string; + @Field(() => Date, {nullable:true}) + lte?: Date | string; - @Field(() => Date, { nullable: true }) - gte?: Date | string; + @Field(() => Date, {nullable:true}) + gt?: Date | string; - @Field(() => NestedDateTimeWithAggregatesFilter, { nullable: true }) - not?: NestedDateTimeWithAggregatesFilter; + @Field(() => Date, {nullable:true}) + gte?: Date | string; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedDateTimeWithAggregatesFilter, {nullable:true}) + not?: NestedDateTimeWithAggregatesFilter; - @Field(() => NestedDateTimeFilter, { nullable: true }) - _min?: NestedDateTimeFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedDateTimeFilter, { nullable: true }) - _max?: NestedDateTimeFilter; + @Field(() => NestedDateTimeFilter, {nullable:true}) + _min?: NestedDateTimeFilter; + + @Field(() => NestedDateTimeFilter, {nullable:true}) + _max?: NestedDateTimeFilter; } diff --git a/@generated/prisma/nested-decimal-filter.input.ts b/@generated/prisma/nested-decimal-filter.input.ts index a3985721..a328582a 100644 --- a/@generated/prisma/nested-decimal-filter.input.ts +++ b/@generated/prisma/nested-decimal-filter.input.ts @@ -8,41 +8,42 @@ import { Type } from 'class-transformer'; @InputType() export class NestedDecimalFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; - - @Field(() => NestedDecimalFilter, { nullable: true }) - not?: NestedDecimalFilter; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; + + @Field(() => NestedDecimalFilter, {nullable:true}) + not?: NestedDecimalFilter; } diff --git a/@generated/prisma/nested-decimal-nullable-filter.input.ts b/@generated/prisma/nested-decimal-nullable-filter.input.ts index d0d99689..87996e5b 100644 --- a/@generated/prisma/nested-decimal-nullable-filter.input.ts +++ b/@generated/prisma/nested-decimal-nullable-filter.input.ts @@ -8,41 +8,42 @@ import { Type } from 'class-transformer'; @InputType() export class NestedDecimalNullableFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; - - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; - - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; - - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - not?: NestedDecimalNullableFilter; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; + + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; + + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + not?: NestedDecimalNullableFilter; } diff --git a/@generated/prisma/nested-decimal-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-decimal-nullable-with-aggregates-filter.input.ts index f6dab3bb..a4e24859 100644 --- a/@generated/prisma/nested-decimal-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-decimal-nullable-with-aggregates-filter.input.ts @@ -10,56 +10,57 @@ import { NestedDecimalNullableFilter } from './nested-decimal-nullable-filter.in @InputType() export class NestedDecimalNullableWithAggregatesFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; - @Field(() => NestedDecimalNullableWithAggregatesFilter, { nullable: true }) - not?: NestedDecimalNullableWithAggregatesFilter; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedDecimalNullableWithAggregatesFilter, {nullable:true}) + not?: NestedDecimalNullableWithAggregatesFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _avg?: NestedDecimalNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _sum?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _avg?: NestedDecimalNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _min?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _sum?: NestedDecimalNullableFilter; - @Field(() => NestedDecimalNullableFilter, { nullable: true }) - _max?: NestedDecimalNullableFilter; + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _min?: NestedDecimalNullableFilter; + + @Field(() => NestedDecimalNullableFilter, {nullable:true}) + _max?: NestedDecimalNullableFilter; } diff --git a/@generated/prisma/nested-decimal-with-aggregates-filter.input.ts b/@generated/prisma/nested-decimal-with-aggregates-filter.input.ts index ab40571b..8bf31085 100644 --- a/@generated/prisma/nested-decimal-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-decimal-with-aggregates-filter.input.ts @@ -10,56 +10,57 @@ import { NestedDecimalFilter } from './nested-decimal-filter.input'; @InputType() export class NestedDecimalWithAggregatesFilter { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - in?: Array; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + equals?: Decimal; - @Field(() => [GraphQLDecimal], { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - notIn?: Array; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + in?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lt?: Decimal; + @Field(() => [GraphQLDecimal], {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + notIn?: Array; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - lte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lt?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gt?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + lte?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - gte?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gt?: Decimal; - @Field(() => NestedDecimalWithAggregatesFilter, { nullable: true }) - not?: NestedDecimalWithAggregatesFilter; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + gte?: Decimal; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedDecimalWithAggregatesFilter, {nullable:true}) + not?: NestedDecimalWithAggregatesFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _avg?: NestedDecimalFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _sum?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _avg?: NestedDecimalFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _min?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _sum?: NestedDecimalFilter; - @Field(() => NestedDecimalFilter, { nullable: true }) - _max?: NestedDecimalFilter; + @Field(() => NestedDecimalFilter, {nullable:true}) + _min?: NestedDecimalFilter; + + @Field(() => NestedDecimalFilter, {nullable:true}) + _max?: NestedDecimalFilter; } diff --git a/@generated/prisma/nested-enum-role-nullable-filter.input.ts b/@generated/prisma/nested-enum-role-nullable-filter.input.ts index 7980d6ed..ad388286 100644 --- a/@generated/prisma/nested-enum-role-nullable-filter.input.ts +++ b/@generated/prisma/nested-enum-role-nullable-filter.input.ts @@ -4,15 +4,16 @@ import { Role } from './role.enum'; @InputType() export class NestedEnumRoleNullableFilter { - @Field(() => Role, { nullable: true }) - equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - in?: Array<`${Role}`>; + @Field(() => Role, {nullable:true}) + equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - notIn?: Array<`${Role}`>; + @Field(() => [Role], {nullable:true}) + in?: Array<`${Role}`>; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - not?: NestedEnumRoleNullableFilter; + @Field(() => [Role], {nullable:true}) + notIn?: Array<`${Role}`>; + + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + not?: NestedEnumRoleNullableFilter; } diff --git a/@generated/prisma/nested-enum-role-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-enum-role-nullable-with-aggregates-filter.input.ts index 604abf0d..3179c2be 100644 --- a/@generated/prisma/nested-enum-role-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-enum-role-nullable-with-aggregates-filter.input.ts @@ -6,24 +6,25 @@ import { NestedEnumRoleNullableFilter } from './nested-enum-role-nullable-filter @InputType() export class NestedEnumRoleNullableWithAggregatesFilter { - @Field(() => Role, { nullable: true }) - equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - in?: Array<`${Role}`>; + @Field(() => Role, {nullable:true}) + equals?: `${Role}`; - @Field(() => [Role], { nullable: true }) - notIn?: Array<`${Role}`>; + @Field(() => [Role], {nullable:true}) + in?: Array<`${Role}`>; - @Field(() => NestedEnumRoleNullableWithAggregatesFilter, { nullable: true }) - not?: NestedEnumRoleNullableWithAggregatesFilter; + @Field(() => [Role], {nullable:true}) + notIn?: Array<`${Role}`>; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedEnumRoleNullableWithAggregatesFilter, {nullable:true}) + not?: NestedEnumRoleNullableWithAggregatesFilter; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - _min?: NestedEnumRoleNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) - _max?: NestedEnumRoleNullableFilter; + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + _min?: NestedEnumRoleNullableFilter; + + @Field(() => NestedEnumRoleNullableFilter, {nullable:true}) + _max?: NestedEnumRoleNullableFilter; } diff --git a/@generated/prisma/nested-float-filter.input.ts b/@generated/prisma/nested-float-filter.input.ts index bfd27037..2b85a49d 100644 --- a/@generated/prisma/nested-float-filter.input.ts +++ b/@generated/prisma/nested-float-filter.input.ts @@ -4,27 +4,28 @@ import { Float } from '@nestjs/graphql'; @InputType() export class NestedFloatFilter { - @Field(() => Float, { nullable: true }) - equals?: number; - @Field(() => [Float], { nullable: true }) - in?: Array; + @Field(() => Float, {nullable:true}) + equals?: number; - @Field(() => [Float], { nullable: true }) - notIn?: Array; + @Field(() => [Float], {nullable:true}) + in?: Array; - @Field(() => Float, { nullable: true }) - lt?: number; + @Field(() => [Float], {nullable:true}) + notIn?: Array; - @Field(() => Float, { nullable: true }) - lte?: number; + @Field(() => Float, {nullable:true}) + lt?: number; - @Field(() => Float, { nullable: true }) - gt?: number; + @Field(() => Float, {nullable:true}) + lte?: number; - @Field(() => Float, { nullable: true }) - gte?: number; + @Field(() => Float, {nullable:true}) + gt?: number; - @Field(() => NestedFloatFilter, { nullable: true }) - not?: NestedFloatFilter; + @Field(() => Float, {nullable:true}) + gte?: number; + + @Field(() => NestedFloatFilter, {nullable:true}) + not?: NestedFloatFilter; } diff --git a/@generated/prisma/nested-float-nullable-filter.input.ts b/@generated/prisma/nested-float-nullable-filter.input.ts index 4855249d..0faf1abd 100644 --- a/@generated/prisma/nested-float-nullable-filter.input.ts +++ b/@generated/prisma/nested-float-nullable-filter.input.ts @@ -4,27 +4,28 @@ import { Float } from '@nestjs/graphql'; @InputType() export class NestedFloatNullableFilter { - @Field(() => Float, { nullable: true }) - equals?: number; - @Field(() => [Float], { nullable: true }) - in?: Array; + @Field(() => Float, {nullable:true}) + equals?: number; - @Field(() => [Float], { nullable: true }) - notIn?: Array; + @Field(() => [Float], {nullable:true}) + in?: Array; - @Field(() => Float, { nullable: true }) - lt?: number; + @Field(() => [Float], {nullable:true}) + notIn?: Array; - @Field(() => Float, { nullable: true }) - lte?: number; + @Field(() => Float, {nullable:true}) + lt?: number; - @Field(() => Float, { nullable: true }) - gt?: number; + @Field(() => Float, {nullable:true}) + lte?: number; - @Field(() => Float, { nullable: true }) - gte?: number; + @Field(() => Float, {nullable:true}) + gt?: number; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - not?: NestedFloatNullableFilter; + @Field(() => Float, {nullable:true}) + gte?: number; + + @Field(() => NestedFloatNullableFilter, {nullable:true}) + not?: NestedFloatNullableFilter; } diff --git a/@generated/prisma/nested-float-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-float-nullable-with-aggregates-filter.input.ts index 1477e4b6..72f9df3b 100644 --- a/@generated/prisma/nested-float-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-float-nullable-with-aggregates-filter.input.ts @@ -6,42 +6,43 @@ import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input' @InputType() export class NestedFloatNullableWithAggregatesFilter { - @Field(() => Float, { nullable: true }) - equals?: number; - @Field(() => [Float], { nullable: true }) - in?: Array; + @Field(() => Float, {nullable:true}) + equals?: number; - @Field(() => [Float], { nullable: true }) - notIn?: Array; + @Field(() => [Float], {nullable:true}) + in?: Array; - @Field(() => Float, { nullable: true }) - lt?: number; + @Field(() => [Float], {nullable:true}) + notIn?: Array; - @Field(() => Float, { nullable: true }) - lte?: number; + @Field(() => Float, {nullable:true}) + lt?: number; - @Field(() => Float, { nullable: true }) - gt?: number; + @Field(() => Float, {nullable:true}) + lte?: number; - @Field(() => Float, { nullable: true }) - gte?: number; + @Field(() => Float, {nullable:true}) + gt?: number; - @Field(() => NestedFloatNullableWithAggregatesFilter, { nullable: true }) - not?: NestedFloatNullableWithAggregatesFilter; + @Field(() => Float, {nullable:true}) + gte?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedFloatNullableWithAggregatesFilter, {nullable:true}) + not?: NestedFloatNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _sum?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _min?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _sum?: NestedFloatNullableFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _max?: NestedFloatNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _min?: NestedFloatNullableFilter; + + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _max?: NestedFloatNullableFilter; } diff --git a/@generated/prisma/nested-int-filter.input.ts b/@generated/prisma/nested-int-filter.input.ts index f5087245..57aafddf 100644 --- a/@generated/prisma/nested-int-filter.input.ts +++ b/@generated/prisma/nested-int-filter.input.ts @@ -4,27 +4,28 @@ import { Int } from '@nestjs/graphql'; @InputType() export class NestedIntFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntFilter, { nullable: true }) - not?: NestedIntFilter; + @Field(() => Int, {nullable:true}) + gte?: number; + + @Field(() => NestedIntFilter, {nullable:true}) + not?: NestedIntFilter; } diff --git a/@generated/prisma/nested-int-nullable-filter.input.ts b/@generated/prisma/nested-int-nullable-filter.input.ts index 6e443105..a16c881d 100644 --- a/@generated/prisma/nested-int-nullable-filter.input.ts +++ b/@generated/prisma/nested-int-nullable-filter.input.ts @@ -4,27 +4,28 @@ import { Int } from '@nestjs/graphql'; @InputType() export class NestedIntNullableFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - not?: NestedIntNullableFilter; + @Field(() => Int, {nullable:true}) + gte?: number; + + @Field(() => NestedIntNullableFilter, {nullable:true}) + not?: NestedIntNullableFilter; } diff --git a/@generated/prisma/nested-int-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-int-nullable-with-aggregates-filter.input.ts index 78e6297a..fc21aeac 100644 --- a/@generated/prisma/nested-int-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-int-nullable-with-aggregates-filter.input.ts @@ -6,42 +6,43 @@ import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input' @InputType() export class NestedIntNullableWithAggregatesFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntNullableWithAggregatesFilter, { nullable: true }) - not?: NestedIntNullableWithAggregatesFilter; + @Field(() => Int, {nullable:true}) + gte?: number; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedIntNullableWithAggregatesFilter, {nullable:true}) + not?: NestedIntNullableWithAggregatesFilter; - @Field(() => NestedFloatNullableFilter, { nullable: true }) - _avg?: NestedFloatNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _sum?: NestedIntNullableFilter; + @Field(() => NestedFloatNullableFilter, {nullable:true}) + _avg?: NestedFloatNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _min?: NestedIntNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _sum?: NestedIntNullableFilter; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _max?: NestedIntNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _min?: NestedIntNullableFilter; + + @Field(() => NestedIntNullableFilter, {nullable:true}) + _max?: NestedIntNullableFilter; } diff --git a/@generated/prisma/nested-int-with-aggregates-filter.input.ts b/@generated/prisma/nested-int-with-aggregates-filter.input.ts index 65dbc1ee..29bad369 100644 --- a/@generated/prisma/nested-int-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-int-with-aggregates-filter.input.ts @@ -6,42 +6,43 @@ import { NestedFloatFilter } from './nested-float-filter.input'; @InputType() export class NestedIntWithAggregatesFilter { - @Field(() => Int, { nullable: true }) - equals?: number; - @Field(() => [Int], { nullable: true }) - in?: Array; + @Field(() => Int, {nullable:true}) + equals?: number; - @Field(() => [Int], { nullable: true }) - notIn?: Array; + @Field(() => [Int], {nullable:true}) + in?: Array; - @Field(() => Int, { nullable: true }) - lt?: number; + @Field(() => [Int], {nullable:true}) + notIn?: Array; - @Field(() => Int, { nullable: true }) - lte?: number; + @Field(() => Int, {nullable:true}) + lt?: number; - @Field(() => Int, { nullable: true }) - gt?: number; + @Field(() => Int, {nullable:true}) + lte?: number; - @Field(() => Int, { nullable: true }) - gte?: number; + @Field(() => Int, {nullable:true}) + gt?: number; - @Field(() => NestedIntWithAggregatesFilter, { nullable: true }) - not?: NestedIntWithAggregatesFilter; + @Field(() => Int, {nullable:true}) + gte?: number; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedIntWithAggregatesFilter, {nullable:true}) + not?: NestedIntWithAggregatesFilter; - @Field(() => NestedFloatFilter, { nullable: true }) - _avg?: NestedFloatFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _sum?: NestedIntFilter; + @Field(() => NestedFloatFilter, {nullable:true}) + _avg?: NestedFloatFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _min?: NestedIntFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _sum?: NestedIntFilter; - @Field(() => NestedIntFilter, { nullable: true }) - _max?: NestedIntFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _min?: NestedIntFilter; + + @Field(() => NestedIntFilter, {nullable:true}) + _max?: NestedIntFilter; } diff --git a/@generated/prisma/nested-json-nullable-filter.input.ts b/@generated/prisma/nested-json-nullable-filter.input.ts index d10ad863..729cb3d0 100644 --- a/@generated/prisma/nested-json-nullable-filter.input.ts +++ b/@generated/prisma/nested-json-nullable-filter.input.ts @@ -1,45 +1,50 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import { QueryMode } from './query-mode.enum'; @InputType() export class NestedJsonNullableFilter { - @Field(() => GraphQLJSON, { nullable: true }) - equals?: any; - @Field(() => [String], { nullable: true }) - path?: Array; + @Field(() => GraphQLJSON, {nullable:true}) + equals?: any; - @Field(() => String, { nullable: true }) - string_contains?: string; + @Field(() => [String], {nullable:true}) + path?: Array; - @Field(() => String, { nullable: true }) - string_starts_with?: string; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; - @Field(() => String, { nullable: true }) - string_ends_with?: string; + @Field(() => String, {nullable:true}) + string_contains?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_starts_with?: any; + @Field(() => String, {nullable:true}) + string_starts_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_ends_with?: any; + @Field(() => String, {nullable:true}) + string_ends_with?: string; - @Field(() => GraphQLJSON, { nullable: true }) - array_contains?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_starts_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_ends_with?: any; - @Field(() => GraphQLJSON, { nullable: true }) - lte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + array_contains?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gt?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lt?: any; - @Field(() => GraphQLJSON, { nullable: true }) - gte?: any; + @Field(() => GraphQLJSON, {nullable:true}) + lte?: any; - @Field(() => GraphQLJSON, { nullable: true }) - not?: any; + @Field(() => GraphQLJSON, {nullable:true}) + gt?: any; + + @Field(() => GraphQLJSON, {nullable:true}) + gte?: any; + + @Field(() => GraphQLJSON, {nullable:true}) + not?: any; } diff --git a/@generated/prisma/nested-string-filter.input.ts b/@generated/prisma/nested-string-filter.input.ts index 3354bb01..5f87c1d2 100644 --- a/@generated/prisma/nested-string-filter.input.ts +++ b/@generated/prisma/nested-string-filter.input.ts @@ -3,39 +3,40 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedStringFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => NestedStringFilter, { nullable: true }) - not?: NestedStringFilter; + @Field(() => String, {nullable:true}) + search?: string; + + @Field(() => NestedStringFilter, {nullable:true}) + not?: NestedStringFilter; } diff --git a/@generated/prisma/nested-string-nullable-filter.input.ts b/@generated/prisma/nested-string-nullable-filter.input.ts index 7d0b1e59..6b533159 100644 --- a/@generated/prisma/nested-string-nullable-filter.input.ts +++ b/@generated/prisma/nested-string-nullable-filter.input.ts @@ -3,39 +3,40 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NestedStringNullableFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => NestedStringNullableFilter, { nullable: true }) - not?: NestedStringNullableFilter; + @Field(() => String, {nullable:true}) + search?: string; + + @Field(() => NestedStringNullableFilter, {nullable:true}) + not?: NestedStringNullableFilter; } diff --git a/@generated/prisma/nested-string-nullable-with-aggregates-filter.input.ts b/@generated/prisma/nested-string-nullable-with-aggregates-filter.input.ts index f4200aa6..08cd3453 100644 --- a/@generated/prisma/nested-string-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-string-nullable-with-aggregates-filter.input.ts @@ -5,48 +5,49 @@ import { NestedStringNullableFilter } from './nested-string-nullable-filter.inpu @InputType() export class NestedStringNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => NestedStringNullableWithAggregatesFilter, { nullable: true }) - not?: NestedStringNullableWithAggregatesFilter; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedStringNullableWithAggregatesFilter, {nullable:true}) + not?: NestedStringNullableWithAggregatesFilter; - @Field(() => NestedStringNullableFilter, { nullable: true }) - _min?: NestedStringNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedStringNullableFilter, { nullable: true }) - _max?: NestedStringNullableFilter; + @Field(() => NestedStringNullableFilter, {nullable:true}) + _min?: NestedStringNullableFilter; + + @Field(() => NestedStringNullableFilter, {nullable:true}) + _max?: NestedStringNullableFilter; } diff --git a/@generated/prisma/nested-string-with-aggregates-filter.input.ts b/@generated/prisma/nested-string-with-aggregates-filter.input.ts index 06d9a17f..b144351d 100644 --- a/@generated/prisma/nested-string-with-aggregates-filter.input.ts +++ b/@generated/prisma/nested-string-with-aggregates-filter.input.ts @@ -5,48 +5,49 @@ import { NestedStringFilter } from './nested-string-filter.input'; @InputType() export class NestedStringWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => NestedStringWithAggregatesFilter, { nullable: true }) - not?: NestedStringWithAggregatesFilter; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedStringWithAggregatesFilter, {nullable:true}) + not?: NestedStringWithAggregatesFilter; - @Field(() => NestedStringFilter, { nullable: true }) - _min?: NestedStringFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedStringFilter, { nullable: true }) - _max?: NestedStringFilter; + @Field(() => NestedStringFilter, {nullable:true}) + _min?: NestedStringFilter; + + @Field(() => NestedStringFilter, {nullable:true}) + _max?: NestedStringFilter; } diff --git a/@generated/prisma/nullable-big-int-field-update-operations.input.ts b/@generated/prisma/nullable-big-int-field-update-operations.input.ts index 2877a5b7..481dbafe 100644 --- a/@generated/prisma/nullable-big-int-field-update-operations.input.ts +++ b/@generated/prisma/nullable-big-int-field-update-operations.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NullableBigIntFieldUpdateOperationsInput { - @Field(() => String, { nullable: true }) - set?: bigint | number; - @Field(() => String, { nullable: true }) - increment?: bigint | number; + @Field(() => String, {nullable:true}) + set?: bigint | number; - @Field(() => String, { nullable: true }) - decrement?: bigint | number; + @Field(() => String, {nullable:true}) + increment?: bigint | number; - @Field(() => String, { nullable: true }) - multiply?: bigint | number; + @Field(() => String, {nullable:true}) + decrement?: bigint | number; - @Field(() => String, { nullable: true }) - divide?: bigint | number; + @Field(() => String, {nullable:true}) + multiply?: bigint | number; + + @Field(() => String, {nullable:true}) + divide?: bigint | number; } diff --git a/@generated/prisma/nullable-bool-field-update-operations.input.ts b/@generated/prisma/nullable-bool-field-update-operations.input.ts index f7323244..2768725d 100644 --- a/@generated/prisma/nullable-bool-field-update-operations.input.ts +++ b/@generated/prisma/nullable-bool-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NullableBoolFieldUpdateOperationsInput { - @Field(() => Boolean, { nullable: true }) - set?: boolean; + + @Field(() => Boolean, {nullable:true}) + set?: boolean; } diff --git a/@generated/prisma/nullable-bytes-field-update-operations.input.ts b/@generated/prisma/nullable-bytes-field-update-operations.input.ts index 9cb480d4..238be183 100644 --- a/@generated/prisma/nullable-bytes-field-update-operations.input.ts +++ b/@generated/prisma/nullable-bytes-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NullableBytesFieldUpdateOperationsInput { - @Field(() => String, { nullable: true }) - set?: Uint8Array; + + @Field(() => String, {nullable:true}) + set?: Uint8Array; } diff --git a/@generated/prisma/nullable-date-time-field-update-operations.input.ts b/@generated/prisma/nullable-date-time-field-update-operations.input.ts index 1ddc0b00..a3c47a9f 100644 --- a/@generated/prisma/nullable-date-time-field-update-operations.input.ts +++ b/@generated/prisma/nullable-date-time-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NullableDateTimeFieldUpdateOperationsInput { - @Field(() => Date, { nullable: true }) - set?: Date | string; + + @Field(() => Date, {nullable:true}) + set?: Date | string; } diff --git a/@generated/prisma/nullable-decimal-field-update-operations.input.ts b/@generated/prisma/nullable-decimal-field-update-operations.input.ts index 46227a9e..f3f22d29 100644 --- a/@generated/prisma/nullable-decimal-field-update-operations.input.ts +++ b/@generated/prisma/nullable-decimal-field-update-operations.input.ts @@ -8,28 +8,29 @@ import { Type } from 'class-transformer'; @InputType() export class NullableDecimalFieldUpdateOperationsInput { - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - set?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - increment?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + set?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - decrement?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + increment?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - multiply?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + decrement?: Decimal; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - divide?: Decimal; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + multiply?: Decimal; + + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + divide?: Decimal; } diff --git a/@generated/prisma/nullable-enum-role-field-update-operations.input.ts b/@generated/prisma/nullable-enum-role-field-update-operations.input.ts index 43999154..b3701c24 100644 --- a/@generated/prisma/nullable-enum-role-field-update-operations.input.ts +++ b/@generated/prisma/nullable-enum-role-field-update-operations.input.ts @@ -4,6 +4,7 @@ import { Role } from './role.enum'; @InputType() export class NullableEnumRoleFieldUpdateOperationsInput { - @Field(() => Role, { nullable: true }) - set?: `${Role}`; + + @Field(() => Role, {nullable:true}) + set?: `${Role}`; } diff --git a/@generated/prisma/nullable-float-field-update-operations.input.ts b/@generated/prisma/nullable-float-field-update-operations.input.ts index 038a2902..b22f5910 100644 --- a/@generated/prisma/nullable-float-field-update-operations.input.ts +++ b/@generated/prisma/nullable-float-field-update-operations.input.ts @@ -4,18 +4,19 @@ import { Float } from '@nestjs/graphql'; @InputType() export class NullableFloatFieldUpdateOperationsInput { - @Field(() => Float, { nullable: true }) - set?: number; - @Field(() => Float, { nullable: true }) - increment?: number; + @Field(() => Float, {nullable:true}) + set?: number; - @Field(() => Float, { nullable: true }) - decrement?: number; + @Field(() => Float, {nullable:true}) + increment?: number; - @Field(() => Float, { nullable: true }) - multiply?: number; + @Field(() => Float, {nullable:true}) + decrement?: number; - @Field(() => Float, { nullable: true }) - divide?: number; + @Field(() => Float, {nullable:true}) + multiply?: number; + + @Field(() => Float, {nullable:true}) + divide?: number; } diff --git a/@generated/prisma/nullable-int-field-update-operations.input.ts b/@generated/prisma/nullable-int-field-update-operations.input.ts index 81e6e472..6f8f3939 100644 --- a/@generated/prisma/nullable-int-field-update-operations.input.ts +++ b/@generated/prisma/nullable-int-field-update-operations.input.ts @@ -4,18 +4,19 @@ import { Int } from '@nestjs/graphql'; @InputType() export class NullableIntFieldUpdateOperationsInput { - @Field(() => Int, { nullable: true }) - set?: number; - @Field(() => Int, { nullable: true }) - increment?: number; + @Field(() => Int, {nullable:true}) + set?: number; - @Field(() => Int, { nullable: true }) - decrement?: number; + @Field(() => Int, {nullable:true}) + increment?: number; - @Field(() => Int, { nullable: true }) - multiply?: number; + @Field(() => Int, {nullable:true}) + decrement?: number; - @Field(() => Int, { nullable: true }) - divide?: number; + @Field(() => Int, {nullable:true}) + multiply?: number; + + @Field(() => Int, {nullable:true}) + divide?: number; } diff --git a/@generated/prisma/nullable-json-null-value-input.enum.ts b/@generated/prisma/nullable-json-null-value-input.enum.ts index 5e7fc475..05f9baad 100644 --- a/@generated/prisma/nullable-json-null-value-input.enum.ts +++ b/@generated/prisma/nullable-json-null-value-input.enum.ts @@ -1,11 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum NullableJsonNullValueInput { - DbNull = 'DbNull', - JsonNull = 'JsonNull', + + } -registerEnumType(NullableJsonNullValueInput, { - name: 'NullableJsonNullValueInput', - description: undefined, -}); + +registerEnumType(NullableJsonNullValueInput, { name: 'NullableJsonNullValueInput', description: undefined }) diff --git a/@generated/prisma/nullable-string-field-update-operations.input.ts b/@generated/prisma/nullable-string-field-update-operations.input.ts index 02bf7208..c956508b 100644 --- a/@generated/prisma/nullable-string-field-update-operations.input.ts +++ b/@generated/prisma/nullable-string-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class NullableStringFieldUpdateOperationsInput { - @Field(() => String, { nullable: true }) - set?: string; + + @Field(() => String, {nullable:true}) + set?: string; } diff --git a/@generated/prisma/nulls-order.enum.ts b/@generated/prisma/nulls-order.enum.ts index 05898905..ddc917f8 100644 --- a/@generated/prisma/nulls-order.enum.ts +++ b/@generated/prisma/nulls-order.enum.ts @@ -1,8 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum NullsOrder { - first = 'first', - last = 'last', + + } -registerEnumType(NullsOrder, { name: 'NullsOrder', description: undefined }); + +registerEnumType(NullsOrder, { name: 'NullsOrder', description: undefined }) diff --git a/@generated/prisma/query-mode.enum.ts b/@generated/prisma/query-mode.enum.ts index 07c08d7b..c0017ebb 100644 --- a/@generated/prisma/query-mode.enum.ts +++ b/@generated/prisma/query-mode.enum.ts @@ -1,8 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum QueryMode { - 'default' = 'default', - insensitive = 'insensitive', + + } -registerEnumType(QueryMode, { name: 'QueryMode', description: undefined }); + +registerEnumType(QueryMode, { name: 'QueryMode', description: undefined }) diff --git a/@generated/prisma/role.enum.ts b/@generated/prisma/role.enum.ts index 61292c71..9baf968f 100644 --- a/@generated/prisma/role.enum.ts +++ b/@generated/prisma/role.enum.ts @@ -1,7 +1,21 @@ import { registerEnumType } from '@nestjs/graphql'; export enum Role { - USER = 'USER', + + + + } -registerEnumType(Role, { name: 'Role', description: undefined }); + +registerEnumType(Role, { name: 'Role', description: "user access control", valuesMap: { + USER: { + description: "default user access control" + }, + NINGA: { + description: "have full access control" + }, + ADMIN: { + deprecationReason: "Use USER instead" + } +} }) diff --git a/@generated/prisma/sort-order.enum.ts b/@generated/prisma/sort-order.enum.ts index 6e8160a8..8fa01b40 100644 --- a/@generated/prisma/sort-order.enum.ts +++ b/@generated/prisma/sort-order.enum.ts @@ -1,8 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum SortOrder { - asc = 'asc', - desc = 'desc', + + } -registerEnumType(SortOrder, { name: 'SortOrder', description: undefined }); + +registerEnumType(SortOrder, { name: 'SortOrder', description: undefined }) diff --git a/@generated/prisma/sort-order.input.ts b/@generated/prisma/sort-order.input.ts index 3e48c95f..a478d832 100644 --- a/@generated/prisma/sort-order.input.ts +++ b/@generated/prisma/sort-order.input.ts @@ -5,9 +5,10 @@ import { NullsOrder } from './nulls-order.enum'; @InputType() export class SortOrderInput { - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; - @Field(() => NullsOrder, { nullable: true }) - nulls?: `${NullsOrder}`; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => NullsOrder, {nullable:true}) + nulls?: `${NullsOrder}`; } diff --git a/@generated/prisma/string-field-update-operations.input.ts b/@generated/prisma/string-field-update-operations.input.ts index 63612bb9..002169f7 100644 --- a/@generated/prisma/string-field-update-operations.input.ts +++ b/@generated/prisma/string-field-update-operations.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class StringFieldUpdateOperationsInput { - @Field(() => String, { nullable: true }) - set?: string; + + @Field(() => String, {nullable:true}) + set?: string; } diff --git a/@generated/prisma/string-filter.input.ts b/@generated/prisma/string-filter.input.ts index 0d712930..cacf7674 100644 --- a/@generated/prisma/string-filter.input.ts +++ b/@generated/prisma/string-filter.input.ts @@ -5,42 +5,43 @@ import { NestedStringFilter } from './nested-string-filter.input'; @InputType() export class StringFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => QueryMode, { nullable: true }) - mode?: `${QueryMode}`; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedStringFilter, { nullable: true }) - not?: NestedStringFilter; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; + + @Field(() => NestedStringFilter, {nullable:true}) + not?: NestedStringFilter; } diff --git a/@generated/prisma/string-nullable-filter.input.ts b/@generated/prisma/string-nullable-filter.input.ts index 54c51c2f..67933cb9 100644 --- a/@generated/prisma/string-nullable-filter.input.ts +++ b/@generated/prisma/string-nullable-filter.input.ts @@ -5,42 +5,43 @@ import { NestedStringNullableFilter } from './nested-string-nullable-filter.inpu @InputType() export class StringNullableFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => QueryMode, { nullable: true }) - mode?: `${QueryMode}`; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedStringNullableFilter, { nullable: true }) - not?: NestedStringNullableFilter; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; + + @Field(() => NestedStringNullableFilter, {nullable:true}) + not?: NestedStringNullableFilter; } diff --git a/@generated/prisma/string-nullable-list-filter.input.ts b/@generated/prisma/string-nullable-list-filter.input.ts index 3e483d4e..b87ee8c0 100644 --- a/@generated/prisma/string-nullable-list-filter.input.ts +++ b/@generated/prisma/string-nullable-list-filter.input.ts @@ -3,18 +3,19 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class StringNullableListFilter { - @Field(() => [String], { nullable: true }) - equals?: Array; - @Field(() => String, { nullable: true }) - has?: string; + @Field(() => [String], {nullable:true}) + equals?: Array; - @Field(() => [String], { nullable: true }) - hasEvery?: Array; + @Field(() => String, {nullable:true}) + has?: string; - @Field(() => [String], { nullable: true }) - hasSome?: Array; + @Field(() => [String], {nullable:true}) + hasEvery?: Array; - @Field(() => Boolean, { nullable: true }) - isEmpty?: boolean; + @Field(() => [String], {nullable:true}) + hasSome?: Array; + + @Field(() => Boolean, {nullable:true}) + isEmpty?: boolean; } diff --git a/@generated/prisma/string-nullable-with-aggregates-filter.input.ts b/@generated/prisma/string-nullable-with-aggregates-filter.input.ts index ee8530d4..fe8deaaf 100644 --- a/@generated/prisma/string-nullable-with-aggregates-filter.input.ts +++ b/@generated/prisma/string-nullable-with-aggregates-filter.input.ts @@ -7,51 +7,52 @@ import { NestedStringNullableFilter } from './nested-string-nullable-filter.inpu @InputType() export class StringNullableWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => QueryMode, { nullable: true }) - mode?: `${QueryMode}`; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedStringNullableWithAggregatesFilter, { nullable: true }) - not?: NestedStringNullableWithAggregatesFilter; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; - @Field(() => NestedIntNullableFilter, { nullable: true }) - _count?: NestedIntNullableFilter; + @Field(() => NestedStringNullableWithAggregatesFilter, {nullable:true}) + not?: NestedStringNullableWithAggregatesFilter; - @Field(() => NestedStringNullableFilter, { nullable: true }) - _min?: NestedStringNullableFilter; + @Field(() => NestedIntNullableFilter, {nullable:true}) + _count?: NestedIntNullableFilter; - @Field(() => NestedStringNullableFilter, { nullable: true }) - _max?: NestedStringNullableFilter; + @Field(() => NestedStringNullableFilter, {nullable:true}) + _min?: NestedStringNullableFilter; + + @Field(() => NestedStringNullableFilter, {nullable:true}) + _max?: NestedStringNullableFilter; } diff --git a/@generated/prisma/string-with-aggregates-filter.input.ts b/@generated/prisma/string-with-aggregates-filter.input.ts index 07944ce4..285f93b0 100644 --- a/@generated/prisma/string-with-aggregates-filter.input.ts +++ b/@generated/prisma/string-with-aggregates-filter.input.ts @@ -7,51 +7,52 @@ import { NestedStringFilter } from './nested-string-filter.input'; @InputType() export class StringWithAggregatesFilter { - @Field(() => String, { nullable: true }) - equals?: string; - @Field(() => [String], { nullable: true }) - in?: Array; + @Field(() => String, {nullable:true}) + equals?: string; - @Field(() => [String], { nullable: true }) - notIn?: Array; + @Field(() => [String], {nullable:true}) + in?: Array; - @Field(() => String, { nullable: true }) - lt?: string; + @Field(() => [String], {nullable:true}) + notIn?: Array; - @Field(() => String, { nullable: true }) - lte?: string; + @Field(() => String, {nullable:true}) + lt?: string; - @Field(() => String, { nullable: true }) - gt?: string; + @Field(() => String, {nullable:true}) + lte?: string; - @Field(() => String, { nullable: true }) - gte?: string; + @Field(() => String, {nullable:true}) + gt?: string; - @Field(() => String, { nullable: true }) - contains?: string; + @Field(() => String, {nullable:true}) + gte?: string; - @Field(() => String, { nullable: true }) - startsWith?: string; + @Field(() => String, {nullable:true}) + contains?: string; - @Field(() => String, { nullable: true }) - endsWith?: string; + @Field(() => String, {nullable:true}) + startsWith?: string; - @Field(() => String, { nullable: true }) - search?: string; + @Field(() => String, {nullable:true}) + endsWith?: string; - @Field(() => QueryMode, { nullable: true }) - mode?: `${QueryMode}`; + @Field(() => String, {nullable:true}) + search?: string; - @Field(() => NestedStringWithAggregatesFilter, { nullable: true }) - not?: NestedStringWithAggregatesFilter; + @Field(() => QueryMode, {nullable:true}) + mode?: `${QueryMode}`; - @Field(() => NestedIntFilter, { nullable: true }) - _count?: NestedIntFilter; + @Field(() => NestedStringWithAggregatesFilter, {nullable:true}) + not?: NestedStringWithAggregatesFilter; - @Field(() => NestedStringFilter, { nullable: true }) - _min?: NestedStringFilter; + @Field(() => NestedIntFilter, {nullable:true}) + _count?: NestedIntFilter; - @Field(() => NestedStringFilter, { nullable: true }) - _max?: NestedStringFilter; + @Field(() => NestedStringFilter, {nullable:true}) + _min?: NestedStringFilter; + + @Field(() => NestedStringFilter, {nullable:true}) + _max?: NestedStringFilter; } diff --git a/@generated/prisma/transaction-isolation-level.enum.ts b/@generated/prisma/transaction-isolation-level.enum.ts index 481d17be..a4f58f21 100644 --- a/@generated/prisma/transaction-isolation-level.enum.ts +++ b/@generated/prisma/transaction-isolation-level.enum.ts @@ -1,13 +1,11 @@ import { registerEnumType } from '@nestjs/graphql'; export enum TransactionIsolationLevel { - ReadUncommitted = 'ReadUncommitted', - ReadCommitted = 'ReadCommitted', - RepeatableRead = 'RepeatableRead', - Serializable = 'Serializable', + + + + } -registerEnumType(TransactionIsolationLevel, { - name: 'TransactionIsolationLevel', - description: undefined, -}); + +registerEnumType(TransactionIsolationLevel, { name: 'TransactionIsolationLevel', description: undefined }) diff --git a/@generated/profile/aggregate-profile.output.ts b/@generated/profile/aggregate-profile.output.ts index 02059bca..dbb4efc8 100644 --- a/@generated/profile/aggregate-profile.output.ts +++ b/@generated/profile/aggregate-profile.output.ts @@ -8,18 +8,19 @@ import { ProfileMaxAggregate } from './profile-max-aggregate.output'; @ObjectType() export class AggregateProfile { - @Field(() => ProfileCountAggregate, { nullable: true }) - _count?: ProfileCountAggregate; - @Field(() => ProfileAvgAggregate, { nullable: true }) - _avg?: ProfileAvgAggregate; + @Field(() => ProfileCountAggregate, {nullable:true}) + _count?: ProfileCountAggregate; - @Field(() => ProfileSumAggregate, { nullable: true }) - _sum?: ProfileSumAggregate; + @Field(() => ProfileAvgAggregate, {nullable:true}) + _avg?: ProfileAvgAggregate; - @Field(() => ProfileMinAggregate, { nullable: true }) - _min?: ProfileMinAggregate; + @Field(() => ProfileSumAggregate, {nullable:true}) + _sum?: ProfileSumAggregate; - @Field(() => ProfileMaxAggregate, { nullable: true }) - _max?: ProfileMaxAggregate; + @Field(() => ProfileMinAggregate, {nullable:true}) + _min?: ProfileMinAggregate; + + @Field(() => ProfileMaxAggregate, {nullable:true}) + _max?: ProfileMaxAggregate; } diff --git a/@generated/profile/create-many-profile.args.ts b/@generated/profile/create-many-profile.args.ts index a6433861..2d264e7a 100644 --- a/@generated/profile/create-many-profile.args.ts +++ b/@generated/profile/create-many-profile.args.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateManyProfileArgs { - @Field(() => [ProfileCreateManyInput], { nullable: false }) - @Type(() => ProfileCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [ProfileCreateManyInput], {nullable:false}) + @Type(() => ProfileCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/profile/create-one-profile.args.ts b/@generated/profile/create-one-profile.args.ts index e7c0c967..8b23121f 100644 --- a/@generated/profile/create-one-profile.args.ts +++ b/@generated/profile/create-one-profile.args.ts @@ -5,7 +5,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateOneProfileArgs { - @Field(() => ProfileCreateInput, { nullable: false }) - @Type(() => ProfileCreateInput) - data!: ProfileCreateInput; + + @Field(() => ProfileCreateInput, {nullable:false}) + @Type(() => ProfileCreateInput) + data!: ProfileCreateInput; } diff --git a/@generated/profile/delete-many-profile.args.ts b/@generated/profile/delete-many-profile.args.ts index e9de7e44..fa7196fa 100644 --- a/@generated/profile/delete-many-profile.args.ts +++ b/@generated/profile/delete-many-profile.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { ProfileWhereInput } from './profile-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyProfileArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; + + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/profile/delete-one-profile.args.ts b/@generated/profile/delete-one-profile.args.ts index df967411..f2f59de3 100644 --- a/@generated/profile/delete-one-profile.args.ts +++ b/@generated/profile/delete-one-profile.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneProfileArgs { - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/profile/find-first-profile-or-throw.args.ts b/@generated/profile/find-first-profile-or-throw.args.ts index 1f0f8895..1a4b3e43 100644 --- a/@generated/profile/find-first-profile-or-throw.args.ts +++ b/@generated/profile/find-first-profile-or-throw.args.ts @@ -10,22 +10,23 @@ import { ProfileScalarFieldEnum } from './profile-scalar-field.enum'; @ArgsType() export class FindFirstProfileOrThrowArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => [ProfileOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ProfileOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ProfileScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ProfileScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ProfileScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ProfileScalarFieldEnum}`>; } diff --git a/@generated/profile/find-first-profile.args.ts b/@generated/profile/find-first-profile.args.ts index 38633362..7749d2b9 100644 --- a/@generated/profile/find-first-profile.args.ts +++ b/@generated/profile/find-first-profile.args.ts @@ -10,22 +10,23 @@ import { ProfileScalarFieldEnum } from './profile-scalar-field.enum'; @ArgsType() export class FindFirstProfileArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => [ProfileOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ProfileOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ProfileScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ProfileScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ProfileScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ProfileScalarFieldEnum}`>; } diff --git a/@generated/profile/find-many-profile.args.ts b/@generated/profile/find-many-profile.args.ts index 2247693e..5d76fe3f 100644 --- a/@generated/profile/find-many-profile.args.ts +++ b/@generated/profile/find-many-profile.args.ts @@ -10,22 +10,23 @@ import { ProfileScalarFieldEnum } from './profile-scalar-field.enum'; @ArgsType() export class FindManyProfileArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => [ProfileOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ProfileOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [ProfileScalarFieldEnum], { nullable: true }) - distinct?: Array<`${ProfileScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [ProfileScalarFieldEnum], {nullable:true}) + distinct?: Array<`${ProfileScalarFieldEnum}`>; } diff --git a/@generated/profile/find-unique-profile-or-throw.args.ts b/@generated/profile/find-unique-profile-or-throw.args.ts index 110ddd2e..a9e3eb4d 100644 --- a/@generated/profile/find-unique-profile-or-throw.args.ts +++ b/@generated/profile/find-unique-profile-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueProfileOrThrowArgs { - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/profile/find-unique-profile.args.ts b/@generated/profile/find-unique-profile.args.ts index 40c0d034..b557113d 100644 --- a/@generated/profile/find-unique-profile.args.ts +++ b/@generated/profile/find-unique-profile.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueProfileArgs { - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/profile/profile-aggregate.args.ts b/@generated/profile/profile-aggregate.args.ts index 5d47bd94..8e3e340d 100644 --- a/@generated/profile/profile-aggregate.args.ts +++ b/@generated/profile/profile-aggregate.args.ts @@ -14,34 +14,35 @@ import { ProfileMaxAggregateInput } from './profile-max-aggregate.input'; @ArgsType() export class ProfileAggregateArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => [ProfileOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [ProfileOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => ProfileCountAggregateInput, { nullable: true }) - _count?: ProfileCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => ProfileAvgAggregateInput, { nullable: true }) - _avg?: ProfileAvgAggregateInput; + @Field(() => ProfileCountAggregateInput, {nullable:true}) + _count?: ProfileCountAggregateInput; - @Field(() => ProfileSumAggregateInput, { nullable: true }) - _sum?: ProfileSumAggregateInput; + @Field(() => ProfileAvgAggregateInput, {nullable:true}) + _avg?: ProfileAvgAggregateInput; - @Field(() => ProfileMinAggregateInput, { nullable: true }) - _min?: ProfileMinAggregateInput; + @Field(() => ProfileSumAggregateInput, {nullable:true}) + _sum?: ProfileSumAggregateInput; - @Field(() => ProfileMaxAggregateInput, { nullable: true }) - _max?: ProfileMaxAggregateInput; + @Field(() => ProfileMinAggregateInput, {nullable:true}) + _min?: ProfileMinAggregateInput; + + @Field(() => ProfileMaxAggregateInput, {nullable:true}) + _max?: ProfileMaxAggregateInput; } diff --git a/@generated/profile/profile-avg-aggregate.input.ts b/@generated/profile/profile-avg-aggregate.input.ts index 7092d800..b3a4a301 100644 --- a/@generated/profile/profile-avg-aggregate.input.ts +++ b/@generated/profile/profile-avg-aggregate.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileAvgAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; + + @Field(() => Boolean, {deprecationReason:'Use new name instead',nullable:true}) + id?: true; } diff --git a/@generated/profile/profile-avg-aggregate.output.ts b/@generated/profile/profile-avg-aggregate.output.ts index f8e48487..18205624 100644 --- a/@generated/profile/profile-avg-aggregate.output.ts +++ b/@generated/profile/profile-avg-aggregate.output.ts @@ -4,6 +4,7 @@ import { Float } from '@nestjs/graphql'; @ObjectType() export class ProfileAvgAggregate { - @Field(() => Float, { nullable: true }) - id?: number; + + @Field(() => Float, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; } diff --git a/@generated/profile/profile-avg-order-by-aggregate.input.ts b/@generated/profile/profile-avg-order-by-aggregate.input.ts index 7f16a7be..0e520e6b 100644 --- a/@generated/profile/profile-avg-order-by-aggregate.input.ts +++ b/@generated/profile/profile-avg-order-by-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileAvgOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; + + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; } diff --git a/@generated/profile/profile-count-aggregate.input.ts b/@generated/profile/profile-count-aggregate.input.ts index 29646d48..9ad61c58 100644 --- a/@generated/profile/profile-count-aggregate.input.ts +++ b/@generated/profile/profile-count-aggregate.input.ts @@ -3,15 +3,16 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - userId?: true; + @Field(() => Boolean, {deprecationReason:'Use new name instead',nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - dummy?: true; + @Field(() => Boolean, {nullable:true}) + userId?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + dummy?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/profile/profile-count-aggregate.output.ts b/@generated/profile/profile-count-aggregate.output.ts index 48786dc6..d74ff3a6 100644 --- a/@generated/profile/profile-count-aggregate.output.ts +++ b/@generated/profile/profile-count-aggregate.output.ts @@ -4,15 +4,16 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ProfileCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - userId!: number; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - dummy!: number; + @Field(() => Int, {nullable:false}) + userId!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + dummy!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/profile/profile-count-order-by-aggregate.input.ts b/@generated/profile/profile-count-order-by-aggregate.input.ts index 85eeefe2..6e995a0d 100644 --- a/@generated/profile/profile-count-order-by-aggregate.input.ts +++ b/@generated/profile/profile-count-order-by-aggregate.input.ts @@ -4,12 +4,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - userId?: `${SortOrder}`; + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - dummy?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + userId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + dummy?: `${SortOrder}`; } diff --git a/@generated/profile/profile-create-many.input.ts b/@generated/profile/profile-create-many.input.ts index 6efac1d5..06615dc5 100644 --- a/@generated/profile/profile-create-many.input.ts +++ b/@generated/profile/profile-create-many.input.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @InputType() export class ProfileCreateManyInput { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: false }) - userId!: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-create-nested-one-without-user.input.ts b/@generated/profile/profile-create-nested-one-without-user.input.ts index b2e00de2..d81bb8e4 100644 --- a/@generated/profile/profile-create-nested-one-without-user.input.ts +++ b/@generated/profile/profile-create-nested-one-without-user.input.ts @@ -8,15 +8,16 @@ import { ProfileWhereUniqueInput } from './profile-where-unique.input'; @InputType() export class ProfileCreateNestedOneWithoutUserInput { - @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateWithoutUserInput) - create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileCreateOrConnectWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateOrConnectWithoutUserInput) - connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + @Field(() => ProfileCreateWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateWithoutUserInput) + create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - @Type(() => ProfileWhereUniqueInput) - connect?: Prisma.AtLeast; + @Field(() => ProfileCreateOrConnectWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateOrConnectWithoutUserInput) + connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + @Type(() => ProfileWhereUniqueInput) + connect?: Prisma.AtLeast; } diff --git a/@generated/profile/profile-create-or-connect-without-user.input.ts b/@generated/profile/profile-create-or-connect-without-user.input.ts index da4952bf..d363ec02 100644 --- a/@generated/profile/profile-create-or-connect-without-user.input.ts +++ b/@generated/profile/profile-create-or-connect-without-user.input.ts @@ -7,11 +7,12 @@ import { ProfileCreateWithoutUserInput } from './profile-create-without-user.inp @InputType() export class ProfileCreateOrConnectWithoutUserInput { - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ProfileCreateWithoutUserInput, { nullable: false }) - @Type(() => ProfileCreateWithoutUserInput) - create!: ProfileCreateWithoutUserInput; + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => ProfileCreateWithoutUserInput, {nullable:false}) + @Type(() => ProfileCreateWithoutUserInput) + create!: ProfileCreateWithoutUserInput; } diff --git a/@generated/profile/profile-create-without-user.input.ts b/@generated/profile/profile-create-without-user.input.ts index dffa437c..856e5d82 100644 --- a/@generated/profile/profile-create-without-user.input.ts +++ b/@generated/profile/profile-create-without-user.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileCreateWithoutUserInput { - @Field(() => String, { nullable: true }) - dummy?: string; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-create.input.ts b/@generated/profile/profile-create.input.ts index 088f0e60..a8434515 100644 --- a/@generated/profile/profile-create.input.ts +++ b/@generated/profile/profile-create.input.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @InputType() export class ProfileCreateInput { - @Field(() => String, { nullable: true }) - dummy?: string; - @Field(() => UserCreateNestedOneWithoutProfileInput, { nullable: false }) - @Type(() => UserCreateNestedOneWithoutProfileInput) - user!: UserCreateNestedOneWithoutProfileInput; + @Field(() => String, {nullable:true}) + dummy?: string; + + @Field(() => UserCreateNestedOneWithoutProfileInput, {nullable:false}) + @Type(() => UserCreateNestedOneWithoutProfileInput) + user!: UserCreateNestedOneWithoutProfileInput; } diff --git a/@generated/profile/profile-group-by.args.ts b/@generated/profile/profile-group-by.args.ts index ebd48ccd..f97f7d6b 100644 --- a/@generated/profile/profile-group-by.args.ts +++ b/@generated/profile/profile-group-by.args.ts @@ -14,37 +14,38 @@ import { ProfileMaxAggregateInput } from './profile-max-aggregate.input'; @ArgsType() export class ProfileGroupByArgs { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => [ProfileOrderByWithAggregationInput], { nullable: true }) - orderBy?: Array; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; - @Field(() => [ProfileScalarFieldEnum], { nullable: false }) - by!: Array<`${ProfileScalarFieldEnum}`>; + @Field(() => [ProfileOrderByWithAggregationInput], {nullable:true}) + orderBy?: Array; - @Field(() => ProfileScalarWhereWithAggregatesInput, { nullable: true }) - having?: ProfileScalarWhereWithAggregatesInput; + @Field(() => [ProfileScalarFieldEnum], {nullable:false}) + by!: Array<`${ProfileScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => ProfileScalarWhereWithAggregatesInput, {nullable:true}) + having?: ProfileScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => ProfileCountAggregateInput, { nullable: true }) - _count?: ProfileCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => ProfileAvgAggregateInput, { nullable: true }) - _avg?: ProfileAvgAggregateInput; + @Field(() => ProfileCountAggregateInput, {nullable:true}) + _count?: ProfileCountAggregateInput; - @Field(() => ProfileSumAggregateInput, { nullable: true }) - _sum?: ProfileSumAggregateInput; + @Field(() => ProfileAvgAggregateInput, {nullable:true}) + _avg?: ProfileAvgAggregateInput; - @Field(() => ProfileMinAggregateInput, { nullable: true }) - _min?: ProfileMinAggregateInput; + @Field(() => ProfileSumAggregateInput, {nullable:true}) + _sum?: ProfileSumAggregateInput; - @Field(() => ProfileMaxAggregateInput, { nullable: true }) - _max?: ProfileMaxAggregateInput; + @Field(() => ProfileMinAggregateInput, {nullable:true}) + _min?: ProfileMinAggregateInput; + + @Field(() => ProfileMaxAggregateInput, {nullable:true}) + _max?: ProfileMaxAggregateInput; } diff --git a/@generated/profile/profile-group-by.output.ts b/@generated/profile/profile-group-by.output.ts index f2ee433a..ed86a2a7 100644 --- a/@generated/profile/profile-group-by.output.ts +++ b/@generated/profile/profile-group-by.output.ts @@ -9,27 +9,28 @@ import { ProfileMaxAggregate } from './profile-max-aggregate.output'; @ObjectType() export class ProfileGroupBy { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => String, { nullable: false }) - userId!: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:false}) + id!: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => String, {nullable:false}) + userId!: string; - @Field(() => ProfileCountAggregate, { nullable: true }) - _count?: ProfileCountAggregate; + @Field(() => String, {nullable:true}) + dummy?: string; - @Field(() => ProfileAvgAggregate, { nullable: true }) - _avg?: ProfileAvgAggregate; + @Field(() => ProfileCountAggregate, {nullable:true}) + _count?: ProfileCountAggregate; - @Field(() => ProfileSumAggregate, { nullable: true }) - _sum?: ProfileSumAggregate; + @Field(() => ProfileAvgAggregate, {nullable:true}) + _avg?: ProfileAvgAggregate; - @Field(() => ProfileMinAggregate, { nullable: true }) - _min?: ProfileMinAggregate; + @Field(() => ProfileSumAggregate, {nullable:true}) + _sum?: ProfileSumAggregate; - @Field(() => ProfileMaxAggregate, { nullable: true }) - _max?: ProfileMaxAggregate; + @Field(() => ProfileMinAggregate, {nullable:true}) + _min?: ProfileMinAggregate; + + @Field(() => ProfileMaxAggregate, {nullable:true}) + _max?: ProfileMaxAggregate; } diff --git a/@generated/profile/profile-max-aggregate.input.ts b/@generated/profile/profile-max-aggregate.input.ts index 06069f7a..59c93a57 100644 --- a/@generated/profile/profile-max-aggregate.input.ts +++ b/@generated/profile/profile-max-aggregate.input.ts @@ -3,12 +3,13 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - userId?: true; + @Field(() => Boolean, {deprecationReason:'Use new name instead',nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - dummy?: true; + @Field(() => Boolean, {nullable:true}) + userId?: true; + + @Field(() => Boolean, {nullable:true}) + dummy?: true; } diff --git a/@generated/profile/profile-max-aggregate.output.ts b/@generated/profile/profile-max-aggregate.output.ts index 53cca991..0b0442be 100644 --- a/@generated/profile/profile-max-aggregate.output.ts +++ b/@generated/profile/profile-max-aggregate.output.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ProfileMaxAggregate { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: true }) - userId?: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => String, {nullable:true}) + userId?: string; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-max-order-by-aggregate.input.ts b/@generated/profile/profile-max-order-by-aggregate.input.ts index b8a4ccf3..f72720e8 100644 --- a/@generated/profile/profile-max-order-by-aggregate.input.ts +++ b/@generated/profile/profile-max-order-by-aggregate.input.ts @@ -4,12 +4,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - userId?: `${SortOrder}`; + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - dummy?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + userId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + dummy?: `${SortOrder}`; } diff --git a/@generated/profile/profile-min-aggregate.input.ts b/@generated/profile/profile-min-aggregate.input.ts index 0cb69e0b..6890685c 100644 --- a/@generated/profile/profile-min-aggregate.input.ts +++ b/@generated/profile/profile-min-aggregate.input.ts @@ -3,12 +3,13 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - userId?: true; + @Field(() => Boolean, {deprecationReason:'Use new name instead',nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - dummy?: true; + @Field(() => Boolean, {nullable:true}) + userId?: true; + + @Field(() => Boolean, {nullable:true}) + dummy?: true; } diff --git a/@generated/profile/profile-min-aggregate.output.ts b/@generated/profile/profile-min-aggregate.output.ts index e7cb8307..4c8214f2 100644 --- a/@generated/profile/profile-min-aggregate.output.ts +++ b/@generated/profile/profile-min-aggregate.output.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ProfileMinAggregate { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: true }) - userId?: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => String, {nullable:true}) + userId?: string; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-min-order-by-aggregate.input.ts b/@generated/profile/profile-min-order-by-aggregate.input.ts index a13dded7..49712587 100644 --- a/@generated/profile/profile-min-order-by-aggregate.input.ts +++ b/@generated/profile/profile-min-order-by-aggregate.input.ts @@ -4,12 +4,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - userId?: `${SortOrder}`; + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - dummy?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + userId?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + dummy?: `${SortOrder}`; } diff --git a/@generated/profile/profile-nullable-scalar-relation-filter.input.ts b/@generated/profile/profile-nullable-scalar-relation-filter.input.ts index 1b6e582e..e5eacfbc 100644 --- a/@generated/profile/profile-nullable-scalar-relation-filter.input.ts +++ b/@generated/profile/profile-nullable-scalar-relation-filter.input.ts @@ -4,9 +4,10 @@ import { ProfileWhereInput } from './profile-where.input'; @InputType() export class ProfileNullableScalarRelationFilter { - @Field(() => ProfileWhereInput, { nullable: true }) - is?: ProfileWhereInput; - @Field(() => ProfileWhereInput, { nullable: true }) - isNot?: ProfileWhereInput; + @Field(() => ProfileWhereInput, {nullable:true}) + is?: ProfileWhereInput; + + @Field(() => ProfileWhereInput, {nullable:true}) + isNot?: ProfileWhereInput; } diff --git a/@generated/profile/profile-order-by-relevance-field.enum.ts b/@generated/profile/profile-order-by-relevance-field.enum.ts index 605c11f2..2d63b5f9 100644 --- a/@generated/profile/profile-order-by-relevance-field.enum.ts +++ b/@generated/profile/profile-order-by-relevance-field.enum.ts @@ -1,11 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum ProfileOrderByRelevanceFieldEnum { - userId = 'userId', - dummy = 'dummy', + + } -registerEnumType(ProfileOrderByRelevanceFieldEnum, { - name: 'ProfileOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(ProfileOrderByRelevanceFieldEnum, { name: 'ProfileOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/profile/profile-order-by-relevance.input.ts b/@generated/profile/profile-order-by-relevance.input.ts index a00e0163..51b169a7 100644 --- a/@generated/profile/profile-order-by-relevance.input.ts +++ b/@generated/profile/profile-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileOrderByRelevanceInput { - @Field(() => [ProfileOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${ProfileOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [ProfileOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${ProfileOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/profile/profile-order-by-with-aggregation.input.ts b/@generated/profile/profile-order-by-with-aggregation.input.ts index cf9d1750..28567e77 100644 --- a/@generated/profile/profile-order-by-with-aggregation.input.ts +++ b/@generated/profile/profile-order-by-with-aggregation.input.ts @@ -10,27 +10,28 @@ import { ProfileSumOrderByAggregateInput } from './profile-sum-order-by-aggregat @InputType() export class ProfileOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - userId?: `${SortOrder}`; + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - dummy?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + userId?: `${SortOrder}`; - @Field(() => ProfileCountOrderByAggregateInput, { nullable: true }) - _count?: ProfileCountOrderByAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + dummy?: SortOrderInput; - @Field(() => ProfileAvgOrderByAggregateInput, { nullable: true }) - _avg?: ProfileAvgOrderByAggregateInput; + @Field(() => ProfileCountOrderByAggregateInput, {nullable:true}) + _count?: ProfileCountOrderByAggregateInput; - @Field(() => ProfileMaxOrderByAggregateInput, { nullable: true }) - _max?: ProfileMaxOrderByAggregateInput; + @Field(() => ProfileAvgOrderByAggregateInput, {nullable:true}) + _avg?: ProfileAvgOrderByAggregateInput; - @Field(() => ProfileMinOrderByAggregateInput, { nullable: true }) - _min?: ProfileMinOrderByAggregateInput; + @Field(() => ProfileMaxOrderByAggregateInput, {nullable:true}) + _max?: ProfileMaxOrderByAggregateInput; - @Field(() => ProfileSumOrderByAggregateInput, { nullable: true }) - _sum?: ProfileSumOrderByAggregateInput; + @Field(() => ProfileMinOrderByAggregateInput, {nullable:true}) + _min?: ProfileMinOrderByAggregateInput; + + @Field(() => ProfileSumOrderByAggregateInput, {nullable:true}) + _sum?: ProfileSumOrderByAggregateInput; } diff --git a/@generated/profile/profile-order-by-with-relation.input.ts b/@generated/profile/profile-order-by-with-relation.input.ts index ffcb321c..719a1b22 100644 --- a/@generated/profile/profile-order-by-with-relation.input.ts +++ b/@generated/profile/profile-order-by-with-relation.input.ts @@ -8,19 +8,20 @@ import { ProfileOrderByRelevanceInput } from './profile-order-by-relevance.input @InputType() export class ProfileOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - userId?: `${SortOrder}`; + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - dummy?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + userId?: `${SortOrder}`; - @Field(() => UserOrderByWithRelationInput, { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - user?: UserOrderByWithRelationInput; + @Field(() => SortOrderInput, {nullable:true}) + dummy?: SortOrderInput; - @Field(() => ProfileOrderByRelevanceInput, { nullable: true }) - _relevance?: ProfileOrderByRelevanceInput; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + user?: UserOrderByWithRelationInput; + + @Field(() => ProfileOrderByRelevanceInput, {nullable:true}) + _relevance?: ProfileOrderByRelevanceInput; } diff --git a/@generated/profile/profile-scalar-field.enum.ts b/@generated/profile/profile-scalar-field.enum.ts index eb067c47..84cf1f8b 100644 --- a/@generated/profile/profile-scalar-field.enum.ts +++ b/@generated/profile/profile-scalar-field.enum.ts @@ -1,12 +1,10 @@ import { registerEnumType } from '@nestjs/graphql'; export enum ProfileScalarFieldEnum { - id = 'id', - userId = 'userId', - dummy = 'dummy', + + + } -registerEnumType(ProfileScalarFieldEnum, { - name: 'ProfileScalarFieldEnum', - description: undefined, -}); + +registerEnumType(ProfileScalarFieldEnum, { name: 'ProfileScalarFieldEnum', description: undefined }) diff --git a/@generated/profile/profile-scalar-where-with-aggregates.input.ts b/@generated/profile/profile-scalar-where-with-aggregates.input.ts index 44db1166..f59c2fc0 100644 --- a/@generated/profile/profile-scalar-where-with-aggregates.input.ts +++ b/@generated/profile/profile-scalar-where-with-aggregates.input.ts @@ -6,21 +6,22 @@ import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-wi @InputType() export class ProfileScalarWhereWithAggregatesInput { - @Field(() => [ProfileScalarWhereWithAggregatesInput], { nullable: true }) - AND?: Array; - @Field(() => [ProfileScalarWhereWithAggregatesInput], { nullable: true }) - OR?: Array; + @Field(() => [ProfileScalarWhereWithAggregatesInput], {nullable:true}) + AND?: Array; - @Field(() => [ProfileScalarWhereWithAggregatesInput], { nullable: true }) - NOT?: Array; + @Field(() => [ProfileScalarWhereWithAggregatesInput], {nullable:true}) + OR?: Array; - @Field(() => IntWithAggregatesFilter, { nullable: true }) - id?: IntWithAggregatesFilter; + @Field(() => [ProfileScalarWhereWithAggregatesInput], {nullable:true}) + NOT?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - userId?: StringWithAggregatesFilter; + @Field(() => IntWithAggregatesFilter, {deprecationReason:'Use new name instead',nullable:true}) + id?: IntWithAggregatesFilter; - @Field(() => StringNullableWithAggregatesFilter, { nullable: true }) - dummy?: StringNullableWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + userId?: StringWithAggregatesFilter; + + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) + dummy?: StringNullableWithAggregatesFilter; } diff --git a/@generated/profile/profile-sum-aggregate.input.ts b/@generated/profile/profile-sum-aggregate.input.ts index 57d97533..5b4f4f42 100644 --- a/@generated/profile/profile-sum-aggregate.input.ts +++ b/@generated/profile/profile-sum-aggregate.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class ProfileSumAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; + + @Field(() => Boolean, {deprecationReason:'Use new name instead',nullable:true}) + id?: true; } diff --git a/@generated/profile/profile-sum-aggregate.output.ts b/@generated/profile/profile-sum-aggregate.output.ts index 1ab708e1..25fe16bf 100644 --- a/@generated/profile/profile-sum-aggregate.output.ts +++ b/@generated/profile/profile-sum-aggregate.output.ts @@ -4,6 +4,7 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class ProfileSumAggregate { - @Field(() => Int, { nullable: true }) - id?: number; + + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; } diff --git a/@generated/profile/profile-sum-order-by-aggregate.input.ts b/@generated/profile/profile-sum-order-by-aggregate.input.ts index df1a492e..d0c06aa2 100644 --- a/@generated/profile/profile-sum-order-by-aggregate.input.ts +++ b/@generated/profile/profile-sum-order-by-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class ProfileSumOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; + + @Field(() => SortOrder, {deprecationReason:'Use new name instead',nullable:true}) + id?: `${SortOrder}`; } diff --git a/@generated/profile/profile-unchecked-create-nested-one-without-user.input.ts b/@generated/profile/profile-unchecked-create-nested-one-without-user.input.ts index 5dc46325..cc1aae79 100644 --- a/@generated/profile/profile-unchecked-create-nested-one-without-user.input.ts +++ b/@generated/profile/profile-unchecked-create-nested-one-without-user.input.ts @@ -9,13 +9,14 @@ import { ProfileWhereUniqueInput } from './profile-where-unique.input'; @InputType() export class ProfileUncheckedCreateNestedOneWithoutUserInput { - @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateWithoutUserInput) - create?: ProfileCreateWithoutUserInput; - @HideField() - connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + @Field(() => ProfileCreateWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateWithoutUserInput) + create?: ProfileCreateWithoutUserInput; - @HideField() - connect?: Prisma.AtLeast; + @HideField() + connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + + @HideField() + connect?: Prisma.AtLeast; } diff --git a/@generated/profile/profile-unchecked-create-without-user.input.ts b/@generated/profile/profile-unchecked-create-without-user.input.ts index 0452e6dd..3006081b 100644 --- a/@generated/profile/profile-unchecked-create-without-user.input.ts +++ b/@generated/profile/profile-unchecked-create-without-user.input.ts @@ -4,9 +4,10 @@ import { Int } from '@nestjs/graphql'; @InputType() export class ProfileUncheckedCreateWithoutUserInput { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-unchecked-create.input.ts b/@generated/profile/profile-unchecked-create.input.ts index 2555bb6f..8a8cf4c2 100644 --- a/@generated/profile/profile-unchecked-create.input.ts +++ b/@generated/profile/profile-unchecked-create.input.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @InputType() export class ProfileUncheckedCreateInput { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: false }) - userId!: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; - @Field(() => String, { nullable: true }) - dummy?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @Field(() => String, {nullable:true}) + dummy?: string; } diff --git a/@generated/profile/profile-unchecked-update-many.input.ts b/@generated/profile/profile-unchecked-update-many.input.ts index 218d46a7..ddb110ad 100644 --- a/@generated/profile/profile-unchecked-update-many.input.ts +++ b/@generated/profile/profile-unchecked-update-many.input.ts @@ -6,12 +6,13 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class ProfileUncheckedUpdateManyInput { - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - id?: IntFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - userId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {deprecationReason:'Use new name instead',nullable:true}) + id?: IntFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts b/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts index 4afd504a..9d48fe48 100644 --- a/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts +++ b/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts @@ -11,31 +11,32 @@ import { ProfileUpdateToOneWithWhereWithoutUserInput } from './profile-update-to @InputType() export class ProfileUncheckedUpdateOneWithoutUserNestedInput { - @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateWithoutUserInput) - create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileCreateOrConnectWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateOrConnectWithoutUserInput) - connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + @Field(() => ProfileCreateWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateWithoutUserInput) + create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileUpsertWithoutUserInput, { nullable: true }) - @Type(() => ProfileUpsertWithoutUserInput) - upsert?: ProfileUpsertWithoutUserInput; + @Field(() => ProfileCreateOrConnectWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateOrConnectWithoutUserInput) + connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - disconnect?: ProfileWhereInput; + @Field(() => ProfileUpsertWithoutUserInput, {nullable:true}) + @Type(() => ProfileUpsertWithoutUserInput) + upsert?: ProfileUpsertWithoutUserInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - delete?: ProfileWhereInput; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + disconnect?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - @Type(() => ProfileWhereUniqueInput) - connect?: Prisma.AtLeast; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + delete?: ProfileWhereInput; - @Field(() => ProfileUpdateToOneWithWhereWithoutUserInput, { nullable: true }) - @Type(() => ProfileUpdateToOneWithWhereWithoutUserInput) - update?: ProfileUpdateToOneWithWhereWithoutUserInput; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + @Type(() => ProfileWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => ProfileUpdateToOneWithWhereWithoutUserInput, {nullable:true}) + @Type(() => ProfileUpdateToOneWithWhereWithoutUserInput) + update?: ProfileUpdateToOneWithWhereWithoutUserInput; } diff --git a/@generated/profile/profile-unchecked-update-without-user.input.ts b/@generated/profile/profile-unchecked-update-without-user.input.ts index a30554ad..cb5e62b1 100644 --- a/@generated/profile/profile-unchecked-update-without-user.input.ts +++ b/@generated/profile/profile-unchecked-update-without-user.input.ts @@ -5,9 +5,10 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class ProfileUncheckedUpdateWithoutUserInput { - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - id?: IntFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {deprecationReason:'Use new name instead',nullable:true}) + id?: IntFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/profile/profile-unchecked-update.input.ts b/@generated/profile/profile-unchecked-update.input.ts index 5f3319d4..c27097c3 100644 --- a/@generated/profile/profile-unchecked-update.input.ts +++ b/@generated/profile/profile-unchecked-update.input.ts @@ -6,12 +6,13 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class ProfileUncheckedUpdateInput { - @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) - id?: IntFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - userId?: StringFieldUpdateOperationsInput; + @Field(() => IntFieldUpdateOperationsInput, {deprecationReason:'Use new name instead',nullable:true}) + id?: IntFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/profile/profile-update-many-mutation.input.ts b/@generated/profile/profile-update-many-mutation.input.ts index 9cfcb125..5b7c7ffc 100644 --- a/@generated/profile/profile-update-many-mutation.input.ts +++ b/@generated/profile/profile-update-many-mutation.input.ts @@ -4,6 +4,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class ProfileUpdateManyMutationInput { - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/profile/profile-update-one-without-user-nested.input.ts b/@generated/profile/profile-update-one-without-user-nested.input.ts index a6ca6bf9..d798b8b7 100644 --- a/@generated/profile/profile-update-one-without-user-nested.input.ts +++ b/@generated/profile/profile-update-one-without-user-nested.input.ts @@ -11,31 +11,32 @@ import { ProfileUpdateToOneWithWhereWithoutUserInput } from './profile-update-to @InputType() export class ProfileUpdateOneWithoutUserNestedInput { - @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateWithoutUserInput) - create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileCreateOrConnectWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateOrConnectWithoutUserInput) - connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; + @Field(() => ProfileCreateWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateWithoutUserInput) + create?: ProfileCreateWithoutUserInput; - @Field(() => ProfileUpsertWithoutUserInput, { nullable: true }) - @Type(() => ProfileUpsertWithoutUserInput) - upsert?: ProfileUpsertWithoutUserInput; + @Field(() => ProfileCreateOrConnectWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateOrConnectWithoutUserInput) + connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - disconnect?: ProfileWhereInput; + @Field(() => ProfileUpsertWithoutUserInput, {nullable:true}) + @Type(() => ProfileUpsertWithoutUserInput) + upsert?: ProfileUpsertWithoutUserInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - delete?: ProfileWhereInput; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + disconnect?: ProfileWhereInput; - @Field(() => ProfileWhereUniqueInput, { nullable: true }) - @Type(() => ProfileWhereUniqueInput) - connect?: Prisma.AtLeast; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + delete?: ProfileWhereInput; - @Field(() => ProfileUpdateToOneWithWhereWithoutUserInput, { nullable: true }) - @Type(() => ProfileUpdateToOneWithWhereWithoutUserInput) - update?: ProfileUpdateToOneWithWhereWithoutUserInput; + @Field(() => ProfileWhereUniqueInput, {nullable:true}) + @Type(() => ProfileWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => ProfileUpdateToOneWithWhereWithoutUserInput, {nullable:true}) + @Type(() => ProfileUpdateToOneWithWhereWithoutUserInput) + update?: ProfileUpdateToOneWithWhereWithoutUserInput; } diff --git a/@generated/profile/profile-update-to-one-with-where-without-user.input.ts b/@generated/profile/profile-update-to-one-with-where-without-user.input.ts index 51004b43..0db569d5 100644 --- a/@generated/profile/profile-update-to-one-with-where-without-user.input.ts +++ b/@generated/profile/profile-update-to-one-with-where-without-user.input.ts @@ -6,11 +6,12 @@ import { ProfileUpdateWithoutUserInput } from './profile-update-without-user.inp @InputType() export class ProfileUpdateToOneWithWhereWithoutUserInput { - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; - @Field(() => ProfileUpdateWithoutUserInput, { nullable: false }) - @Type(() => ProfileUpdateWithoutUserInput) - data!: ProfileUpdateWithoutUserInput; + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; + + @Field(() => ProfileUpdateWithoutUserInput, {nullable:false}) + @Type(() => ProfileUpdateWithoutUserInput) + data!: ProfileUpdateWithoutUserInput; } diff --git a/@generated/profile/profile-update-without-user.input.ts b/@generated/profile/profile-update-without-user.input.ts index 1449585e..8e04da04 100644 --- a/@generated/profile/profile-update-without-user.input.ts +++ b/@generated/profile/profile-update-without-user.input.ts @@ -4,6 +4,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str @InputType() export class ProfileUpdateWithoutUserInput { - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; } diff --git a/@generated/profile/profile-update.input.ts b/@generated/profile/profile-update.input.ts index 122d38c8..01c36ded 100644 --- a/@generated/profile/profile-update.input.ts +++ b/@generated/profile/profile-update.input.ts @@ -6,10 +6,11 @@ import { Type } from 'class-transformer'; @InputType() export class ProfileUpdateInput { - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - dummy?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutProfileNestedInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutProfileNestedInput) - user?: UserUpdateOneRequiredWithoutProfileNestedInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + dummy?: NullableStringFieldUpdateOperationsInput; + + @Field(() => UserUpdateOneRequiredWithoutProfileNestedInput, {nullable:true}) + @Type(() => UserUpdateOneRequiredWithoutProfileNestedInput) + user?: UserUpdateOneRequiredWithoutProfileNestedInput; } diff --git a/@generated/profile/profile-upsert-without-user.input.ts b/@generated/profile/profile-upsert-without-user.input.ts index 92e8e124..217f3e4c 100644 --- a/@generated/profile/profile-upsert-without-user.input.ts +++ b/@generated/profile/profile-upsert-without-user.input.ts @@ -7,15 +7,16 @@ import { ProfileWhereInput } from './profile-where.input'; @InputType() export class ProfileUpsertWithoutUserInput { - @Field(() => ProfileUpdateWithoutUserInput, { nullable: false }) - @Type(() => ProfileUpdateWithoutUserInput) - update!: ProfileUpdateWithoutUserInput; - @Field(() => ProfileCreateWithoutUserInput, { nullable: false }) - @Type(() => ProfileCreateWithoutUserInput) - create!: ProfileCreateWithoutUserInput; + @Field(() => ProfileUpdateWithoutUserInput, {nullable:false}) + @Type(() => ProfileUpdateWithoutUserInput) + update!: ProfileUpdateWithoutUserInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; + @Field(() => ProfileCreateWithoutUserInput, {nullable:false}) + @Type(() => ProfileCreateWithoutUserInput) + create!: ProfileCreateWithoutUserInput; + + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; } diff --git a/@generated/profile/profile-where-unique.input.ts b/@generated/profile/profile-where-unique.input.ts index 95308b25..0aa776e9 100644 --- a/@generated/profile/profile-where-unique.input.ts +++ b/@generated/profile/profile-where-unique.input.ts @@ -8,25 +8,26 @@ import { Type } from 'class-transformer'; @InputType() export class ProfileWhereUniqueInput { - @Field(() => Int, { nullable: true }) - id?: number; - @Field(() => String, { nullable: true }) - userId?: string; + @Field(() => Int, {deprecationReason:'Use new name instead',nullable:true}) + id?: number; - @Field(() => [ProfileWhereInput], { nullable: true }) - AND?: Array; + @Field(() => String, {nullable:true}) + userId?: string; - @Field(() => [ProfileWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [ProfileWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [ProfileWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [ProfileWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringNullableFilter, { nullable: true }) - dummy?: StringNullableFilter; + @Field(() => [ProfileWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => UserScalarRelationFilter, { nullable: true }) - @Type(() => UserScalarRelationFilter) - user?: UserScalarRelationFilter; + @Field(() => StringNullableFilter, {nullable:true}) + dummy?: StringNullableFilter; + + @Field(() => UserScalarRelationFilter, {nullable:true}) + @Type(() => UserScalarRelationFilter) + user?: UserScalarRelationFilter; } diff --git a/@generated/profile/profile-where.input.ts b/@generated/profile/profile-where.input.ts index c8a98a36..c87994de 100644 --- a/@generated/profile/profile-where.input.ts +++ b/@generated/profile/profile-where.input.ts @@ -8,25 +8,26 @@ import { Type } from 'class-transformer'; @InputType() export class ProfileWhereInput { - @Field(() => [ProfileWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [ProfileWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [ProfileWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [ProfileWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [ProfileWhereInput], {nullable:true}) + OR?: Array; - @Field(() => IntFilter, { nullable: true }) - id?: IntFilter; + @Field(() => [ProfileWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - userId?: StringFilter; + @Field(() => IntFilter, {deprecationReason:'Use new name instead',nullable:true}) + id?: IntFilter; - @Field(() => StringNullableFilter, { nullable: true }) - dummy?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + userId?: StringFilter; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - user?: UserWhereInput; + @Field(() => StringNullableFilter, {nullable:true}) + dummy?: StringNullableFilter; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + user?: UserWhereInput; } diff --git a/@generated/profile/profile.model.ts b/@generated/profile/profile.model.ts index 1e5b9d25..ec301771 100644 --- a/@generated/profile/profile.model.ts +++ b/@generated/profile/profile.model.ts @@ -5,15 +5,16 @@ import { User } from '../user/user.model'; @ObjectType() export class Profile { - @Field(() => ID, { nullable: false }) - id!: number; - @Field(() => String, { nullable: false }) - userId!: string; + @Field(() => ID, {deprecationReason:'Use new name instead',nullable:false}) + id!: number; - @Field(() => String, { nullable: true }) - dummy!: string | null; + @Field(() => String, {nullable:false}) + userId!: string; - @Field(() => User, { nullable: false }) - user?: User; + @Field(() => String, {nullable:true}) + dummy!: string | null; + + @Field(() => User, {nullable:false}) + user?: User; } diff --git a/@generated/profile/update-many-profile.args.ts b/@generated/profile/update-many-profile.args.ts index 3b64185f..cc1ec003 100644 --- a/@generated/profile/update-many-profile.args.ts +++ b/@generated/profile/update-many-profile.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { ProfileUpdateManyMutationInput } from './profile-update-many-mutation.input'; import { Type } from 'class-transformer'; import { ProfileWhereInput } from './profile-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyProfileArgs { - @Field(() => ProfileUpdateManyMutationInput, { nullable: false }) - @Type(() => ProfileUpdateManyMutationInput) - data!: ProfileUpdateManyMutationInput; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - where?: ProfileWhereInput; + @Field(() => ProfileUpdateManyMutationInput, {nullable:false}) + @Type(() => ProfileUpdateManyMutationInput) + data!: ProfileUpdateManyMutationInput; + + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + where?: ProfileWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/profile/update-one-profile.args.ts b/@generated/profile/update-one-profile.args.ts index d75d5f0d..45b3d16c 100644 --- a/@generated/profile/update-one-profile.args.ts +++ b/@generated/profile/update-one-profile.args.ts @@ -7,11 +7,12 @@ import { ProfileWhereUniqueInput } from './profile-where-unique.input'; @ArgsType() export class UpdateOneProfileArgs { - @Field(() => ProfileUpdateInput, { nullable: false }) - @Type(() => ProfileUpdateInput) - data!: ProfileUpdateInput; - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => ProfileUpdateInput, {nullable:false}) + @Type(() => ProfileUpdateInput) + data!: ProfileUpdateInput; + + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/profile/upsert-one-profile.args.ts b/@generated/profile/upsert-one-profile.args.ts index 8614bbee..df74e431 100644 --- a/@generated/profile/upsert-one-profile.args.ts +++ b/@generated/profile/upsert-one-profile.args.ts @@ -8,15 +8,16 @@ import { ProfileUpdateInput } from './profile-update.input'; @ArgsType() export class UpsertOneProfileArgs { - @Field(() => ProfileWhereUniqueInput, { nullable: false }) - @Type(() => ProfileWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => ProfileCreateInput, { nullable: false }) - @Type(() => ProfileCreateInput) - create!: ProfileCreateInput; + @Field(() => ProfileWhereUniqueInput, {nullable:false}) + @Type(() => ProfileWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => ProfileUpdateInput, { nullable: false }) - @Type(() => ProfileUpdateInput) - update!: ProfileUpdateInput; + @Field(() => ProfileCreateInput, {nullable:false}) + @Type(() => ProfileCreateInput) + create!: ProfileCreateInput; + + @Field(() => ProfileUpdateInput, {nullable:false}) + @Type(() => ProfileUpdateInput) + update!: ProfileUpdateInput; } diff --git a/@generated/tag/aggregate-tag.output.ts b/@generated/tag/aggregate-tag.output.ts index fd38ff81..0901d624 100644 --- a/@generated/tag/aggregate-tag.output.ts +++ b/@generated/tag/aggregate-tag.output.ts @@ -6,12 +6,13 @@ import { TagMaxAggregate } from './tag-max-aggregate.output'; @ObjectType() export class AggregateTag { - @Field(() => TagCountAggregate, { nullable: true }) - _count?: TagCountAggregate; - @Field(() => TagMinAggregate, { nullable: true }) - _min?: TagMinAggregate; + @Field(() => TagCountAggregate, {nullable:true}) + _count?: TagCountAggregate; - @Field(() => TagMaxAggregate, { nullable: true }) - _max?: TagMaxAggregate; + @Field(() => TagMinAggregate, {nullable:true}) + _min?: TagMinAggregate; + + @Field(() => TagMaxAggregate, {nullable:true}) + _max?: TagMaxAggregate; } diff --git a/@generated/tag/create-many-tag.args.ts b/@generated/tag/create-many-tag.args.ts index a2504683..b04a3c6d 100644 --- a/@generated/tag/create-many-tag.args.ts +++ b/@generated/tag/create-many-tag.args.ts @@ -5,10 +5,11 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateManyTagArgs { - @Field(() => [TagCreateManyInput], { nullable: false }) - @Type(() => TagCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [TagCreateManyInput], {nullable:false}) + @Type(() => TagCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/tag/create-one-tag.args.ts b/@generated/tag/create-one-tag.args.ts index afad1c48..ea178f1e 100644 --- a/@generated/tag/create-one-tag.args.ts +++ b/@generated/tag/create-one-tag.args.ts @@ -5,7 +5,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class CreateOneTagArgs { - @Field(() => TagCreateInput, { nullable: false }) - @Type(() => TagCreateInput) - data!: TagCreateInput; + + @Field(() => TagCreateInput, {nullable:false}) + @Type(() => TagCreateInput) + data!: TagCreateInput; } diff --git a/@generated/tag/delete-many-tag.args.ts b/@generated/tag/delete-many-tag.args.ts index 946041c4..9d91447a 100644 --- a/@generated/tag/delete-many-tag.args.ts +++ b/@generated/tag/delete-many-tag.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { TagWhereInput } from './tag-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyTagArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; + + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/tag/delete-one-tag.args.ts b/@generated/tag/delete-one-tag.args.ts index 7db795ff..f1488594 100644 --- a/@generated/tag/delete-one-tag.args.ts +++ b/@generated/tag/delete-one-tag.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneTagArgs { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/tag/find-first-tag-or-throw.args.ts b/@generated/tag/find-first-tag-or-throw.args.ts index f8a2feec..8be1566c 100644 --- a/@generated/tag/find-first-tag-or-throw.args.ts +++ b/@generated/tag/find-first-tag-or-throw.args.ts @@ -10,22 +10,23 @@ import { TagScalarFieldEnum } from './tag-scalar-field.enum'; @ArgsType() export class FindFirstTagOrThrowArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; - @Field(() => [TagOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; - @Field(() => TagWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [TagOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => TagWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [TagScalarFieldEnum], { nullable: true }) - distinct?: Array<`${TagScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [TagScalarFieldEnum], {nullable:true}) + distinct?: Array<`${TagScalarFieldEnum}`>; } diff --git a/@generated/tag/find-first-tag.args.ts b/@generated/tag/find-first-tag.args.ts index 5dd9c29e..427193e6 100644 --- a/@generated/tag/find-first-tag.args.ts +++ b/@generated/tag/find-first-tag.args.ts @@ -10,22 +10,23 @@ import { TagScalarFieldEnum } from './tag-scalar-field.enum'; @ArgsType() export class FindFirstTagArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; - @Field(() => [TagOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; - @Field(() => TagWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [TagOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => TagWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [TagScalarFieldEnum], { nullable: true }) - distinct?: Array<`${TagScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [TagScalarFieldEnum], {nullable:true}) + distinct?: Array<`${TagScalarFieldEnum}`>; } diff --git a/@generated/tag/find-many-tag.args.ts b/@generated/tag/find-many-tag.args.ts index 84791099..2c8064c2 100644 --- a/@generated/tag/find-many-tag.args.ts +++ b/@generated/tag/find-many-tag.args.ts @@ -10,22 +10,23 @@ import { TagScalarFieldEnum } from './tag-scalar-field.enum'; @ArgsType() export class FindManyTagArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; - @Field(() => [TagOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; - @Field(() => TagWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [TagOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => TagWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [TagScalarFieldEnum], { nullable: true }) - distinct?: Array<`${TagScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [TagScalarFieldEnum], {nullable:true}) + distinct?: Array<`${TagScalarFieldEnum}`>; } diff --git a/@generated/tag/find-unique-tag-or-throw.args.ts b/@generated/tag/find-unique-tag-or-throw.args.ts index 6c0b2c5a..47999287 100644 --- a/@generated/tag/find-unique-tag-or-throw.args.ts +++ b/@generated/tag/find-unique-tag-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueTagOrThrowArgs { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/tag/find-unique-tag.args.ts b/@generated/tag/find-unique-tag.args.ts index 9dd5c45c..1f66c2e9 100644 --- a/@generated/tag/find-unique-tag.args.ts +++ b/@generated/tag/find-unique-tag.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueTagArgs { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/tag/tag-aggregate.args.ts b/@generated/tag/tag-aggregate.args.ts index 03968e0e..56973c16 100644 --- a/@generated/tag/tag-aggregate.args.ts +++ b/@generated/tag/tag-aggregate.args.ts @@ -12,28 +12,29 @@ import { TagMaxAggregateInput } from './tag-max-aggregate.input'; @ArgsType() export class TagAggregateArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; - @Field(() => [TagOrderByWithRelationInput], { nullable: true }) - orderBy?: Array; + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; - @Field(() => TagWhereUniqueInput, { nullable: true }) - cursor?: Prisma.AtLeast; + @Field(() => [TagOrderByWithRelationInput], {nullable:true}) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => TagWhereUniqueInput, {nullable:true}) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => TagCountAggregateInput, { nullable: true }) - _count?: TagCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => TagMinAggregateInput, { nullable: true }) - _min?: TagMinAggregateInput; + @Field(() => TagCountAggregateInput, {nullable:true}) + _count?: TagCountAggregateInput; - @Field(() => TagMaxAggregateInput, { nullable: true }) - _max?: TagMaxAggregateInput; + @Field(() => TagMinAggregateInput, {nullable:true}) + _min?: TagMinAggregateInput; + + @Field(() => TagMaxAggregateInput, {nullable:true}) + _max?: TagMaxAggregateInput; } diff --git a/@generated/tag/tag-count-aggregate.input.ts b/@generated/tag/tag-count-aggregate.input.ts index fde9183d..9f84f8a9 100644 --- a/@generated/tag/tag-count-aggregate.input.ts +++ b/@generated/tag/tag-count-aggregate.input.ts @@ -3,12 +3,13 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + name?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/tag/tag-count-aggregate.output.ts b/@generated/tag/tag-count-aggregate.output.ts index fb5c7371..ea71e365 100644 --- a/@generated/tag/tag-count-aggregate.output.ts +++ b/@generated/tag/tag-count-aggregate.output.ts @@ -4,12 +4,13 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class TagCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - name!: number; + @Field(() => Int, {nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + name!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/tag/tag-count-order-by-aggregate.input.ts b/@generated/tag/tag-count-order-by-aggregate.input.ts index 5a95b27b..2c07280f 100644 --- a/@generated/tag/tag-count-order-by-aggregate.input.ts +++ b/@generated/tag/tag-count-order-by-aggregate.input.ts @@ -4,9 +4,10 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; } diff --git a/@generated/tag/tag-count.output.ts b/@generated/tag/tag-count.output.ts index ac89ff91..26bf367b 100644 --- a/@generated/tag/tag-count.output.ts +++ b/@generated/tag/tag-count.output.ts @@ -4,6 +4,7 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class TagCount { - @Field(() => Int, { nullable: false }) - articles?: number; + + @Field(() => Int, {nullable:false}) + articles?: number; } diff --git a/@generated/tag/tag-create-many.input.ts b/@generated/tag/tag-create-many.input.ts index a38f5fed..0a389add 100644 --- a/@generated/tag/tag-create-many.input.ts +++ b/@generated/tag/tag-create-many.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagCreateManyInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:true}) + id?: string; + + @Field(() => String, {nullable:false}) + name!: string; } diff --git a/@generated/tag/tag-create-nested-many-without-articles.input.ts b/@generated/tag/tag-create-nested-many-without-articles.input.ts index 36f0752f..50044d0b 100644 --- a/@generated/tag/tag-create-nested-many-without-articles.input.ts +++ b/@generated/tag/tag-create-nested-many-without-articles.input.ts @@ -8,15 +8,16 @@ import { TagWhereUniqueInput } from './tag-where-unique.input'; @InputType() export class TagCreateNestedManyWithoutArticlesInput { - @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateWithoutArticlesInput) - create?: Array; - @Field(() => [TagCreateOrConnectWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateOrConnectWithoutArticlesInput) - connectOrCreate?: Array; + @Field(() => [TagCreateWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateWithoutArticlesInput) + create?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - connect?: Array>; + @Field(() => [TagCreateOrConnectWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateOrConnectWithoutArticlesInput) + connectOrCreate?: Array; + + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/tag/tag-create-or-connect-without-articles.input.ts b/@generated/tag/tag-create-or-connect-without-articles.input.ts index 04ee0849..ecf6ebdf 100644 --- a/@generated/tag/tag-create-or-connect-without-articles.input.ts +++ b/@generated/tag/tag-create-or-connect-without-articles.input.ts @@ -7,11 +7,12 @@ import { TagCreateWithoutArticlesInput } from './tag-create-without-articles.inp @InputType() export class TagCreateOrConnectWithoutArticlesInput { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => TagCreateWithoutArticlesInput, { nullable: false }) - @Type(() => TagCreateWithoutArticlesInput) - create!: TagCreateWithoutArticlesInput; + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => TagCreateWithoutArticlesInput, {nullable:false}) + @Type(() => TagCreateWithoutArticlesInput) + create!: TagCreateWithoutArticlesInput; } diff --git a/@generated/tag/tag-create-without-articles.input.ts b/@generated/tag/tag-create-without-articles.input.ts index b8824ab9..411018c0 100644 --- a/@generated/tag/tag-create-without-articles.input.ts +++ b/@generated/tag/tag-create-without-articles.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagCreateWithoutArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:true}) + id?: string; + + @Field(() => String, {nullable:false}) + name!: string; } diff --git a/@generated/tag/tag-create.input.ts b/@generated/tag/tag-create.input.ts index 681cfc3b..b12e1307 100644 --- a/@generated/tag/tag-create.input.ts +++ b/@generated/tag/tag-create.input.ts @@ -5,13 +5,14 @@ import { Type } from 'class-transformer'; @InputType() export class TagCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => ArticleCreateNestedManyWithoutTagsInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutTagsInput) - articles?: ArticleCreateNestedManyWithoutTagsInput; + @Field(() => String, {nullable:false}) + name!: string; + + @Field(() => ArticleCreateNestedManyWithoutTagsInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutTagsInput) + articles?: ArticleCreateNestedManyWithoutTagsInput; } diff --git a/@generated/tag/tag-group-by.args.ts b/@generated/tag/tag-group-by.args.ts index ba265f23..04012d0e 100644 --- a/@generated/tag/tag-group-by.args.ts +++ b/@generated/tag/tag-group-by.args.ts @@ -12,31 +12,32 @@ import { TagMaxAggregateInput } from './tag-max-aggregate.input'; @ArgsType() export class TagGroupByArgs { - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; - @Field(() => [TagOrderByWithAggregationInput], { nullable: true }) - orderBy?: Array; + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; - @Field(() => [TagScalarFieldEnum], { nullable: false }) - by!: Array<`${TagScalarFieldEnum}`>; + @Field(() => [TagOrderByWithAggregationInput], {nullable:true}) + orderBy?: Array; - @Field(() => TagScalarWhereWithAggregatesInput, { nullable: true }) - having?: TagScalarWhereWithAggregatesInput; + @Field(() => [TagScalarFieldEnum], {nullable:false}) + by!: Array<`${TagScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => TagScalarWhereWithAggregatesInput, {nullable:true}) + having?: TagScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => TagCountAggregateInput, { nullable: true }) - _count?: TagCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => TagMinAggregateInput, { nullable: true }) - _min?: TagMinAggregateInput; + @Field(() => TagCountAggregateInput, {nullable:true}) + _count?: TagCountAggregateInput; - @Field(() => TagMaxAggregateInput, { nullable: true }) - _max?: TagMaxAggregateInput; + @Field(() => TagMinAggregateInput, {nullable:true}) + _min?: TagMinAggregateInput; + + @Field(() => TagMaxAggregateInput, {nullable:true}) + _max?: TagMaxAggregateInput; } diff --git a/@generated/tag/tag-group-by.output.ts b/@generated/tag/tag-group-by.output.ts index accaaad3..2d2bd121 100644 --- a/@generated/tag/tag-group-by.output.ts +++ b/@generated/tag/tag-group-by.output.ts @@ -6,18 +6,19 @@ import { TagMaxAggregate } from './tag-max-aggregate.output'; @ObjectType() export class TagGroupBy { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => TagCountAggregate, { nullable: true }) - _count?: TagCountAggregate; + @Field(() => String, {nullable:false}) + name!: string; - @Field(() => TagMinAggregate, { nullable: true }) - _min?: TagMinAggregate; + @Field(() => TagCountAggregate, {nullable:true}) + _count?: TagCountAggregate; - @Field(() => TagMaxAggregate, { nullable: true }) - _max?: TagMaxAggregate; + @Field(() => TagMinAggregate, {nullable:true}) + _min?: TagMinAggregate; + + @Field(() => TagMaxAggregate, {nullable:true}) + _max?: TagMaxAggregate; } diff --git a/@generated/tag/tag-list-relation-filter.input.ts b/@generated/tag/tag-list-relation-filter.input.ts index 1d19d5db..7e0c75f7 100644 --- a/@generated/tag/tag-list-relation-filter.input.ts +++ b/@generated/tag/tag-list-relation-filter.input.ts @@ -4,12 +4,13 @@ import { TagWhereInput } from './tag-where.input'; @InputType() export class TagListRelationFilter { - @Field(() => TagWhereInput, { nullable: true }) - every?: TagWhereInput; - @Field(() => TagWhereInput, { nullable: true }) - some?: TagWhereInput; + @Field(() => TagWhereInput, {nullable:true}) + every?: TagWhereInput; - @Field(() => TagWhereInput, { nullable: true }) - none?: TagWhereInput; + @Field(() => TagWhereInput, {nullable:true}) + some?: TagWhereInput; + + @Field(() => TagWhereInput, {nullable:true}) + none?: TagWhereInput; } diff --git a/@generated/tag/tag-max-aggregate.input.ts b/@generated/tag/tag-max-aggregate.input.ts index 556641ab..24e136eb 100644 --- a/@generated/tag/tag-max-aggregate.input.ts +++ b/@generated/tag/tag-max-aggregate.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; + + @Field(() => Boolean, {nullable:true}) + name?: true; } diff --git a/@generated/tag/tag-max-aggregate.output.ts b/@generated/tag/tag-max-aggregate.output.ts index e5d8e8ba..ceb6c998 100644 --- a/@generated/tag/tag-max-aggregate.output.ts +++ b/@generated/tag/tag-max-aggregate.output.ts @@ -3,9 +3,10 @@ import { ObjectType } from '@nestjs/graphql'; @ObjectType() export class TagMaxAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - name?: string; + @Field(() => String, {nullable:true}) + id?: string; + + @Field(() => String, {nullable:true}) + name?: string; } diff --git a/@generated/tag/tag-max-order-by-aggregate.input.ts b/@generated/tag/tag-max-order-by-aggregate.input.ts index 853094e5..b6136246 100644 --- a/@generated/tag/tag-max-order-by-aggregate.input.ts +++ b/@generated/tag/tag-max-order-by-aggregate.input.ts @@ -4,9 +4,10 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; } diff --git a/@generated/tag/tag-min-aggregate.input.ts b/@generated/tag/tag-min-aggregate.input.ts index 250b2d83..7feaf943 100644 --- a/@generated/tag/tag-min-aggregate.input.ts +++ b/@generated/tag/tag-min-aggregate.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; + + @Field(() => Boolean, {nullable:true}) + name?: true; } diff --git a/@generated/tag/tag-min-aggregate.output.ts b/@generated/tag/tag-min-aggregate.output.ts index af609aca..3b4f476d 100644 --- a/@generated/tag/tag-min-aggregate.output.ts +++ b/@generated/tag/tag-min-aggregate.output.ts @@ -3,9 +3,10 @@ import { ObjectType } from '@nestjs/graphql'; @ObjectType() export class TagMinAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - name?: string; + @Field(() => String, {nullable:true}) + id?: string; + + @Field(() => String, {nullable:true}) + name?: string; } diff --git a/@generated/tag/tag-min-order-by-aggregate.input.ts b/@generated/tag/tag-min-order-by-aggregate.input.ts index 934f811a..82413f8c 100644 --- a/@generated/tag/tag-min-order-by-aggregate.input.ts +++ b/@generated/tag/tag-min-order-by-aggregate.input.ts @@ -4,9 +4,10 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; } diff --git a/@generated/tag/tag-order-by-relation-aggregate.input.ts b/@generated/tag/tag-order-by-relation-aggregate.input.ts index 93168b61..0b185af7 100644 --- a/@generated/tag/tag-order-by-relation-aggregate.input.ts +++ b/@generated/tag/tag-order-by-relation-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagOrderByRelationAggregateInput { - @Field(() => SortOrder, { nullable: true }) - _count?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + _count?: `${SortOrder}`; } diff --git a/@generated/tag/tag-order-by-relevance-field.enum.ts b/@generated/tag/tag-order-by-relevance-field.enum.ts index 2c04c1fe..a35d88b3 100644 --- a/@generated/tag/tag-order-by-relevance-field.enum.ts +++ b/@generated/tag/tag-order-by-relevance-field.enum.ts @@ -1,11 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum TagOrderByRelevanceFieldEnum { - id = 'id', - name = 'name', + + } -registerEnumType(TagOrderByRelevanceFieldEnum, { - name: 'TagOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(TagOrderByRelevanceFieldEnum, { name: 'TagOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/tag/tag-order-by-relevance.input.ts b/@generated/tag/tag-order-by-relevance.input.ts index ffcb94f1..7399a1c8 100644 --- a/@generated/tag/tag-order-by-relevance.input.ts +++ b/@generated/tag/tag-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagOrderByRelevanceInput { - @Field(() => [TagOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${TagOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [TagOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${TagOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/tag/tag-order-by-with-aggregation.input.ts b/@generated/tag/tag-order-by-with-aggregation.input.ts index 262f8427..79cb86aa 100644 --- a/@generated/tag/tag-order-by-with-aggregation.input.ts +++ b/@generated/tag/tag-order-by-with-aggregation.input.ts @@ -7,18 +7,19 @@ import { TagMinOrderByAggregateInput } from './tag-min-order-by-aggregate.input' @InputType() export class TagOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => TagCountOrderByAggregateInput, { nullable: true }) - _count?: TagCountOrderByAggregateInput; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => TagMaxOrderByAggregateInput, { nullable: true }) - _max?: TagMaxOrderByAggregateInput; + @Field(() => TagCountOrderByAggregateInput, {nullable:true}) + _count?: TagCountOrderByAggregateInput; - @Field(() => TagMinOrderByAggregateInput, { nullable: true }) - _min?: TagMinOrderByAggregateInput; + @Field(() => TagMaxOrderByAggregateInput, {nullable:true}) + _max?: TagMaxOrderByAggregateInput; + + @Field(() => TagMinOrderByAggregateInput, {nullable:true}) + _min?: TagMinOrderByAggregateInput; } diff --git a/@generated/tag/tag-order-by-with-relation.input.ts b/@generated/tag/tag-order-by-with-relation.input.ts index 9b6372cb..219cf970 100644 --- a/@generated/tag/tag-order-by-with-relation.input.ts +++ b/@generated/tag/tag-order-by-with-relation.input.ts @@ -7,16 +7,17 @@ import { TagOrderByRelevanceInput } from './tag-order-by-relevance.input'; @InputType() export class TagOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => ArticleOrderByRelationAggregateInput, { nullable: true }) - @Type(() => ArticleOrderByRelationAggregateInput) - articles?: ArticleOrderByRelationAggregateInput; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => TagOrderByRelevanceInput, { nullable: true }) - _relevance?: TagOrderByRelevanceInput; + @Field(() => ArticleOrderByRelationAggregateInput, {nullable:true}) + @Type(() => ArticleOrderByRelationAggregateInput) + articles?: ArticleOrderByRelationAggregateInput; + + @Field(() => TagOrderByRelevanceInput, {nullable:true}) + _relevance?: TagOrderByRelevanceInput; } diff --git a/@generated/tag/tag-scalar-field.enum.ts b/@generated/tag/tag-scalar-field.enum.ts index e49ca050..db61e139 100644 --- a/@generated/tag/tag-scalar-field.enum.ts +++ b/@generated/tag/tag-scalar-field.enum.ts @@ -1,11 +1,9 @@ import { registerEnumType } from '@nestjs/graphql'; export enum TagScalarFieldEnum { - id = 'id', - name = 'name', + + } -registerEnumType(TagScalarFieldEnum, { - name: 'TagScalarFieldEnum', - description: undefined, -}); + +registerEnumType(TagScalarFieldEnum, { name: 'TagScalarFieldEnum', description: undefined }) diff --git a/@generated/tag/tag-scalar-where-with-aggregates.input.ts b/@generated/tag/tag-scalar-where-with-aggregates.input.ts index df8e2014..8e932148 100644 --- a/@generated/tag/tag-scalar-where-with-aggregates.input.ts +++ b/@generated/tag/tag-scalar-where-with-aggregates.input.ts @@ -4,18 +4,19 @@ import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-fil @InputType() export class TagScalarWhereWithAggregatesInput { - @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) - AND?: Array; - @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) - OR?: Array; + @Field(() => [TagScalarWhereWithAggregatesInput], {nullable:true}) + AND?: Array; - @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) - NOT?: Array; + @Field(() => [TagScalarWhereWithAggregatesInput], {nullable:true}) + OR?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - id?: StringWithAggregatesFilter; + @Field(() => [TagScalarWhereWithAggregatesInput], {nullable:true}) + NOT?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - name?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + id?: StringWithAggregatesFilter; + + @Field(() => StringWithAggregatesFilter, {nullable:true}) + name?: StringWithAggregatesFilter; } diff --git a/@generated/tag/tag-scalar-where.input.ts b/@generated/tag/tag-scalar-where.input.ts index eab7bb2a..d0bcc269 100644 --- a/@generated/tag/tag-scalar-where.input.ts +++ b/@generated/tag/tag-scalar-where.input.ts @@ -4,18 +4,19 @@ import { StringFilter } from '../prisma/string-filter.input'; @InputType() export class TagScalarWhereInput { - @Field(() => [TagScalarWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [TagScalarWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [TagScalarWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [TagScalarWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [TagScalarWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [TagScalarWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - name?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; + + @Field(() => StringFilter, {nullable:true}) + name?: StringFilter; } diff --git a/@generated/tag/tag-unchecked-create-nested-many-without-articles.input.ts b/@generated/tag/tag-unchecked-create-nested-many-without-articles.input.ts index b18d0b38..ceecfd20 100644 --- a/@generated/tag/tag-unchecked-create-nested-many-without-articles.input.ts +++ b/@generated/tag/tag-unchecked-create-nested-many-without-articles.input.ts @@ -8,15 +8,16 @@ import { TagWhereUniqueInput } from './tag-where-unique.input'; @InputType() export class TagUncheckedCreateNestedManyWithoutArticlesInput { - @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateWithoutArticlesInput) - create?: Array; - @Field(() => [TagCreateOrConnectWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateOrConnectWithoutArticlesInput) - connectOrCreate?: Array; + @Field(() => [TagCreateWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateWithoutArticlesInput) + create?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - connect?: Array>; + @Field(() => [TagCreateOrConnectWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateOrConnectWithoutArticlesInput) + connectOrCreate?: Array; + + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/tag/tag-unchecked-create-without-articles.input.ts b/@generated/tag/tag-unchecked-create-without-articles.input.ts index 31b42f36..2f4d0faf 100644 --- a/@generated/tag/tag-unchecked-create-without-articles.input.ts +++ b/@generated/tag/tag-unchecked-create-without-articles.input.ts @@ -3,9 +3,10 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class TagUncheckedCreateWithoutArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:true}) + id?: string; + + @Field(() => String, {nullable:false}) + name!: string; } diff --git a/@generated/tag/tag-unchecked-create.input.ts b/@generated/tag/tag-unchecked-create.input.ts index 1604edf7..fe5d428f 100644 --- a/@generated/tag/tag-unchecked-create.input.ts +++ b/@generated/tag/tag-unchecked-create.input.ts @@ -5,13 +5,14 @@ import { Type } from 'class-transformer'; @InputType() export class TagUncheckedCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => ArticleUncheckedCreateNestedManyWithoutTagsInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutTagsInput) - articles?: ArticleUncheckedCreateNestedManyWithoutTagsInput; + @Field(() => String, {nullable:false}) + name!: string; + + @Field(() => ArticleUncheckedCreateNestedManyWithoutTagsInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutTagsInput) + articles?: ArticleUncheckedCreateNestedManyWithoutTagsInput; } diff --git a/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts b/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts index b537ad62..0403c9fd 100644 --- a/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts +++ b/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts @@ -12,43 +12,44 @@ import { TagScalarWhereInput } from './tag-scalar-where.input'; @InputType() export class TagUncheckedUpdateManyWithoutArticlesNestedInput { - @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateWithoutArticlesInput) - create?: Array; - @Field(() => [TagCreateOrConnectWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateOrConnectWithoutArticlesInput) - connectOrCreate?: Array; + @Field(() => [TagCreateWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateWithoutArticlesInput) + create?: Array; - @Field(() => [TagUpsertWithWhereUniqueWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpsertWithWhereUniqueWithoutArticlesInput) - upsert?: Array; + @Field(() => [TagCreateOrConnectWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateOrConnectWithoutArticlesInput) + connectOrCreate?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - set?: Array>; + @Field(() => [TagUpsertWithWhereUniqueWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpsertWithWhereUniqueWithoutArticlesInput) + upsert?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - disconnect?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + set?: Array>; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - delete?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + disconnect?: Array>; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - connect?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + delete?: Array>; - @Field(() => [TagUpdateWithWhereUniqueWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpdateWithWhereUniqueWithoutArticlesInput) - update?: Array; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + connect?: Array>; - @Field(() => [TagUpdateManyWithWhereWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpdateManyWithWhereWithoutArticlesInput) - updateMany?: Array; + @Field(() => [TagUpdateWithWhereUniqueWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpdateWithWhereUniqueWithoutArticlesInput) + update?: Array; - @Field(() => [TagScalarWhereInput], { nullable: true }) - @Type(() => TagScalarWhereInput) - deleteMany?: Array; + @Field(() => [TagUpdateManyWithWhereWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpdateManyWithWhereWithoutArticlesInput) + updateMany?: Array; + + @Field(() => [TagScalarWhereInput], {nullable:true}) + @Type(() => TagScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/tag/tag-unchecked-update-many-without-articles.input.ts b/@generated/tag/tag-unchecked-update-many-without-articles.input.ts index fc60ad44..eb228873 100644 --- a/@generated/tag/tag-unchecked-update-many-without-articles.input.ts +++ b/@generated/tag/tag-unchecked-update-many-without-articles.input.ts @@ -4,9 +4,10 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update- @InputType() export class TagUncheckedUpdateManyWithoutArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; } diff --git a/@generated/tag/tag-unchecked-update-many.input.ts b/@generated/tag/tag-unchecked-update-many.input.ts index 92dcbb15..b385ab44 100644 --- a/@generated/tag/tag-unchecked-update-many.input.ts +++ b/@generated/tag/tag-unchecked-update-many.input.ts @@ -4,9 +4,10 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update- @InputType() export class TagUncheckedUpdateManyInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; } diff --git a/@generated/tag/tag-unchecked-update-without-articles.input.ts b/@generated/tag/tag-unchecked-update-without-articles.input.ts index ee1b6a8b..65b11a66 100644 --- a/@generated/tag/tag-unchecked-update-without-articles.input.ts +++ b/@generated/tag/tag-unchecked-update-without-articles.input.ts @@ -4,9 +4,10 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update- @InputType() export class TagUncheckedUpdateWithoutArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; } diff --git a/@generated/tag/tag-unchecked-update.input.ts b/@generated/tag/tag-unchecked-update.input.ts index 526359a4..6c676a22 100644 --- a/@generated/tag/tag-unchecked-update.input.ts +++ b/@generated/tag/tag-unchecked-update.input.ts @@ -6,13 +6,14 @@ import { Type } from 'class-transformer'; @InputType() export class TagUncheckedUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUncheckedUpdateManyWithoutTagsNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutTagsNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutTagsNestedInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; + + @Field(() => ArticleUncheckedUpdateManyWithoutTagsNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutTagsNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutTagsNestedInput; } diff --git a/@generated/tag/tag-update-many-mutation.input.ts b/@generated/tag/tag-update-many-mutation.input.ts index 57a402fa..231184b6 100644 --- a/@generated/tag/tag-update-many-mutation.input.ts +++ b/@generated/tag/tag-update-many-mutation.input.ts @@ -4,9 +4,10 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update- @InputType() export class TagUpdateManyMutationInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; } diff --git a/@generated/tag/tag-update-many-with-where-without-articles.input.ts b/@generated/tag/tag-update-many-with-where-without-articles.input.ts index 484a6923..0d7289e2 100644 --- a/@generated/tag/tag-update-many-with-where-without-articles.input.ts +++ b/@generated/tag/tag-update-many-with-where-without-articles.input.ts @@ -6,11 +6,12 @@ import { TagUpdateManyMutationInput } from './tag-update-many-mutation.input'; @InputType() export class TagUpdateManyWithWhereWithoutArticlesInput { - @Field(() => TagScalarWhereInput, { nullable: false }) - @Type(() => TagScalarWhereInput) - where!: TagScalarWhereInput; - @Field(() => TagUpdateManyMutationInput, { nullable: false }) - @Type(() => TagUpdateManyMutationInput) - data!: TagUpdateManyMutationInput; + @Field(() => TagScalarWhereInput, {nullable:false}) + @Type(() => TagScalarWhereInput) + where!: TagScalarWhereInput; + + @Field(() => TagUpdateManyMutationInput, {nullable:false}) + @Type(() => TagUpdateManyMutationInput) + data!: TagUpdateManyMutationInput; } diff --git a/@generated/tag/tag-update-many-without-articles-nested.input.ts b/@generated/tag/tag-update-many-without-articles-nested.input.ts index 4419283c..8fe99d04 100644 --- a/@generated/tag/tag-update-many-without-articles-nested.input.ts +++ b/@generated/tag/tag-update-many-without-articles-nested.input.ts @@ -12,43 +12,44 @@ import { TagScalarWhereInput } from './tag-scalar-where.input'; @InputType() export class TagUpdateManyWithoutArticlesNestedInput { - @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateWithoutArticlesInput) - create?: Array; - @Field(() => [TagCreateOrConnectWithoutArticlesInput], { nullable: true }) - @Type(() => TagCreateOrConnectWithoutArticlesInput) - connectOrCreate?: Array; + @Field(() => [TagCreateWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateWithoutArticlesInput) + create?: Array; - @Field(() => [TagUpsertWithWhereUniqueWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpsertWithWhereUniqueWithoutArticlesInput) - upsert?: Array; + @Field(() => [TagCreateOrConnectWithoutArticlesInput], {nullable:true}) + @Type(() => TagCreateOrConnectWithoutArticlesInput) + connectOrCreate?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - set?: Array>; + @Field(() => [TagUpsertWithWhereUniqueWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpsertWithWhereUniqueWithoutArticlesInput) + upsert?: Array; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - disconnect?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + set?: Array>; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - delete?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + disconnect?: Array>; - @Field(() => [TagWhereUniqueInput], { nullable: true }) - @Type(() => TagWhereUniqueInput) - connect?: Array>; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + delete?: Array>; - @Field(() => [TagUpdateWithWhereUniqueWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpdateWithWhereUniqueWithoutArticlesInput) - update?: Array; + @Field(() => [TagWhereUniqueInput], {nullable:true}) + @Type(() => TagWhereUniqueInput) + connect?: Array>; - @Field(() => [TagUpdateManyWithWhereWithoutArticlesInput], { nullable: true }) - @Type(() => TagUpdateManyWithWhereWithoutArticlesInput) - updateMany?: Array; + @Field(() => [TagUpdateWithWhereUniqueWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpdateWithWhereUniqueWithoutArticlesInput) + update?: Array; - @Field(() => [TagScalarWhereInput], { nullable: true }) - @Type(() => TagScalarWhereInput) - deleteMany?: Array; + @Field(() => [TagUpdateManyWithWhereWithoutArticlesInput], {nullable:true}) + @Type(() => TagUpdateManyWithWhereWithoutArticlesInput) + updateMany?: Array; + + @Field(() => [TagScalarWhereInput], {nullable:true}) + @Type(() => TagScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/tag/tag-update-with-where-unique-without-articles.input.ts b/@generated/tag/tag-update-with-where-unique-without-articles.input.ts index 95269789..72ab6bf4 100644 --- a/@generated/tag/tag-update-with-where-unique-without-articles.input.ts +++ b/@generated/tag/tag-update-with-where-unique-without-articles.input.ts @@ -7,11 +7,12 @@ import { TagUpdateWithoutArticlesInput } from './tag-update-without-articles.inp @InputType() export class TagUpdateWithWhereUniqueWithoutArticlesInput { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => TagUpdateWithoutArticlesInput, { nullable: false }) - @Type(() => TagUpdateWithoutArticlesInput) - data!: TagUpdateWithoutArticlesInput; + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => TagUpdateWithoutArticlesInput, {nullable:false}) + @Type(() => TagUpdateWithoutArticlesInput) + data!: TagUpdateWithoutArticlesInput; } diff --git a/@generated/tag/tag-update-without-articles.input.ts b/@generated/tag/tag-update-without-articles.input.ts index 66f81a2c..ce5e0eaa 100644 --- a/@generated/tag/tag-update-without-articles.input.ts +++ b/@generated/tag/tag-update-without-articles.input.ts @@ -4,9 +4,10 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update- @InputType() export class TagUpdateWithoutArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; } diff --git a/@generated/tag/tag-update.input.ts b/@generated/tag/tag-update.input.ts index f8d36472..189a342d 100644 --- a/@generated/tag/tag-update.input.ts +++ b/@generated/tag/tag-update.input.ts @@ -6,13 +6,14 @@ import { Type } from 'class-transformer'; @InputType() export class TagUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUpdateManyWithoutTagsNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutTagsNestedInput) - articles?: ArticleUpdateManyWithoutTagsNestedInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; + + @Field(() => ArticleUpdateManyWithoutTagsNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutTagsNestedInput) + articles?: ArticleUpdateManyWithoutTagsNestedInput; } diff --git a/@generated/tag/tag-upsert-with-where-unique-without-articles.input.ts b/@generated/tag/tag-upsert-with-where-unique-without-articles.input.ts index 2d3a4b78..2885b75a 100644 --- a/@generated/tag/tag-upsert-with-where-unique-without-articles.input.ts +++ b/@generated/tag/tag-upsert-with-where-unique-without-articles.input.ts @@ -8,15 +8,16 @@ import { TagCreateWithoutArticlesInput } from './tag-create-without-articles.inp @InputType() export class TagUpsertWithWhereUniqueWithoutArticlesInput { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => TagUpdateWithoutArticlesInput, { nullable: false }) - @Type(() => TagUpdateWithoutArticlesInput) - update!: TagUpdateWithoutArticlesInput; + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => TagCreateWithoutArticlesInput, { nullable: false }) - @Type(() => TagCreateWithoutArticlesInput) - create!: TagCreateWithoutArticlesInput; + @Field(() => TagUpdateWithoutArticlesInput, {nullable:false}) + @Type(() => TagUpdateWithoutArticlesInput) + update!: TagUpdateWithoutArticlesInput; + + @Field(() => TagCreateWithoutArticlesInput, {nullable:false}) + @Type(() => TagCreateWithoutArticlesInput) + create!: TagCreateWithoutArticlesInput; } diff --git a/@generated/tag/tag-where-unique.input.ts b/@generated/tag/tag-where-unique.input.ts index 7c091b37..0c3faea5 100644 --- a/@generated/tag/tag-where-unique.input.ts +++ b/@generated/tag/tag-where-unique.input.ts @@ -6,22 +6,23 @@ import { Type } from 'class-transformer'; @InputType() export class TagWhereUniqueInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - name?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => [TagWhereInput], { nullable: true }) - AND?: Array; + @Field(() => String, {nullable:true}) + name?: string; - @Field(() => [TagWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [TagWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [TagWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [TagWhereInput], {nullable:true}) + OR?: Array; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - articles?: ArticleListRelationFilter; + @Field(() => [TagWhereInput], {nullable:true}) + NOT?: Array; + + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + articles?: ArticleListRelationFilter; } diff --git a/@generated/tag/tag-where.input.ts b/@generated/tag/tag-where.input.ts index 81bb5c06..8b47aca8 100644 --- a/@generated/tag/tag-where.input.ts +++ b/@generated/tag/tag-where.input.ts @@ -6,22 +6,23 @@ import { Type } from 'class-transformer'; @InputType() export class TagWhereInput { - @Field(() => [TagWhereInput], { nullable: true }) - AND?: Array; - @Field(() => [TagWhereInput], { nullable: true }) - OR?: Array; + @Field(() => [TagWhereInput], {nullable:true}) + AND?: Array; - @Field(() => [TagWhereInput], { nullable: true }) - NOT?: Array; + @Field(() => [TagWhereInput], {nullable:true}) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [TagWhereInput], {nullable:true}) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - name?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - articles?: ArticleListRelationFilter; + @Field(() => StringFilter, {nullable:true}) + name?: StringFilter; + + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + articles?: ArticleListRelationFilter; } diff --git a/@generated/tag/tag.model.ts b/@generated/tag/tag.model.ts index 04baf382..774c8e47 100644 --- a/@generated/tag/tag.model.ts +++ b/@generated/tag/tag.model.ts @@ -6,15 +6,16 @@ import { TagCount } from './tag-count.output'; @ObjectType() export class Tag { - @Field(() => ID, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => ID, {nullable:false}) + id!: string; - @Field(() => [Article], { nullable: true }) - articles?: Array
; + @Field(() => String, {nullable:false}) + name!: string; - @Field(() => TagCount, { nullable: false }) - _count?: TagCount; + @Field(() => [Article], {nullable:true}) + articles?: Array
; + + @Field(() => TagCount, {nullable:false}) + _count?: TagCount; } diff --git a/@generated/tag/update-many-tag.args.ts b/@generated/tag/update-many-tag.args.ts index 0bfef0a0..afa582c1 100644 --- a/@generated/tag/update-many-tag.args.ts +++ b/@generated/tag/update-many-tag.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { TagUpdateManyMutationInput } from './tag-update-many-mutation.input'; import { Type } from 'class-transformer'; import { TagWhereInput } from './tag-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyTagArgs { - @Field(() => TagUpdateManyMutationInput, { nullable: false }) - @Type(() => TagUpdateManyMutationInput) - data!: TagUpdateManyMutationInput; - @Field(() => TagWhereInput, { nullable: true }) - @Type(() => TagWhereInput) - where?: TagWhereInput; + @Field(() => TagUpdateManyMutationInput, {nullable:false}) + @Type(() => TagUpdateManyMutationInput) + data!: TagUpdateManyMutationInput; + + @Field(() => TagWhereInput, {nullable:true}) + @Type(() => TagWhereInput) + where?: TagWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/tag/update-one-tag.args.ts b/@generated/tag/update-one-tag.args.ts index 0ccba4cc..727c5d9a 100644 --- a/@generated/tag/update-one-tag.args.ts +++ b/@generated/tag/update-one-tag.args.ts @@ -7,11 +7,12 @@ import { TagWhereUniqueInput } from './tag-where-unique.input'; @ArgsType() export class UpdateOneTagArgs { - @Field(() => TagUpdateInput, { nullable: false }) - @Type(() => TagUpdateInput) - data!: TagUpdateInput; - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => TagUpdateInput, {nullable:false}) + @Type(() => TagUpdateInput) + data!: TagUpdateInput; + + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/tag/upsert-one-tag.args.ts b/@generated/tag/upsert-one-tag.args.ts index 5f126b69..2eed48aa 100644 --- a/@generated/tag/upsert-one-tag.args.ts +++ b/@generated/tag/upsert-one-tag.args.ts @@ -8,15 +8,16 @@ import { TagUpdateInput } from './tag-update.input'; @ArgsType() export class UpsertOneTagArgs { - @Field(() => TagWhereUniqueInput, { nullable: false }) - @Type(() => TagWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => TagCreateInput, { nullable: false }) - @Type(() => TagCreateInput) - create!: TagCreateInput; + @Field(() => TagWhereUniqueInput, {nullable:false}) + @Type(() => TagWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => TagUpdateInput, { nullable: false }) - @Type(() => TagUpdateInput) - update!: TagUpdateInput; + @Field(() => TagCreateInput, {nullable:false}) + @Type(() => TagCreateInput) + create!: TagCreateInput; + + @Field(() => TagUpdateInput, {nullable:false}) + @Type(() => TagUpdateInput) + update!: TagUpdateInput; } diff --git a/@generated/user/aggregate-user.output.ts b/@generated/user/aggregate-user.output.ts index e4980e71..4dd46934 100644 --- a/@generated/user/aggregate-user.output.ts +++ b/@generated/user/aggregate-user.output.ts @@ -8,18 +8,19 @@ import { UserMaxAggregate } from './user-max-aggregate.output'; @ObjectType() export class AggregateUser { - @Field(() => UserCountAggregate, { nullable: true }) - _count?: UserCountAggregate; - @Field(() => UserAvgAggregate, { nullable: true }) - _avg?: UserAvgAggregate; + @Field(() => UserCountAggregate, {nullable:true}) + _count?: UserCountAggregate; - @Field(() => UserSumAggregate, { nullable: true }) - _sum?: UserSumAggregate; + @Field(() => UserAvgAggregate, {nullable:true}) + _avg?: UserAvgAggregate; - @Field(() => UserMinAggregate, { nullable: true }) - _min?: UserMinAggregate; + @Field(() => UserSumAggregate, {nullable:true}) + _sum?: UserSumAggregate; - @Field(() => UserMaxAggregate, { nullable: true }) - _max?: UserMaxAggregate; + @Field(() => UserMinAggregate, {nullable:true}) + _min?: UserMinAggregate; + + @Field(() => UserMaxAggregate, {nullable:true}) + _max?: UserMaxAggregate; } diff --git a/@generated/user/create-many-user.args.ts b/@generated/user/create-many-user.args.ts index b013d6bf..c08bf8ae 100644 --- a/@generated/user/create-many-user.args.ts +++ b/@generated/user/create-many-user.args.ts @@ -6,12 +6,13 @@ import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyUserArgs { - @Field(() => [UserCreateManyInput], { nullable: false }) - @Type(() => UserCreateManyInput) - @ValidateNested() - @Type(() => UserCreateManyInput) - data!: Array; - @Field(() => Boolean, { nullable: true }) - skipDuplicates?: boolean; + @Field(() => [UserCreateManyInput], {nullable:false}) + @Type(() => UserCreateManyInput) + @ValidateNested() + @Type(() => UserCreateManyInput) + data!: Array; + + @Field(() => Boolean, {nullable:true}) + skipDuplicates?: boolean; } diff --git a/@generated/user/create-one-user.args.ts b/@generated/user/create-one-user.args.ts index 2b4df64c..f8d4609b 100644 --- a/@generated/user/create-one-user.args.ts +++ b/@generated/user/create-one-user.args.ts @@ -6,9 +6,10 @@ import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneUserArgs { - @Field(() => UserCreateInput, { nullable: false }) - @Type(() => UserCreateInput) - @ValidateNested() - @Type(() => UserCreateInput) - data!: UserCreateInput; + + @Field(() => UserCreateInput, {nullable:false}) + @Type(() => UserCreateInput) + @ValidateNested() + @Type(() => UserCreateInput) + data!: UserCreateInput; } diff --git a/@generated/user/delete-many-user.args.ts b/@generated/user/delete-many-user.args.ts index 1413038b..6e2eec0e 100644 --- a/@generated/user/delete-many-user.args.ts +++ b/@generated/user/delete-many-user.args.ts @@ -2,10 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserWhereInput } from './user-where.input'; import { Type } from 'class-transformer'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class DeleteManyUserArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/user/delete-one-user.args.ts b/@generated/user/delete-one-user.args.ts index 314d5c78..e2be53a8 100644 --- a/@generated/user/delete-one-user.args.ts +++ b/@generated/user/delete-one-user.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class DeleteOneUserArgs { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/user/find-first-user-or-throw.args.ts b/@generated/user/find-first-user-or-throw.args.ts index 3cf587c8..f9472402 100644 --- a/@generated/user/find-first-user-or-throw.args.ts +++ b/@generated/user/find-first-user-or-throw.args.ts @@ -10,24 +10,25 @@ import { UserScalarFieldEnum } from './user-scalar-field.enum'; @ArgsType() export class FindFirstUserOrThrowArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => [UserOrderByWithRelationInput], { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - orderBy?: Array; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [UserOrderByWithRelationInput], {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [UserScalarFieldEnum], { nullable: true }) - distinct?: Array<`${UserScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [UserScalarFieldEnum], {nullable:true}) + distinct?: Array<`${UserScalarFieldEnum}`>; } diff --git a/@generated/user/find-first-user.args.ts b/@generated/user/find-first-user.args.ts index ca056fec..7761ff1a 100644 --- a/@generated/user/find-first-user.args.ts +++ b/@generated/user/find-first-user.args.ts @@ -10,24 +10,25 @@ import { UserScalarFieldEnum } from './user-scalar-field.enum'; @ArgsType() export class FindFirstUserArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => [UserOrderByWithRelationInput], { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - orderBy?: Array; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [UserOrderByWithRelationInput], {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [UserScalarFieldEnum], { nullable: true }) - distinct?: Array<`${UserScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [UserScalarFieldEnum], {nullable:true}) + distinct?: Array<`${UserScalarFieldEnum}`>; } diff --git a/@generated/user/find-many-user.args.ts b/@generated/user/find-many-user.args.ts index b88295f1..8ed55740 100644 --- a/@generated/user/find-many-user.args.ts +++ b/@generated/user/find-many-user.args.ts @@ -10,24 +10,25 @@ import { UserScalarFieldEnum } from './user-scalar-field.enum'; @ArgsType() export class FindManyUserArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => [UserOrderByWithRelationInput], { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - orderBy?: Array; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [UserOrderByWithRelationInput], {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => [UserScalarFieldEnum], { nullable: true }) - distinct?: Array<`${UserScalarFieldEnum}`>; + @Field(() => Int, {nullable:true}) + skip?: number; + + @Field(() => [UserScalarFieldEnum], {nullable:true}) + distinct?: Array<`${UserScalarFieldEnum}`>; } diff --git a/@generated/user/find-unique-user-or-throw.args.ts b/@generated/user/find-unique-user-or-throw.args.ts index 63a4e7a0..7b717e8c 100644 --- a/@generated/user/find-unique-user-or-throw.args.ts +++ b/@generated/user/find-unique-user-or-throw.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueUserOrThrowArgs { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/user/find-unique-user.args.ts b/@generated/user/find-unique-user.args.ts index 8e1dda70..aa077a04 100644 --- a/@generated/user/find-unique-user.args.ts +++ b/@generated/user/find-unique-user.args.ts @@ -6,7 +6,8 @@ import { Type } from 'class-transformer'; @ArgsType() export class FindUniqueUserArgs { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; + + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/user/update-many-user.args.ts b/@generated/user/update-many-user.args.ts index c16cbbe6..c5a3ba31 100644 --- a/@generated/user/update-many-user.args.ts +++ b/@generated/user/update-many-user.args.ts @@ -3,14 +3,19 @@ import { ArgsType } from '@nestjs/graphql'; import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; import { Type } from 'class-transformer'; import { UserWhereInput } from './user-where.input'; +import { Int } from '@nestjs/graphql'; @ArgsType() export class UpdateManyUserArgs { - @Field(() => UserUpdateManyMutationInput, { nullable: false }) - @Type(() => UserUpdateManyMutationInput) - data!: UserUpdateManyMutationInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; + @Field(() => UserUpdateManyMutationInput, {nullable:false}) + @Type(() => UserUpdateManyMutationInput) + data!: UserUpdateManyMutationInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; + + @Field(() => Int, {nullable:true}) + limit?: number; } diff --git a/@generated/user/update-one-user.args.ts b/@generated/user/update-one-user.args.ts index 753f0043..6c5bd64a 100644 --- a/@generated/user/update-one-user.args.ts +++ b/@generated/user/update-one-user.args.ts @@ -7,11 +7,12 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @ArgsType() export class UpdateOneUserArgs { - @Field(() => UserUpdateInput, { nullable: false }) - @Type(() => UserUpdateInput) - data!: UserUpdateInput; - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; + @Field(() => UserUpdateInput, {nullable:false}) + @Type(() => UserUpdateInput) + data!: UserUpdateInput; + + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; } diff --git a/@generated/user/upsert-one-user.args.ts b/@generated/user/upsert-one-user.args.ts index a19329e3..7ab5d78e 100644 --- a/@generated/user/upsert-one-user.args.ts +++ b/@generated/user/upsert-one-user.args.ts @@ -8,15 +8,16 @@ import { UserUpdateInput } from './user-update.input'; @ArgsType() export class UpsertOneUserArgs { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateInput, { nullable: false }) - @Type(() => UserCreateInput) - create!: UserCreateInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => UserUpdateInput, { nullable: false }) - @Type(() => UserUpdateInput) - update!: UserUpdateInput; + @Field(() => UserCreateInput, {nullable:false}) + @Type(() => UserCreateInput) + create!: UserCreateInput; + + @Field(() => UserUpdateInput, {nullable:false}) + @Type(() => UserUpdateInput) + update!: UserUpdateInput; } diff --git a/@generated/user/user-aggregate.args.ts b/@generated/user/user-aggregate.args.ts index 6c84951a..cb47d445 100644 --- a/@generated/user/user-aggregate.args.ts +++ b/@generated/user/user-aggregate.args.ts @@ -14,41 +14,42 @@ import { UserMaxAggregateInput } from './user-max-aggregate.input'; @ArgsType() export class UserAggregateArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => [UserOrderByWithRelationInput], { nullable: true }) - @Type(() => UserOrderByWithRelationInput) - orderBy?: Array; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - cursor?: Prisma.AtLeast; + @Field(() => [UserOrderByWithRelationInput], {nullable:true}) + @Type(() => UserOrderByWithRelationInput) + orderBy?: Array; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + cursor?: Prisma.AtLeast; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => UserCountAggregateInput, { nullable: true }) - @Type(() => UserCountAggregateInput) - _count?: UserCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => UserAvgAggregateInput, { nullable: true }) - @Type(() => UserAvgAggregateInput) - _avg?: UserAvgAggregateInput; + @Field(() => UserCountAggregateInput, {nullable:true}) + @Type(() => UserCountAggregateInput) + _count?: UserCountAggregateInput; - @Field(() => UserSumAggregateInput, { nullable: true }) - @Type(() => UserSumAggregateInput) - _sum?: UserSumAggregateInput; + @Field(() => UserAvgAggregateInput, {nullable:true}) + @Type(() => UserAvgAggregateInput) + _avg?: UserAvgAggregateInput; - @Field(() => UserMinAggregateInput, { nullable: true }) - @Type(() => UserMinAggregateInput) - _min?: UserMinAggregateInput; + @Field(() => UserSumAggregateInput, {nullable:true}) + @Type(() => UserSumAggregateInput) + _sum?: UserSumAggregateInput; - @Field(() => UserMaxAggregateInput, { nullable: true }) - @Type(() => UserMaxAggregateInput) - _max?: UserMaxAggregateInput; + @Field(() => UserMinAggregateInput, {nullable:true}) + @Type(() => UserMinAggregateInput) + _min?: UserMinAggregateInput; + + @Field(() => UserMaxAggregateInput, {nullable:true}) + @Type(() => UserMaxAggregateInput) + _max?: UserMaxAggregateInput; } diff --git a/@generated/user/user-avg-aggregate.input.ts b/@generated/user/user-avg-aggregate.input.ts index 6c42464e..dbe3fd95 100644 --- a/@generated/user/user-avg-aggregate.input.ts +++ b/@generated/user/user-avg-aggregate.input.ts @@ -3,12 +3,13 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class UserAvgAggregateInput { - @Field(() => Boolean, { nullable: true }) - countComments?: true; - @Field(() => Boolean, { nullable: true }) - rating?: true; + @Field(() => Boolean, {nullable:true}) + countComments?: true; - @Field(() => Boolean, { nullable: true }) - money?: true; + @Field(() => Boolean, {nullable:true}) + rating?: true; + + @Field(() => Boolean, {nullable:true}) + money?: true; } diff --git a/@generated/user/user-avg-aggregate.output.ts b/@generated/user/user-avg-aggregate.output.ts index b0f4c86f..21fb126c 100644 --- a/@generated/user/user-avg-aggregate.output.ts +++ b/@generated/user/user-avg-aggregate.output.ts @@ -6,12 +6,13 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class UserAvgAggregate { - @Field(() => Float, { nullable: true }) - countComments?: number; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Float, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; + + @Field(() => GraphQLDecimal, {nullable:true}) + money?: Decimal; } diff --git a/@generated/user/user-avg-order-by-aggregate.input.ts b/@generated/user/user-avg-order-by-aggregate.input.ts index 6a4019df..edb23221 100644 --- a/@generated/user/user-avg-order-by-aggregate.input.ts +++ b/@generated/user/user-avg-order-by-aggregate.input.ts @@ -4,12 +4,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserAvgOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - rating?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - money?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + rating?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + money?: `${SortOrder}`; } diff --git a/@generated/user/user-count-aggregate.input.ts b/@generated/user/user-count-aggregate.input.ts index 24deca18..b9146bfe 100644 --- a/@generated/user/user-count-aggregate.input.ts +++ b/@generated/user/user-count-aggregate.input.ts @@ -3,36 +3,37 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class UserCountAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - email?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + email?: true; - @Field(() => Boolean, { nullable: true }) - password?: true; + @Field(() => Boolean, {nullable:true}) + name?: true; - @Field(() => Boolean, { nullable: true }) - bio?: true; + @Field(() => Boolean, {nullable:true}) + password?: true; - @Field(() => Boolean, { nullable: true }) - image?: true; + @Field(() => Boolean, {nullable:true}) + bio?: true; - @Field(() => Boolean, { nullable: true }) - countComments?: true; + @Field(() => Boolean, {nullable:true}) + image?: true; - @Field(() => Boolean, { nullable: true }) - rating?: true; + @Field(() => Boolean, {nullable:true}) + countComments?: true; - @Field(() => Boolean, { nullable: true }) - money?: true; + @Field(() => Boolean, {nullable:true}) + rating?: true; - @Field(() => Boolean, { nullable: true }) - role?: true; + @Field(() => Boolean, {nullable:true}) + money?: true; - @Field(() => Boolean, { nullable: true }) - _all?: true; + @Field(() => Boolean, {nullable:true}) + role?: true; + + @Field(() => Boolean, {nullable:true}) + _all?: true; } diff --git a/@generated/user/user-count-aggregate.output.ts b/@generated/user/user-count-aggregate.output.ts index 06d69475..2bb57d8a 100644 --- a/@generated/user/user-count-aggregate.output.ts +++ b/@generated/user/user-count-aggregate.output.ts @@ -5,36 +5,37 @@ import { HideField } from '@nestjs/graphql'; @ObjectType() export class UserCountAggregate { - @Field(() => Int, { nullable: false }) - id!: number; - @Field(() => Int, { nullable: false }) - email!: number; + @Field(() => Int, {nullable:false}) + id!: number; - @Field(() => Int, { nullable: false }) - name!: number; + @Field(() => Int, {nullable:false}) + email!: number; - @HideField() - password!: number; + @Field(() => Int, {nullable:false}) + name!: number; - @Field(() => Int, { nullable: false }) - bio!: number; + @HideField() + password!: number; - @Field(() => Int, { nullable: false }) - image!: number; + @Field(() => Int, {nullable:false}) + bio!: number; - @Field(() => Int, { nullable: false }) - countComments!: number; + @Field(() => Int, {nullable:false}) + image!: number; - @Field(() => Int, { nullable: false }) - rating!: number; + @Field(() => Int, {nullable:false}) + countComments!: number; - @Field(() => Int, { nullable: false }) - money!: number; + @Field(() => Int, {nullable:false}) + rating!: number; - @Field(() => Int, { nullable: false }) - role!: number; + @Field(() => Int, {nullable:false}) + money!: number; - @Field(() => Int, { nullable: false }) - _all!: number; + @Field(() => Int, {nullable:false}) + role!: number; + + @Field(() => Int, {nullable:false}) + _all!: number; } diff --git a/@generated/user/user-count-order-by-aggregate.input.ts b/@generated/user/user-count-order-by-aggregate.input.ts index 8f95e5da..df3bd05f 100644 --- a/@generated/user/user-count-order-by-aggregate.input.ts +++ b/@generated/user/user-count-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserCountOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - email?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + email?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - password?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bio?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + password?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - image?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bio?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - countComments?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + image?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - rating?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - money?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + rating?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - role?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + money?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + role?: `${SortOrder}`; } diff --git a/@generated/user/user-count.output.ts b/@generated/user/user-count.output.ts index da705521..57ceb3ed 100644 --- a/@generated/user/user-count.output.ts +++ b/@generated/user/user-count.output.ts @@ -4,18 +4,19 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class UserCount { - @Field(() => Int, { nullable: false }) - following?: number; - @Field(() => Int, { nullable: false }) - followers?: number; + @Field(() => Int, {nullable:false}) + following?: number; - @Field(() => Int, { nullable: false }) - favoriteArticles?: number; + @Field(() => Int, {nullable:false}) + followers?: number; - @Field(() => Int, { nullable: false }) - articles?: number; + @Field(() => Int, {nullable:false}) + favoriteArticles?: number; - @Field(() => Int, { nullable: false }) - comments?: number; + @Field(() => Int, {nullable:false}) + articles?: number; + + @Field(() => Int, {nullable:false}) + comments?: number; } diff --git a/@generated/user/user-create-many.input.ts b/@generated/user/user-create-many.input.ts index b340f596..87f052bd 100644 --- a/@generated/user/user-create-many.input.ts +++ b/@generated/user/user-create-many.input.ts @@ -13,37 +13,38 @@ import { Role } from '../prisma/role.enum'; @InputType() export class UserCreateManyInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; + + @Field(() => Role, {nullable:true}) + role?: `${Role}`; } diff --git a/@generated/user/user-create-nested-many-without-favorite-articles.input.ts b/@generated/user/user-create-nested-many-without-favorite-articles.input.ts index e87c6b04..89d9721f 100644 --- a/@generated/user/user-create-nested-many-without-favorite-articles.input.ts +++ b/@generated/user/user-create-nested-many-without-favorite-articles.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedManyWithoutFavoriteArticlesInput { - @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-create-nested-many-without-followers.input.ts b/@generated/user/user-create-nested-many-without-followers.input.ts index 8dcef2b2..9f70fbf0 100644 --- a/@generated/user/user-create-nested-many-without-followers.input.ts +++ b/@generated/user/user-create-nested-many-without-followers.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedManyWithoutFollowersInput { - @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowersInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowersInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowersInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowersInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-create-nested-many-without-following.input.ts b/@generated/user/user-create-nested-many-without-following.input.ts index 3ab58c44..9fb1abe0 100644 --- a/@generated/user/user-create-nested-many-without-following.input.ts +++ b/@generated/user/user-create-nested-many-without-following.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedManyWithoutFollowingInput { - @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowingInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowingInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowingInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowingInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-create-nested-one-without-articles.input.ts b/@generated/user/user-create-nested-one-without-articles.input.ts index d48a17af..50a8a52d 100644 --- a/@generated/user/user-create-nested-one-without-articles.input.ts +++ b/@generated/user/user-create-nested-one-without-articles.input.ts @@ -8,18 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedOneWithoutArticlesInput { - @Field(() => UserCreateWithoutArticlesInput, { nullable: true }) - @Type(() => UserCreateWithoutArticlesInput) - create?: UserCreateWithoutArticlesInput; - @Field(() => UserCreateOrConnectWithoutArticlesInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutArticlesInput) - connectOrCreate?: UserCreateOrConnectWithoutArticlesInput; + @Field(() => UserCreateWithoutArticlesInput, {nullable:true}) + @Type(() => UserCreateWithoutArticlesInput) + create?: UserCreateWithoutArticlesInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserCreateOrConnectWithoutArticlesInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutArticlesInput) + connectOrCreate?: UserCreateOrConnectWithoutArticlesInput; + + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; } diff --git a/@generated/user/user-create-nested-one-without-comments.input.ts b/@generated/user/user-create-nested-one-without-comments.input.ts index a48bd9d7..4eca6f85 100644 --- a/@generated/user/user-create-nested-one-without-comments.input.ts +++ b/@generated/user/user-create-nested-one-without-comments.input.ts @@ -8,18 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedOneWithoutCommentsInput { - @Field(() => UserCreateWithoutCommentsInput, { nullable: true }) - @Type(() => UserCreateWithoutCommentsInput) - create?: UserCreateWithoutCommentsInput; - @Field(() => UserCreateOrConnectWithoutCommentsInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutCommentsInput) - connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; + @Field(() => UserCreateWithoutCommentsInput, {nullable:true}) + @Type(() => UserCreateWithoutCommentsInput) + create?: UserCreateWithoutCommentsInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserCreateOrConnectWithoutCommentsInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutCommentsInput) + connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; + + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; } diff --git a/@generated/user/user-create-nested-one-without-profile.input.ts b/@generated/user/user-create-nested-one-without-profile.input.ts index 69f4c282..1935bbfa 100644 --- a/@generated/user/user-create-nested-one-without-profile.input.ts +++ b/@generated/user/user-create-nested-one-without-profile.input.ts @@ -8,18 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedOneWithoutProfileInput { - @Field(() => UserCreateWithoutProfileInput, { nullable: true }) - @Type(() => UserCreateWithoutProfileInput) - create?: UserCreateWithoutProfileInput; - @Field(() => UserCreateOrConnectWithoutProfileInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutProfileInput) - connectOrCreate?: UserCreateOrConnectWithoutProfileInput; + @Field(() => UserCreateWithoutProfileInput, {nullable:true}) + @Type(() => UserCreateWithoutProfileInput) + create?: UserCreateWithoutProfileInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserCreateOrConnectWithoutProfileInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutProfileInput) + connectOrCreate?: UserCreateOrConnectWithoutProfileInput; + + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; } diff --git a/@generated/user/user-create-or-connect-without-articles.input.ts b/@generated/user/user-create-or-connect-without-articles.input.ts index 093bdefa..acbeb138 100644 --- a/@generated/user/user-create-or-connect-without-articles.input.ts +++ b/@generated/user/user-create-or-connect-without-articles.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutArticlesInput } from './user-create-without-articles.i @InputType() export class UserCreateOrConnectWithoutArticlesInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateWithoutArticlesInput) - create!: UserCreateWithoutArticlesInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateWithoutArticlesInput) + create!: UserCreateWithoutArticlesInput; } diff --git a/@generated/user/user-create-or-connect-without-comments.input.ts b/@generated/user/user-create-or-connect-without-comments.input.ts index 59c365da..73ec2f20 100644 --- a/@generated/user/user-create-or-connect-without-comments.input.ts +++ b/@generated/user/user-create-or-connect-without-comments.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutCommentsInput } from './user-create-without-comments.i @InputType() export class UserCreateOrConnectWithoutCommentsInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) - @Type(() => UserCreateWithoutCommentsInput) - create!: UserCreateWithoutCommentsInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutCommentsInput, {nullable:false}) + @Type(() => UserCreateWithoutCommentsInput) + create!: UserCreateWithoutCommentsInput; } diff --git a/@generated/user/user-create-or-connect-without-favorite-articles.input.ts b/@generated/user/user-create-or-connect-without-favorite-articles.input.ts index 823f3567..d15665d9 100644 --- a/@generated/user/user-create-or-connect-without-favorite-articles.input.ts +++ b/@generated/user/user-create-or-connect-without-favorite-articles.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutFavoriteArticlesInput } from './user-create-without-fa @InputType() export class UserCreateOrConnectWithoutFavoriteArticlesInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFavoriteArticlesInput, { nullable: false }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create!: UserCreateWithoutFavoriteArticlesInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutFavoriteArticlesInput, {nullable:false}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create!: UserCreateWithoutFavoriteArticlesInput; } diff --git a/@generated/user/user-create-or-connect-without-followers.input.ts b/@generated/user/user-create-or-connect-without-followers.input.ts index dc3bb9f1..90598669 100644 --- a/@generated/user/user-create-or-connect-without-followers.input.ts +++ b/@generated/user/user-create-or-connect-without-followers.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutFollowersInput } from './user-create-without-followers @InputType() export class UserCreateOrConnectWithoutFollowersInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFollowersInput, { nullable: false }) - @Type(() => UserCreateWithoutFollowersInput) - create!: UserCreateWithoutFollowersInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutFollowersInput, {nullable:false}) + @Type(() => UserCreateWithoutFollowersInput) + create!: UserCreateWithoutFollowersInput; } diff --git a/@generated/user/user-create-or-connect-without-following.input.ts b/@generated/user/user-create-or-connect-without-following.input.ts index bfda27a2..53bb5f40 100644 --- a/@generated/user/user-create-or-connect-without-following.input.ts +++ b/@generated/user/user-create-or-connect-without-following.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutFollowingInput } from './user-create-without-following @InputType() export class UserCreateOrConnectWithoutFollowingInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFollowingInput, { nullable: false }) - @Type(() => UserCreateWithoutFollowingInput) - create!: UserCreateWithoutFollowingInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutFollowingInput, {nullable:false}) + @Type(() => UserCreateWithoutFollowingInput) + create!: UserCreateWithoutFollowingInput; } diff --git a/@generated/user/user-create-or-connect-without-profile.input.ts b/@generated/user/user-create-or-connect-without-profile.input.ts index 1f820238..c409657b 100644 --- a/@generated/user/user-create-or-connect-without-profile.input.ts +++ b/@generated/user/user-create-or-connect-without-profile.input.ts @@ -7,11 +7,12 @@ import { UserCreateWithoutProfileInput } from './user-create-without-profile.inp @InputType() export class UserCreateOrConnectWithoutProfileInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutProfileInput, { nullable: false }) - @Type(() => UserCreateWithoutProfileInput) - create!: UserCreateWithoutProfileInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserCreateWithoutProfileInput, {nullable:false}) + @Type(() => UserCreateWithoutProfileInput) + create!: UserCreateWithoutProfileInput; } diff --git a/@generated/user/user-create-without-articles.input.ts b/@generated/user/user-create-without-articles.input.ts index 4c093b47..65ac6241 100644 --- a/@generated/user/user-create-without-articles.input.ts +++ b/@generated/user/user-create-without-articles.input.ts @@ -18,57 +18,58 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateWithoutArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-create-without-comments.input.ts b/@generated/user/user-create-without-comments.input.ts index a5b7cca9..f84dbb05 100644 --- a/@generated/user/user-create-without-comments.input.ts +++ b/@generated/user/user-create-without-comments.input.ts @@ -18,57 +18,58 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateWithoutCommentsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-create-without-favorite-articles.input.ts b/@generated/user/user-create-without-favorite-articles.input.ts index b3e2c852..c176a399 100644 --- a/@generated/user/user-create-without-favorite-articles.input.ts +++ b/@generated/user/user-create-without-favorite-articles.input.ts @@ -18,57 +18,58 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateWithoutFavoriteArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-create-without-followers.input.ts b/@generated/user/user-create-without-followers.input.ts index ea9aecf4..f66eaaeb 100644 --- a/@generated/user/user-create-without-followers.input.ts +++ b/@generated/user/user-create-without-followers.input.ts @@ -18,57 +18,58 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateWithoutFollowersInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-create-without-following.input.ts b/@generated/user/user-create-without-following.input.ts index ebd0c76d..88a72fb3 100644 --- a/@generated/user/user-create-without-following.input.ts +++ b/@generated/user/user-create-without-following.input.ts @@ -18,57 +18,58 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateWithoutFollowingInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-create-without-profile.input.ts b/@generated/user/user-create-without-profile.input.ts index 15b32ebf..78c4617c 100644 --- a/@generated/user/user-create-without-profile.input.ts +++ b/@generated/user/user-create-without-profile.input.ts @@ -18,57 +18,58 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr @InputType() export class UserCreateWithoutProfileInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; + + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; } diff --git a/@generated/user/user-create.input.ts b/@generated/user/user-create.input.ts index ced30705..84a37f1a 100644 --- a/@generated/user/user-create.input.ts +++ b/@generated/user/user-create.input.ts @@ -19,61 +19,62 @@ import { ProfileCreateNestedOneWithoutUserInput } from '../profile/profile-creat @InputType() export class UserCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowersInput) - following?: UserCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserCreateNestedManyWithoutFollowingInput) - followers?: UserCreateNestedManyWithoutFollowingInput; + @Field(() => UserCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowersInput) + following?: UserCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserCreateNestedManyWithoutFollowingInput) + followers?: UserCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleCreateNestedManyWithoutAuthorInput) - articles?: ArticleCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentCreateNestedManyWithoutAuthorInput) - comments?: CommentCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleCreateNestedManyWithoutAuthorInput) + articles?: ArticleCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileCreateNestedOneWithoutUserInput) - profile?: ProfileCreateNestedOneWithoutUserInput; + @Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentCreateNestedManyWithoutAuthorInput) + comments?: CommentCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileCreateNestedOneWithoutUserInput) + profile?: ProfileCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-email-name-compound-unique.input.ts b/@generated/user/user-email-name-compound-unique.input.ts index ff9c42a2..eceddbfe 100644 --- a/@generated/user/user-email-name-compound-unique.input.ts +++ b/@generated/user/user-email-name-compound-unique.input.ts @@ -5,11 +5,12 @@ import * as Validator from 'class-validator'; @InputType() export class UserEmailNameCompoundUniqueInput { - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; } diff --git a/@generated/user/user-group-by.args.ts b/@generated/user/user-group-by.args.ts index d18ba75d..4638358a 100644 --- a/@generated/user/user-group-by.args.ts +++ b/@generated/user/user-group-by.args.ts @@ -14,44 +14,45 @@ import { UserMaxAggregateInput } from './user-max-aggregate.input'; @ArgsType() export class UserGroupByArgs { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => [UserOrderByWithAggregationInput], { nullable: true }) - @Type(() => UserOrderByWithAggregationInput) - orderBy?: Array; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; - @Field(() => [UserScalarFieldEnum], { nullable: false }) - by!: Array<`${UserScalarFieldEnum}`>; + @Field(() => [UserOrderByWithAggregationInput], {nullable:true}) + @Type(() => UserOrderByWithAggregationInput) + orderBy?: Array; - @Field(() => UserScalarWhereWithAggregatesInput, { nullable: true }) - @Type(() => UserScalarWhereWithAggregatesInput) - having?: UserScalarWhereWithAggregatesInput; + @Field(() => [UserScalarFieldEnum], {nullable:false}) + by!: Array<`${UserScalarFieldEnum}`>; - @Field(() => Int, { nullable: true }) - take?: number; + @Field(() => UserScalarWhereWithAggregatesInput, {nullable:true}) + @Type(() => UserScalarWhereWithAggregatesInput) + having?: UserScalarWhereWithAggregatesInput; - @Field(() => Int, { nullable: true }) - skip?: number; + @Field(() => Int, {nullable:true}) + take?: number; - @Field(() => UserCountAggregateInput, { nullable: true }) - @Type(() => UserCountAggregateInput) - _count?: UserCountAggregateInput; + @Field(() => Int, {nullable:true}) + skip?: number; - @Field(() => UserAvgAggregateInput, { nullable: true }) - @Type(() => UserAvgAggregateInput) - _avg?: UserAvgAggregateInput; + @Field(() => UserCountAggregateInput, {nullable:true}) + @Type(() => UserCountAggregateInput) + _count?: UserCountAggregateInput; - @Field(() => UserSumAggregateInput, { nullable: true }) - @Type(() => UserSumAggregateInput) - _sum?: UserSumAggregateInput; + @Field(() => UserAvgAggregateInput, {nullable:true}) + @Type(() => UserAvgAggregateInput) + _avg?: UserAvgAggregateInput; - @Field(() => UserMinAggregateInput, { nullable: true }) - @Type(() => UserMinAggregateInput) - _min?: UserMinAggregateInput; + @Field(() => UserSumAggregateInput, {nullable:true}) + @Type(() => UserSumAggregateInput) + _sum?: UserSumAggregateInput; - @Field(() => UserMaxAggregateInput, { nullable: true }) - @Type(() => UserMaxAggregateInput) - _max?: UserMaxAggregateInput; + @Field(() => UserMinAggregateInput, {nullable:true}) + @Type(() => UserMinAggregateInput) + _min?: UserMinAggregateInput; + + @Field(() => UserMaxAggregateInput, {nullable:true}) + @Type(() => UserMaxAggregateInput) + _max?: UserMaxAggregateInput; } diff --git a/@generated/user/user-group-by.output.ts b/@generated/user/user-group-by.output.ts index 84034c11..c5327c53 100644 --- a/@generated/user/user-group-by.output.ts +++ b/@generated/user/user-group-by.output.ts @@ -14,48 +14,49 @@ import { UserMaxAggregate } from './user-max-aggregate.output'; @ObjectType() export class UserGroupBy { - @Field(() => String, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - email!: string; + @Field(() => String, {nullable:false}) + id!: string; - @Field(() => String, { nullable: false }) - name!: string; + @Field(() => String, {nullable:false}) + email!: string; - @HideField() - password!: string; + @Field(() => String, {nullable:false}) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @HideField() + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + money?: Decimal; - @Field(() => UserCountAggregate, { nullable: true }) - _count?: UserCountAggregate; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserAvgAggregate, { nullable: true }) - _avg?: UserAvgAggregate; + @Field(() => UserCountAggregate, {nullable:true}) + _count?: UserCountAggregate; - @Field(() => UserSumAggregate, { nullable: true }) - _sum?: UserSumAggregate; + @Field(() => UserAvgAggregate, {nullable:true}) + _avg?: UserAvgAggregate; - @Field(() => UserMinAggregate, { nullable: true }) - _min?: UserMinAggregate; + @Field(() => UserSumAggregate, {nullable:true}) + _sum?: UserSumAggregate; - @Field(() => UserMaxAggregate, { nullable: true }) - _max?: UserMaxAggregate; + @Field(() => UserMinAggregate, {nullable:true}) + _min?: UserMinAggregate; + + @Field(() => UserMaxAggregate, {nullable:true}) + _max?: UserMaxAggregate; } diff --git a/@generated/user/user-list-relation-filter.input.ts b/@generated/user/user-list-relation-filter.input.ts index 2523b2ef..adeafd46 100644 --- a/@generated/user/user-list-relation-filter.input.ts +++ b/@generated/user/user-list-relation-filter.input.ts @@ -5,15 +5,16 @@ import { Type } from 'class-transformer'; @InputType() export class UserListRelationFilter { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - every?: UserWhereInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - some?: UserWhereInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + every?: UserWhereInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - none?: UserWhereInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + some?: UserWhereInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + none?: UserWhereInput; } diff --git a/@generated/user/user-max-aggregate.input.ts b/@generated/user/user-max-aggregate.input.ts index f3920921..3f1564e7 100644 --- a/@generated/user/user-max-aggregate.input.ts +++ b/@generated/user/user-max-aggregate.input.ts @@ -3,33 +3,34 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class UserMaxAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - email?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + email?: true; - @Field(() => Boolean, { nullable: true }) - password?: true; + @Field(() => Boolean, {nullable:true}) + name?: true; - @Field(() => Boolean, { nullable: true }) - bio?: true; + @Field(() => Boolean, {nullable:true}) + password?: true; - @Field(() => Boolean, { nullable: true }) - image?: true; + @Field(() => Boolean, {nullable:true}) + bio?: true; - @Field(() => Boolean, { nullable: true }) - countComments?: true; + @Field(() => Boolean, {nullable:true}) + image?: true; - @Field(() => Boolean, { nullable: true }) - rating?: true; + @Field(() => Boolean, {nullable:true}) + countComments?: true; - @Field(() => Boolean, { nullable: true }) - money?: true; + @Field(() => Boolean, {nullable:true}) + rating?: true; - @Field(() => Boolean, { nullable: true }) - role?: true; + @Field(() => Boolean, {nullable:true}) + money?: true; + + @Field(() => Boolean, {nullable:true}) + role?: true; } diff --git a/@generated/user/user-max-aggregate.output.ts b/@generated/user/user-max-aggregate.output.ts index 744dc80b..d5440b24 100644 --- a/@generated/user/user-max-aggregate.output.ts +++ b/@generated/user/user-max-aggregate.output.ts @@ -9,33 +9,34 @@ import { Role } from '../prisma/role.enum'; @ObjectType() export class UserMaxAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - email?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: true }) - name?: string; + @Field(() => String, {nullable:true}) + email?: string; - @HideField() - password?: string; + @Field(() => String, {nullable:true}) + name?: string; - @Field(() => String, { nullable: true }) - bio?: string; + @HideField() + password?: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + money?: Decimal; + + @Field(() => Role, {nullable:true}) + role?: `${Role}`; } diff --git a/@generated/user/user-max-order-by-aggregate.input.ts b/@generated/user/user-max-order-by-aggregate.input.ts index 79df8895..d5eaeeaf 100644 --- a/@generated/user/user-max-order-by-aggregate.input.ts +++ b/@generated/user/user-max-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserMaxOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - email?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + email?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - password?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bio?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + password?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - image?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bio?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - countComments?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + image?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - rating?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - money?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + rating?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - role?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + money?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + role?: `${SortOrder}`; } diff --git a/@generated/user/user-min-aggregate.input.ts b/@generated/user/user-min-aggregate.input.ts index de25c6bb..ce742ffe 100644 --- a/@generated/user/user-min-aggregate.input.ts +++ b/@generated/user/user-min-aggregate.input.ts @@ -3,33 +3,34 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class UserMinAggregateInput { - @Field(() => Boolean, { nullable: true }) - id?: true; - @Field(() => Boolean, { nullable: true }) - email?: true; + @Field(() => Boolean, {nullable:true}) + id?: true; - @Field(() => Boolean, { nullable: true }) - name?: true; + @Field(() => Boolean, {nullable:true}) + email?: true; - @Field(() => Boolean, { nullable: true }) - password?: true; + @Field(() => Boolean, {nullable:true}) + name?: true; - @Field(() => Boolean, { nullable: true }) - bio?: true; + @Field(() => Boolean, {nullable:true}) + password?: true; - @Field(() => Boolean, { nullable: true }) - image?: true; + @Field(() => Boolean, {nullable:true}) + bio?: true; - @Field(() => Boolean, { nullable: true }) - countComments?: true; + @Field(() => Boolean, {nullable:true}) + image?: true; - @Field(() => Boolean, { nullable: true }) - rating?: true; + @Field(() => Boolean, {nullable:true}) + countComments?: true; - @Field(() => Boolean, { nullable: true }) - money?: true; + @Field(() => Boolean, {nullable:true}) + rating?: true; - @Field(() => Boolean, { nullable: true }) - role?: true; + @Field(() => Boolean, {nullable:true}) + money?: true; + + @Field(() => Boolean, {nullable:true}) + role?: true; } diff --git a/@generated/user/user-min-aggregate.output.ts b/@generated/user/user-min-aggregate.output.ts index 68ff3e2c..6a00cbea 100644 --- a/@generated/user/user-min-aggregate.output.ts +++ b/@generated/user/user-min-aggregate.output.ts @@ -9,33 +9,34 @@ import { Role } from '../prisma/role.enum'; @ObjectType() export class UserMinAggregate { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => String, { nullable: true }) - email?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: true }) - name?: string; + @Field(() => String, {nullable:true}) + email?: string; - @HideField() - password?: string; + @Field(() => String, {nullable:true}) + name?: string; - @Field(() => String, { nullable: true }) - bio?: string; + @HideField() + password?: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + money?: Decimal; + + @Field(() => Role, {nullable:true}) + role?: `${Role}`; } diff --git a/@generated/user/user-min-order-by-aggregate.input.ts b/@generated/user/user-min-order-by-aggregate.input.ts index 52630a59..3c9e3b2a 100644 --- a/@generated/user/user-min-order-by-aggregate.input.ts +++ b/@generated/user/user-min-order-by-aggregate.input.ts @@ -4,33 +4,34 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserMinOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - email?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + email?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - password?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - bio?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + password?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - image?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + bio?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - countComments?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + image?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - rating?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - money?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + rating?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - role?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + money?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + role?: `${SortOrder}`; } diff --git a/@generated/user/user-order-by-relation-aggregate.input.ts b/@generated/user/user-order-by-relation-aggregate.input.ts index 3647297c..6fd64668 100644 --- a/@generated/user/user-order-by-relation-aggregate.input.ts +++ b/@generated/user/user-order-by-relation-aggregate.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserOrderByRelationAggregateInput { - @Field(() => SortOrder, { nullable: true }) - _count?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + _count?: `${SortOrder}`; } diff --git a/@generated/user/user-order-by-relevance-field.enum.ts b/@generated/user/user-order-by-relevance-field.enum.ts index f993dae0..164dbe3a 100644 --- a/@generated/user/user-order-by-relevance-field.enum.ts +++ b/@generated/user/user-order-by-relevance-field.enum.ts @@ -1,15 +1,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum UserOrderByRelevanceFieldEnum { - id = 'id', - email = 'email', - name = 'name', - password = 'password', - bio = 'bio', - image = 'image', + + + + + + } -registerEnumType(UserOrderByRelevanceFieldEnum, { - name: 'UserOrderByRelevanceFieldEnum', - description: undefined, -}); + +registerEnumType(UserOrderByRelevanceFieldEnum, { name: 'UserOrderByRelevanceFieldEnum', description: undefined }) diff --git a/@generated/user/user-order-by-relevance.input.ts b/@generated/user/user-order-by-relevance.input.ts index f3838ff3..2ccd99d2 100644 --- a/@generated/user/user-order-by-relevance.input.ts +++ b/@generated/user/user-order-by-relevance.input.ts @@ -5,12 +5,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserOrderByRelevanceInput { - @Field(() => [UserOrderByRelevanceFieldEnum], { nullable: false }) - fields!: Array<`${UserOrderByRelevanceFieldEnum}`>; - @Field(() => SortOrder, { nullable: false }) - sort!: `${SortOrder}`; + @Field(() => [UserOrderByRelevanceFieldEnum], {nullable:false}) + fields!: Array<`${UserOrderByRelevanceFieldEnum}`>; - @Field(() => String, { nullable: false }) - search!: string; + @Field(() => SortOrder, {nullable:false}) + sort!: `${SortOrder}`; + + @Field(() => String, {nullable:false}) + search!: string; } diff --git a/@generated/user/user-order-by-with-aggregation.input.ts b/@generated/user/user-order-by-with-aggregation.input.ts index 6e231e27..fa732a92 100644 --- a/@generated/user/user-order-by-with-aggregation.input.ts +++ b/@generated/user/user-order-by-with-aggregation.input.ts @@ -11,54 +11,55 @@ import { UserSumOrderByAggregateInput } from './user-sum-order-by-aggregate.inpu @InputType() export class UserOrderByWithAggregationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - email?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + email?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - password?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - bio?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + password?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - image?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + bio?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - countComments?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + image?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - rating?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + countComments?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - @Type(() => SortOrderInput) - money?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + rating?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - role?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + @Type(() => SortOrderInput) + money?: SortOrderInput; - @Field(() => UserCountOrderByAggregateInput, { nullable: true }) - @Type(() => UserCountOrderByAggregateInput) - _count?: UserCountOrderByAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + role?: SortOrderInput; - @Field(() => UserAvgOrderByAggregateInput, { nullable: true }) - @Type(() => UserAvgOrderByAggregateInput) - _avg?: UserAvgOrderByAggregateInput; + @Field(() => UserCountOrderByAggregateInput, {nullable:true}) + @Type(() => UserCountOrderByAggregateInput) + _count?: UserCountOrderByAggregateInput; - @Field(() => UserMaxOrderByAggregateInput, { nullable: true }) - @Type(() => UserMaxOrderByAggregateInput) - _max?: UserMaxOrderByAggregateInput; + @Field(() => UserAvgOrderByAggregateInput, {nullable:true}) + @Type(() => UserAvgOrderByAggregateInput) + _avg?: UserAvgOrderByAggregateInput; - @Field(() => UserMinOrderByAggregateInput, { nullable: true }) - @Type(() => UserMinOrderByAggregateInput) - _min?: UserMinOrderByAggregateInput; + @Field(() => UserMaxOrderByAggregateInput, {nullable:true}) + @Type(() => UserMaxOrderByAggregateInput) + _max?: UserMaxOrderByAggregateInput; - @Field(() => UserSumOrderByAggregateInput, { nullable: true }) - @Type(() => UserSumOrderByAggregateInput) - _sum?: UserSumOrderByAggregateInput; + @Field(() => UserMinOrderByAggregateInput, {nullable:true}) + @Type(() => UserMinOrderByAggregateInput) + _min?: UserMinOrderByAggregateInput; + + @Field(() => UserSumOrderByAggregateInput, {nullable:true}) + @Type(() => UserSumOrderByAggregateInput) + _sum?: UserSumOrderByAggregateInput; } diff --git a/@generated/user/user-order-by-with-relation.input.ts b/@generated/user/user-order-by-with-relation.input.ts index 31ea15ae..c04f0c15 100644 --- a/@generated/user/user-order-by-with-relation.input.ts +++ b/@generated/user/user-order-by-with-relation.input.ts @@ -11,62 +11,63 @@ import { UserOrderByRelevanceInput } from './user-order-by-relevance.input'; @InputType() export class UserOrderByWithRelationInput { - @Field(() => SortOrder, { nullable: true }) - id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - email?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + id?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - name?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + email?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - password?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + name?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - bio?: SortOrderInput; + @Field(() => SortOrder, {nullable:true}) + password?: `${SortOrder}`; - @Field(() => SortOrderInput, { nullable: true }) - image?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + bio?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - countComments?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + image?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - rating?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + countComments?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - @Type(() => SortOrderInput) - money?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + rating?: SortOrderInput; - @Field(() => SortOrderInput, { nullable: true }) - role?: SortOrderInput; + @Field(() => SortOrderInput, {nullable:true}) + @Type(() => SortOrderInput) + money?: SortOrderInput; - @Field(() => UserOrderByRelationAggregateInput, { nullable: true }) - @Type(() => UserOrderByRelationAggregateInput) - following?: UserOrderByRelationAggregateInput; + @Field(() => SortOrderInput, {nullable:true}) + role?: SortOrderInput; - @Field(() => UserOrderByRelationAggregateInput, { nullable: true }) - @Type(() => UserOrderByRelationAggregateInput) - followers?: UserOrderByRelationAggregateInput; + @Field(() => UserOrderByRelationAggregateInput, {nullable:true}) + @Type(() => UserOrderByRelationAggregateInput) + following?: UserOrderByRelationAggregateInput; - @Field(() => ArticleOrderByRelationAggregateInput, { nullable: true }) - @Type(() => ArticleOrderByRelationAggregateInput) - favoriteArticles?: ArticleOrderByRelationAggregateInput; + @Field(() => UserOrderByRelationAggregateInput, {nullable:true}) + @Type(() => UserOrderByRelationAggregateInput) + followers?: UserOrderByRelationAggregateInput; - @Field(() => ArticleOrderByRelationAggregateInput, { nullable: true }) - @Type(() => ArticleOrderByRelationAggregateInput) - articles?: ArticleOrderByRelationAggregateInput; + @Field(() => ArticleOrderByRelationAggregateInput, {nullable:true}) + @Type(() => ArticleOrderByRelationAggregateInput) + favoriteArticles?: ArticleOrderByRelationAggregateInput; - @Field(() => CommentOrderByRelationAggregateInput, { nullable: true }) - @Type(() => CommentOrderByRelationAggregateInput) - comments?: CommentOrderByRelationAggregateInput; + @Field(() => ArticleOrderByRelationAggregateInput, {nullable:true}) + @Type(() => ArticleOrderByRelationAggregateInput) + articles?: ArticleOrderByRelationAggregateInput; - @Field(() => ProfileOrderByWithRelationInput, { nullable: true }) - @Type(() => ProfileOrderByWithRelationInput) - profile?: ProfileOrderByWithRelationInput; + @Field(() => CommentOrderByRelationAggregateInput, {nullable:true}) + @Type(() => CommentOrderByRelationAggregateInput) + comments?: CommentOrderByRelationAggregateInput; - @Field(() => UserOrderByRelevanceInput, { nullable: true }) - @Type(() => UserOrderByRelevanceInput) - _relevance?: UserOrderByRelevanceInput; + @Field(() => ProfileOrderByWithRelationInput, {nullable:true}) + @Type(() => ProfileOrderByWithRelationInput) + profile?: ProfileOrderByWithRelationInput; + + @Field(() => UserOrderByRelevanceInput, {nullable:true}) + @Type(() => UserOrderByRelevanceInput) + _relevance?: UserOrderByRelevanceInput; } diff --git a/@generated/user/user-scalar-field.enum.ts b/@generated/user/user-scalar-field.enum.ts index d1755369..9cb2f9ff 100644 --- a/@generated/user/user-scalar-field.enum.ts +++ b/@generated/user/user-scalar-field.enum.ts @@ -1,19 +1,17 @@ import { registerEnumType } from '@nestjs/graphql'; export enum UserScalarFieldEnum { - id = 'id', - email = 'email', - name = 'name', - password = 'password', - bio = 'bio', - image = 'image', - countComments = 'countComments', - rating = 'rating', - money = 'money', - role = 'role', + + + + + + + + + + } -registerEnumType(UserScalarFieldEnum, { - name: 'UserScalarFieldEnum', - description: undefined, -}); + +registerEnumType(UserScalarFieldEnum, { name: 'UserScalarFieldEnum', description: undefined }) diff --git a/@generated/user/user-scalar-relation-filter.input.ts b/@generated/user/user-scalar-relation-filter.input.ts index 88b4c5e8..45b92ac4 100644 --- a/@generated/user/user-scalar-relation-filter.input.ts +++ b/@generated/user/user-scalar-relation-filter.input.ts @@ -5,11 +5,12 @@ import { Type } from 'class-transformer'; @InputType() export class UserScalarRelationFilter { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - is?: UserWhereInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - isNot?: UserWhereInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + is?: UserWhereInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + isNot?: UserWhereInput; } diff --git a/@generated/user/user-scalar-where-with-aggregates.input.ts b/@generated/user/user-scalar-where-with-aggregates.input.ts index 3ab62388..66b743b6 100644 --- a/@generated/user/user-scalar-where-with-aggregates.input.ts +++ b/@generated/user/user-scalar-where-with-aggregates.input.ts @@ -10,46 +10,47 @@ import { EnumRoleNullableWithAggregatesFilter } from '../prisma/enum-role-nullab @InputType() export class UserScalarWhereWithAggregatesInput { - @Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => UserScalarWhereWithAggregatesInput) - AND?: Array; - @Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => UserScalarWhereWithAggregatesInput) - OR?: Array; + @Field(() => [UserScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => UserScalarWhereWithAggregatesInput) + AND?: Array; - @Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true }) - @Type(() => UserScalarWhereWithAggregatesInput) - NOT?: Array; + @Field(() => [UserScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => UserScalarWhereWithAggregatesInput) + OR?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - id?: StringWithAggregatesFilter; + @Field(() => [UserScalarWhereWithAggregatesInput], {nullable:true}) + @Type(() => UserScalarWhereWithAggregatesInput) + NOT?: Array; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - email?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + id?: StringWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - name?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + email?: StringWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, { nullable: true }) - password?: StringWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + name?: StringWithAggregatesFilter; - @Field(() => StringNullableWithAggregatesFilter, { nullable: true }) - bio?: StringNullableWithAggregatesFilter; + @Field(() => StringWithAggregatesFilter, {nullable:true}) + password?: StringWithAggregatesFilter; - @Field(() => StringNullableWithAggregatesFilter, { nullable: true }) - image?: StringNullableWithAggregatesFilter; + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) + bio?: StringNullableWithAggregatesFilter; - @Field(() => IntNullableWithAggregatesFilter, { nullable: true }) - countComments?: IntNullableWithAggregatesFilter; + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) + image?: StringNullableWithAggregatesFilter; - @Field(() => FloatNullableWithAggregatesFilter, { nullable: true }) - rating?: FloatNullableWithAggregatesFilter; + @Field(() => IntNullableWithAggregatesFilter, {nullable:true}) + countComments?: IntNullableWithAggregatesFilter; - @Field(() => DecimalNullableWithAggregatesFilter, { nullable: true }) - @Type(() => DecimalNullableWithAggregatesFilter) - money?: DecimalNullableWithAggregatesFilter; + @Field(() => FloatNullableWithAggregatesFilter, {nullable:true}) + rating?: FloatNullableWithAggregatesFilter; - @Field(() => EnumRoleNullableWithAggregatesFilter, { nullable: true }) - role?: EnumRoleNullableWithAggregatesFilter; + @Field(() => DecimalNullableWithAggregatesFilter, {nullable:true}) + @Type(() => DecimalNullableWithAggregatesFilter) + money?: DecimalNullableWithAggregatesFilter; + + @Field(() => EnumRoleNullableWithAggregatesFilter, {nullable:true}) + role?: EnumRoleNullableWithAggregatesFilter; } diff --git a/@generated/user/user-scalar-where.input.ts b/@generated/user/user-scalar-where.input.ts index fb73a41a..1453c44d 100644 --- a/@generated/user/user-scalar-where.input.ts +++ b/@generated/user/user-scalar-where.input.ts @@ -10,46 +10,47 @@ import { EnumRoleNullableFilter } from '../prisma/enum-role-nullable-filter.inpu @InputType() export class UserScalarWhereInput { - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - AND?: Array; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - OR?: Array; + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + AND?: Array; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - NOT?: Array; + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - email?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - name?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + email?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - password?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + name?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - bio?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + password?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - image?: StringNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + bio?: StringNullableFilter; - @Field(() => IntNullableFilter, { nullable: true }) - countComments?: IntNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + image?: StringNullableFilter; - @Field(() => FloatNullableFilter, { nullable: true }) - rating?: FloatNullableFilter; + @Field(() => IntNullableFilter, {nullable:true}) + countComments?: IntNullableFilter; - @Field(() => DecimalNullableFilter, { nullable: true }) - @Type(() => DecimalNullableFilter) - money?: DecimalNullableFilter; + @Field(() => FloatNullableFilter, {nullable:true}) + rating?: FloatNullableFilter; - @Field(() => EnumRoleNullableFilter, { nullable: true }) - role?: EnumRoleNullableFilter; + @Field(() => DecimalNullableFilter, {nullable:true}) + @Type(() => DecimalNullableFilter) + money?: DecimalNullableFilter; + + @Field(() => EnumRoleNullableFilter, {nullable:true}) + role?: EnumRoleNullableFilter; } diff --git a/@generated/user/user-sum-aggregate.input.ts b/@generated/user/user-sum-aggregate.input.ts index e347d25c..d6d9ba60 100644 --- a/@generated/user/user-sum-aggregate.input.ts +++ b/@generated/user/user-sum-aggregate.input.ts @@ -3,12 +3,13 @@ import { InputType } from '@nestjs/graphql'; @InputType() export class UserSumAggregateInput { - @Field(() => Boolean, { nullable: true }) - countComments?: true; - @Field(() => Boolean, { nullable: true }) - rating?: true; + @Field(() => Boolean, {nullable:true}) + countComments?: true; - @Field(() => Boolean, { nullable: true }) - money?: true; + @Field(() => Boolean, {nullable:true}) + rating?: true; + + @Field(() => Boolean, {nullable:true}) + money?: true; } diff --git a/@generated/user/user-sum-aggregate.output.ts b/@generated/user/user-sum-aggregate.output.ts index 98c6cd61..2b982855 100644 --- a/@generated/user/user-sum-aggregate.output.ts +++ b/@generated/user/user-sum-aggregate.output.ts @@ -7,12 +7,13 @@ import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; @ObjectType() export class UserSumAggregate { - @Field(() => Int, { nullable: true }) - countComments?: number; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; + + @Field(() => GraphQLDecimal, {nullable:true}) + money?: Decimal; } diff --git a/@generated/user/user-sum-order-by-aggregate.input.ts b/@generated/user/user-sum-order-by-aggregate.input.ts index 27bcdc74..8337e5d9 100644 --- a/@generated/user/user-sum-order-by-aggregate.input.ts +++ b/@generated/user/user-sum-order-by-aggregate.input.ts @@ -4,12 +4,13 @@ import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class UserSumOrderByAggregateInput { - @Field(() => SortOrder, { nullable: true }) - countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - rating?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + countComments?: `${SortOrder}`; - @Field(() => SortOrder, { nullable: true }) - money?: `${SortOrder}`; + @Field(() => SortOrder, {nullable:true}) + rating?: `${SortOrder}`; + + @Field(() => SortOrder, {nullable:true}) + money?: `${SortOrder}`; } diff --git a/@generated/user/user-unchecked-create-nested-many-without-favorite-articles.input.ts b/@generated/user/user-unchecked-create-nested-many-without-favorite-articles.input.ts index 0e03c698..01b6535c 100644 --- a/@generated/user/user-unchecked-create-nested-many-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-create-nested-many-without-favorite-articles.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput { - @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-unchecked-create-nested-many-without-followers.input.ts b/@generated/user/user-unchecked-create-nested-many-without-followers.input.ts index 7521e226..e47b0643 100644 --- a/@generated/user/user-unchecked-create-nested-many-without-followers.input.ts +++ b/@generated/user/user-unchecked-create-nested-many-without-followers.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserUncheckedCreateNestedManyWithoutFollowersInput { - @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowersInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowersInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowersInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowersInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-unchecked-create-nested-many-without-following.input.ts b/@generated/user/user-unchecked-create-nested-many-without-following.input.ts index b64b8b24..1643815e 100644 --- a/@generated/user/user-unchecked-create-nested-many-without-following.input.ts +++ b/@generated/user/user-unchecked-create-nested-many-without-following.input.ts @@ -8,17 +8,16 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserUncheckedCreateNestedManyWithoutFollowingInput { - @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowingInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowingInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowingInput) + create?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserCreateOrConnectWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowingInput) + connectOrCreate?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; } diff --git a/@generated/user/user-unchecked-create-without-articles.input.ts b/@generated/user/user-unchecked-create-without-articles.input.ts index be234140..9a7024b6 100644 --- a/@generated/user/user-unchecked-create-without-articles.input.ts +++ b/@generated/user/user-unchecked-create-without-articles.input.ts @@ -18,59 +18,58 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateWithoutArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-create-without-comments.input.ts b/@generated/user/user-unchecked-create-without-comments.input.ts index 9b0b5f8d..32ad697a 100644 --- a/@generated/user/user-unchecked-create-without-comments.input.ts +++ b/@generated/user/user-unchecked-create-without-comments.input.ts @@ -18,59 +18,58 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateWithoutCommentsInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-create-without-favorite-articles.input.ts b/@generated/user/user-unchecked-create-without-favorite-articles.input.ts index be2b0b4e..5baa2380 100644 --- a/@generated/user/user-unchecked-create-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-create-without-favorite-articles.input.ts @@ -18,57 +18,58 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateWithoutFavoriteArticlesInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-create-without-followers.input.ts b/@generated/user/user-unchecked-create-without-followers.input.ts index e676f37e..90ef1067 100644 --- a/@generated/user/user-unchecked-create-without-followers.input.ts +++ b/@generated/user/user-unchecked-create-without-followers.input.ts @@ -18,59 +18,58 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateWithoutFollowersInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-create-without-following.input.ts b/@generated/user/user-unchecked-create-without-following.input.ts index 125becb1..4b00a803 100644 --- a/@generated/user/user-unchecked-create-without-following.input.ts +++ b/@generated/user/user-unchecked-create-without-following.input.ts @@ -18,59 +18,58 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateWithoutFollowingInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-create-without-profile.input.ts b/@generated/user/user-unchecked-create-without-profile.input.ts index e42959f6..a9e2fc0d 100644 --- a/@generated/user/user-unchecked-create-without-profile.input.ts +++ b/@generated/user/user-unchecked-create-without-profile.input.ts @@ -18,59 +18,58 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c @InputType() export class UserUncheckedCreateWithoutProfileInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; } diff --git a/@generated/user/user-unchecked-create.input.ts b/@generated/user/user-unchecked-create.input.ts index a199039c..ab6b66fe 100644 --- a/@generated/user/user-unchecked-create.input.ts +++ b/@generated/user/user-unchecked-create.input.ts @@ -19,63 +19,62 @@ import { ProfileUncheckedCreateNestedOneWithoutUserInput } from '../profile/prof @InputType() export class UserUncheckedCreateInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) - email!: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: false }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name!: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) + email!: string; - @Field(() => String, { nullable: false }) - password!: string; + @Field(() => String, {nullable:false}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name!: string; - @Field(() => String, { nullable: true }) - bio?: string; + @Field(() => String, {nullable:false}) + password!: string; - @Field(() => String, { nullable: true }) - image?: string; + @Field(() => String, {nullable:true}) + bio?: string; - @Field(() => Int, { nullable: true }) - countComments?: number; + @Field(() => String, {nullable:true}) + image?: string; - @Field(() => Float, { nullable: true }) - rating?: number; + @Field(() => Int, {nullable:true}) + countComments?: number; - @Field(() => GraphQLDecimal, { nullable: true }) - @Type(() => Object) - @Transform(transformToDecimal) - money?: Decimal; + @Field(() => Float, {nullable:true}) + rating?: number; - @Field(() => Role, { nullable: true }) - role?: `${Role}`; + @Field(() => GraphQLDecimal, {nullable:true}) + @Type(() => Object) + @Transform(transformToDecimal) + money?: Decimal; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) - following?: UserUncheckedCreateNestedManyWithoutFollowersInput; + @Field(() => Role, {nullable:true}) + role?: `${Role}`; - @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) - followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowersInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowersInput) + following?: UserUncheckedCreateNestedManyWithoutFollowersInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) - favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; + @Field(() => UserUncheckedCreateNestedManyWithoutFollowingInput, {nullable:true}) + @Type(() => UserUncheckedCreateNestedManyWithoutFollowingInput) + followers?: UserUncheckedCreateNestedManyWithoutFollowingInput; - @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) - articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutFavoritedByInput) + favoriteArticles?: ArticleUncheckedCreateNestedManyWithoutFavoritedByInput; - @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { nullable: true }) - @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) - comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + @Field(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => ArticleUncheckedCreateNestedManyWithoutAuthorInput) + articles?: ArticleUncheckedCreateNestedManyWithoutAuthorInput; - @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, { nullable: true }) - @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) - profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true}) + @Type(() => CommentUncheckedCreateNestedManyWithoutAuthorInput) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; + + @Field(() => ProfileUncheckedCreateNestedOneWithoutUserInput, {nullable:true}) + @Type(() => ProfileUncheckedCreateNestedOneWithoutUserInput) + profile?: ProfileUncheckedCreateNestedOneWithoutUserInput; } diff --git a/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts b/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts index cd229ab3..d813d89e 100644 --- a/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts +++ b/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts @@ -12,57 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput { - @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create?: Array; - @Field(() => [UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput) - upsert?: Array; + @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) + connectOrCreate?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; + @Field(() => [UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput) + upsert?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; - @Field(() => [UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput) - update?: Array; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; - @Field(() => [UserUpdateManyWithWhereWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpdateManyWithWhereWithoutFavoriteArticlesInput) - updateMany?: Array; + @Field(() => [UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput) + update?: Array; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + @Field(() => [UserUpdateManyWithWhereWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFavoriteArticlesInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts b/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts index c7349de5..ee61743c 100644 --- a/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts @@ -10,34 +10,35 @@ import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-e @InputType() export class UserUncheckedUpdateManyWithoutFavoriteArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; + + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts b/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts index af0ad472..585fbcbc 100644 --- a/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts +++ b/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts @@ -12,51 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUncheckedUpdateManyWithoutFollowersNestedInput { - @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowersInput) - create?: Array; - - @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowersInput) - connectOrCreate?: Array; - - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) - upsert?: Array; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) - update?: Array; - - @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) - updateMany?: Array; - - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + + @Field(() => [UserCreateWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowersInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowersInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-unchecked-update-many-without-followers.input.ts b/@generated/user/user-unchecked-update-many-without-followers.input.ts index d89dad98..5370b2d4 100644 --- a/@generated/user/user-unchecked-update-many-without-followers.input.ts +++ b/@generated/user/user-unchecked-update-many-without-followers.input.ts @@ -10,34 +10,35 @@ import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-e @InputType() export class UserUncheckedUpdateManyWithoutFollowersInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; + + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-many-without-following-nested.input.ts b/@generated/user/user-unchecked-update-many-without-following-nested.input.ts index 0543a1b8..c31937fa 100644 --- a/@generated/user/user-unchecked-update-many-without-following-nested.input.ts +++ b/@generated/user/user-unchecked-update-many-without-following-nested.input.ts @@ -12,51 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUncheckedUpdateManyWithoutFollowingNestedInput { - @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowingInput) - create?: Array; - - @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowingInput) - connectOrCreate?: Array; - - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) - upsert?: Array; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) - update?: Array; - - @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) - updateMany?: Array; - - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + + @Field(() => [UserCreateWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowingInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowingInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-unchecked-update-many-without-following.input.ts b/@generated/user/user-unchecked-update-many-without-following.input.ts index b7b1512d..b7e5b38d 100644 --- a/@generated/user/user-unchecked-update-many-without-following.input.ts +++ b/@generated/user/user-unchecked-update-many-without-following.input.ts @@ -10,34 +10,35 @@ import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-e @InputType() export class UserUncheckedUpdateManyWithoutFollowingInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; + + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-many.input.ts b/@generated/user/user-unchecked-update-many.input.ts index 5b7c28f2..a689cf8d 100644 --- a/@generated/user/user-unchecked-update-many.input.ts +++ b/@generated/user/user-unchecked-update-many.input.ts @@ -10,34 +10,35 @@ import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-e @InputType() export class UserUncheckedUpdateManyInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; + + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-without-articles.input.ts b/@generated/user/user-unchecked-update-without-articles.input.ts index 2930225a..d7af5193 100644 --- a/@generated/user/user-unchecked-update-without-articles.input.ts +++ b/@generated/user/user-unchecked-update-without-articles.input.ts @@ -15,56 +15,55 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateWithoutArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-comments.input.ts b/@generated/user/user-unchecked-update-without-comments.input.ts index 7fd97a86..c9efb421 100644 --- a/@generated/user/user-unchecked-update-without-comments.input.ts +++ b/@generated/user/user-unchecked-update-without-comments.input.ts @@ -15,56 +15,55 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateWithoutCommentsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-favorite-articles.input.ts b/@generated/user/user-unchecked-update-without-favorite-articles.input.ts index 5bf61218..c2113135 100644 --- a/@generated/user/user-unchecked-update-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-update-without-favorite-articles.input.ts @@ -15,54 +15,55 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateWithoutFavoriteArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-followers.input.ts b/@generated/user/user-unchecked-update-without-followers.input.ts index ae64c07f..873b4e9c 100644 --- a/@generated/user/user-unchecked-update-without-followers.input.ts +++ b/@generated/user/user-unchecked-update-without-followers.input.ts @@ -15,56 +15,55 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateWithoutFollowersInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-following.input.ts b/@generated/user/user-unchecked-update-without-following.input.ts index 22854b92..221d6ed9 100644 --- a/@generated/user/user-unchecked-update-without-following.input.ts +++ b/@generated/user/user-unchecked-update-without-following.input.ts @@ -15,56 +15,55 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateWithoutFollowingInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-profile.input.ts b/@generated/user/user-unchecked-update-without-profile.input.ts index e6accea4..e34cd59b 100644 --- a/@generated/user/user-unchecked-update-without-profile.input.ts +++ b/@generated/user/user-unchecked-update-without-profile.input.ts @@ -15,56 +15,55 @@ import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/c @InputType() export class UserUncheckedUpdateWithoutProfileInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; } diff --git a/@generated/user/user-unchecked-update.input.ts b/@generated/user/user-unchecked-update.input.ts index 1112156c..1065bf8b 100644 --- a/@generated/user/user-unchecked-update.input.ts +++ b/@generated/user/user-unchecked-update.input.ts @@ -16,60 +16,59 @@ import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/prof @InputType() export class UserUncheckedUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) - following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) - followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { - nullable: true, - }) - @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) - comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) - profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUncheckedUpdateOneWithoutUserNestedInput) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-many-mutation.input.ts b/@generated/user/user-update-many-mutation.input.ts index 06103661..215137dd 100644 --- a/@generated/user/user-update-many-mutation.input.ts +++ b/@generated/user/user-update-many-mutation.input.ts @@ -10,34 +10,35 @@ import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-e @InputType() export class UserUpdateManyMutationInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; + + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-update-many-with-where-without-favorite-articles.input.ts b/@generated/user/user-update-many-with-where-without-favorite-articles.input.ts index 6cc0bf96..1d772b80 100644 --- a/@generated/user/user-update-many-with-where-without-favorite-articles.input.ts +++ b/@generated/user/user-update-many-with-where-without-favorite-articles.input.ts @@ -6,11 +6,12 @@ import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; @InputType() export class UserUpdateManyWithWhereWithoutFavoriteArticlesInput { - @Field(() => UserScalarWhereInput, { nullable: false }) - @Type(() => UserScalarWhereInput) - where!: UserScalarWhereInput; - @Field(() => UserUpdateManyMutationInput, { nullable: false }) - @Type(() => UserUpdateManyMutationInput) - data!: UserUpdateManyMutationInput; + @Field(() => UserScalarWhereInput, {nullable:false}) + @Type(() => UserScalarWhereInput) + where!: UserScalarWhereInput; + + @Field(() => UserUpdateManyMutationInput, {nullable:false}) + @Type(() => UserUpdateManyMutationInput) + data!: UserUpdateManyMutationInput; } diff --git a/@generated/user/user-update-many-with-where-without-followers.input.ts b/@generated/user/user-update-many-with-where-without-followers.input.ts index 98416b1c..48782a3d 100644 --- a/@generated/user/user-update-many-with-where-without-followers.input.ts +++ b/@generated/user/user-update-many-with-where-without-followers.input.ts @@ -6,11 +6,12 @@ import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; @InputType() export class UserUpdateManyWithWhereWithoutFollowersInput { - @Field(() => UserScalarWhereInput, { nullable: false }) - @Type(() => UserScalarWhereInput) - where!: UserScalarWhereInput; - @Field(() => UserUpdateManyMutationInput, { nullable: false }) - @Type(() => UserUpdateManyMutationInput) - data!: UserUpdateManyMutationInput; + @Field(() => UserScalarWhereInput, {nullable:false}) + @Type(() => UserScalarWhereInput) + where!: UserScalarWhereInput; + + @Field(() => UserUpdateManyMutationInput, {nullable:false}) + @Type(() => UserUpdateManyMutationInput) + data!: UserUpdateManyMutationInput; } diff --git a/@generated/user/user-update-many-with-where-without-following.input.ts b/@generated/user/user-update-many-with-where-without-following.input.ts index 01c859ad..e37efab8 100644 --- a/@generated/user/user-update-many-with-where-without-following.input.ts +++ b/@generated/user/user-update-many-with-where-without-following.input.ts @@ -6,11 +6,12 @@ import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; @InputType() export class UserUpdateManyWithWhereWithoutFollowingInput { - @Field(() => UserScalarWhereInput, { nullable: false }) - @Type(() => UserScalarWhereInput) - where!: UserScalarWhereInput; - @Field(() => UserUpdateManyMutationInput, { nullable: false }) - @Type(() => UserUpdateManyMutationInput) - data!: UserUpdateManyMutationInput; + @Field(() => UserScalarWhereInput, {nullable:false}) + @Type(() => UserScalarWhereInput) + where!: UserScalarWhereInput; + + @Field(() => UserUpdateManyMutationInput, {nullable:false}) + @Type(() => UserUpdateManyMutationInput) + data!: UserUpdateManyMutationInput; } diff --git a/@generated/user/user-update-many-without-favorite-articles-nested.input.ts b/@generated/user/user-update-many-without-favorite-articles-nested.input.ts index c28108c6..a7a8edb9 100644 --- a/@generated/user/user-update-many-without-favorite-articles-nested.input.ts +++ b/@generated/user/user-update-many-without-favorite-articles-nested.input.ts @@ -12,57 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUpdateManyWithoutFavoriteArticlesNestedInput { - @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create?: Array; - @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) - connectOrCreate?: Array; + @Field(() => [UserCreateWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create?: Array; - @Field(() => [UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput) - upsert?: Array; + @Field(() => [UserCreateOrConnectWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFavoriteArticlesInput) + connectOrCreate?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; + @Field(() => [UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput) + upsert?: Array; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; - @Field(() => [UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput) - update?: Array; + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; - @Field(() => [UserUpdateManyWithWhereWithoutFavoriteArticlesInput], { - nullable: true, - }) - @Type(() => UserUpdateManyWithWhereWithoutFavoriteArticlesInput) - updateMany?: Array; + @Field(() => [UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput) + update?: Array; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + @Field(() => [UserUpdateManyWithWhereWithoutFavoriteArticlesInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFavoriteArticlesInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-update-many-without-followers-nested.input.ts b/@generated/user/user-update-many-without-followers-nested.input.ts index f172ffad..c088b513 100644 --- a/@generated/user/user-update-many-without-followers-nested.input.ts +++ b/@generated/user/user-update-many-without-followers-nested.input.ts @@ -12,51 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUpdateManyWithoutFollowersNestedInput { - @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowersInput) - create?: Array; - - @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowersInput) - connectOrCreate?: Array; - - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) - upsert?: Array; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) - update?: Array; - - @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) - updateMany?: Array; - - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + + @Field(() => [UserCreateWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowersInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowersInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowersInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-update-many-without-following-nested.input.ts b/@generated/user/user-update-many-without-following-nested.input.ts index 040a324b..0264684b 100644 --- a/@generated/user/user-update-many-without-following-nested.input.ts +++ b/@generated/user/user-update-many-without-following-nested.input.ts @@ -12,51 +12,44 @@ import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() export class UserUpdateManyWithoutFollowingNestedInput { - @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowingInput) - create?: Array; - - @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowingInput) - connectOrCreate?: Array; - - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) - upsert?: Array; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array< - Prisma.AtLeast - >; - - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) - update?: Array; - - @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) - updateMany?: Array; - - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + + @Field(() => [UserCreateWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateWithoutFollowingInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowingInput], {nullable:true}) + @Type(() => UserCreateOrConnectWithoutFollowingInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + set?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + disconnect?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + delete?: Array>; + + @Field(() => [UserWhereUniqueInput], {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Array>; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], {nullable:true}) + @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], {nullable:true}) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; } diff --git a/@generated/user/user-update-one-required-without-articles-nested.input.ts b/@generated/user/user-update-one-required-without-articles-nested.input.ts index 7d99231f..184b93e4 100644 --- a/@generated/user/user-update-one-required-without-articles-nested.input.ts +++ b/@generated/user/user-update-one-required-without-articles-nested.input.ts @@ -10,26 +10,24 @@ import { UserUpdateToOneWithWhereWithoutArticlesInput } from './user-update-to-o @InputType() export class UserUpdateOneRequiredWithoutArticlesNestedInput { - @Field(() => UserCreateWithoutArticlesInput, { nullable: true }) - @Type(() => UserCreateWithoutArticlesInput) - create?: UserCreateWithoutArticlesInput; - @Field(() => UserCreateOrConnectWithoutArticlesInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutArticlesInput) - connectOrCreate?: UserCreateOrConnectWithoutArticlesInput; + @Field(() => UserCreateWithoutArticlesInput, {nullable:true}) + @Type(() => UserCreateWithoutArticlesInput) + create?: UserCreateWithoutArticlesInput; - @Field(() => UserUpsertWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpsertWithoutArticlesInput) - upsert?: UserUpsertWithoutArticlesInput; + @Field(() => UserCreateOrConnectWithoutArticlesInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutArticlesInput) + connectOrCreate?: UserCreateOrConnectWithoutArticlesInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserUpsertWithoutArticlesInput, {nullable:true}) + @Type(() => UserUpsertWithoutArticlesInput) + upsert?: UserUpsertWithoutArticlesInput; - @Field(() => UserUpdateToOneWithWhereWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpdateToOneWithWhereWithoutArticlesInput) - update?: UserUpdateToOneWithWhereWithoutArticlesInput; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => UserUpdateToOneWithWhereWithoutArticlesInput, {nullable:true}) + @Type(() => UserUpdateToOneWithWhereWithoutArticlesInput) + update?: UserUpdateToOneWithWhereWithoutArticlesInput; } diff --git a/@generated/user/user-update-one-required-without-comments-nested.input.ts b/@generated/user/user-update-one-required-without-comments-nested.input.ts index 6673c4ac..6cae8cd3 100644 --- a/@generated/user/user-update-one-required-without-comments-nested.input.ts +++ b/@generated/user/user-update-one-required-without-comments-nested.input.ts @@ -10,26 +10,24 @@ import { UserUpdateToOneWithWhereWithoutCommentsInput } from './user-update-to-o @InputType() export class UserUpdateOneRequiredWithoutCommentsNestedInput { - @Field(() => UserCreateWithoutCommentsInput, { nullable: true }) - @Type(() => UserCreateWithoutCommentsInput) - create?: UserCreateWithoutCommentsInput; - @Field(() => UserCreateOrConnectWithoutCommentsInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutCommentsInput) - connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; + @Field(() => UserCreateWithoutCommentsInput, {nullable:true}) + @Type(() => UserCreateWithoutCommentsInput) + create?: UserCreateWithoutCommentsInput; - @Field(() => UserUpsertWithoutCommentsInput, { nullable: true }) - @Type(() => UserUpsertWithoutCommentsInput) - upsert?: UserUpsertWithoutCommentsInput; + @Field(() => UserCreateOrConnectWithoutCommentsInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutCommentsInput) + connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserUpsertWithoutCommentsInput, {nullable:true}) + @Type(() => UserUpsertWithoutCommentsInput) + upsert?: UserUpsertWithoutCommentsInput; - @Field(() => UserUpdateToOneWithWhereWithoutCommentsInput, { nullable: true }) - @Type(() => UserUpdateToOneWithWhereWithoutCommentsInput) - update?: UserUpdateToOneWithWhereWithoutCommentsInput; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => UserUpdateToOneWithWhereWithoutCommentsInput, {nullable:true}) + @Type(() => UserUpdateToOneWithWhereWithoutCommentsInput) + update?: UserUpdateToOneWithWhereWithoutCommentsInput; } diff --git a/@generated/user/user-update-one-required-without-profile-nested.input.ts b/@generated/user/user-update-one-required-without-profile-nested.input.ts index e3fe49ae..47130f90 100644 --- a/@generated/user/user-update-one-required-without-profile-nested.input.ts +++ b/@generated/user/user-update-one-required-without-profile-nested.input.ts @@ -10,26 +10,24 @@ import { UserUpdateToOneWithWhereWithoutProfileInput } from './user-update-to-on @InputType() export class UserUpdateOneRequiredWithoutProfileNestedInput { - @Field(() => UserCreateWithoutProfileInput, { nullable: true }) - @Type(() => UserCreateWithoutProfileInput) - create?: UserCreateWithoutProfileInput; - @Field(() => UserCreateOrConnectWithoutProfileInput, { nullable: true }) - @Type(() => UserCreateOrConnectWithoutProfileInput) - connectOrCreate?: UserCreateOrConnectWithoutProfileInput; + @Field(() => UserCreateWithoutProfileInput, {nullable:true}) + @Type(() => UserCreateWithoutProfileInput) + create?: UserCreateWithoutProfileInput; - @Field(() => UserUpsertWithoutProfileInput, { nullable: true }) - @Type(() => UserUpsertWithoutProfileInput) - upsert?: UserUpsertWithoutProfileInput; + @Field(() => UserCreateOrConnectWithoutProfileInput, {nullable:true}) + @Type(() => UserCreateOrConnectWithoutProfileInput) + connectOrCreate?: UserCreateOrConnectWithoutProfileInput; - @Field(() => UserWhereUniqueInput, { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Prisma.AtLeast< - UserWhereUniqueInput, - 'id' | 'email' | 'name' | 'email_name' - >; + @Field(() => UserUpsertWithoutProfileInput, {nullable:true}) + @Type(() => UserUpsertWithoutProfileInput) + upsert?: UserUpsertWithoutProfileInput; - @Field(() => UserUpdateToOneWithWhereWithoutProfileInput, { nullable: true }) - @Type(() => UserUpdateToOneWithWhereWithoutProfileInput) - update?: UserUpdateToOneWithWhereWithoutProfileInput; + @Field(() => UserWhereUniqueInput, {nullable:true}) + @Type(() => UserWhereUniqueInput) + connect?: Prisma.AtLeast; + + @Field(() => UserUpdateToOneWithWhereWithoutProfileInput, {nullable:true}) + @Type(() => UserUpdateToOneWithWhereWithoutProfileInput) + update?: UserUpdateToOneWithWhereWithoutProfileInput; } diff --git a/@generated/user/user-update-to-one-with-where-without-articles.input.ts b/@generated/user/user-update-to-one-with-where-without-articles.input.ts index 32032d8b..e07505b2 100644 --- a/@generated/user/user-update-to-one-with-where-without-articles.input.ts +++ b/@generated/user/user-update-to-one-with-where-without-articles.input.ts @@ -6,11 +6,12 @@ import { UserUpdateWithoutArticlesInput } from './user-update-without-articles.i @InputType() export class UserUpdateToOneWithWhereWithoutArticlesInput { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => UserUpdateWithoutArticlesInput, { nullable: false }) - @Type(() => UserUpdateWithoutArticlesInput) - data!: UserUpdateWithoutArticlesInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; + + @Field(() => UserUpdateWithoutArticlesInput, {nullable:false}) + @Type(() => UserUpdateWithoutArticlesInput) + data!: UserUpdateWithoutArticlesInput; } diff --git a/@generated/user/user-update-to-one-with-where-without-comments.input.ts b/@generated/user/user-update-to-one-with-where-without-comments.input.ts index b6213aca..23321d6c 100644 --- a/@generated/user/user-update-to-one-with-where-without-comments.input.ts +++ b/@generated/user/user-update-to-one-with-where-without-comments.input.ts @@ -6,11 +6,12 @@ import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.i @InputType() export class UserUpdateToOneWithWhereWithoutCommentsInput { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => UserUpdateWithoutCommentsInput, { nullable: false }) - @Type(() => UserUpdateWithoutCommentsInput) - data!: UserUpdateWithoutCommentsInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; + + @Field(() => UserUpdateWithoutCommentsInput, {nullable:false}) + @Type(() => UserUpdateWithoutCommentsInput) + data!: UserUpdateWithoutCommentsInput; } diff --git a/@generated/user/user-update-to-one-with-where-without-profile.input.ts b/@generated/user/user-update-to-one-with-where-without-profile.input.ts index 6aaf94e8..52ded66a 100644 --- a/@generated/user/user-update-to-one-with-where-without-profile.input.ts +++ b/@generated/user/user-update-to-one-with-where-without-profile.input.ts @@ -6,11 +6,12 @@ import { UserUpdateWithoutProfileInput } from './user-update-without-profile.inp @InputType() export class UserUpdateToOneWithWhereWithoutProfileInput { - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; - @Field(() => UserUpdateWithoutProfileInput, { nullable: false }) - @Type(() => UserUpdateWithoutProfileInput) - data!: UserUpdateWithoutProfileInput; + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; + + @Field(() => UserUpdateWithoutProfileInput, {nullable:false}) + @Type(() => UserUpdateWithoutProfileInput) + data!: UserUpdateWithoutProfileInput; } diff --git a/@generated/user/user-update-with-where-unique-without-favorite-articles.input.ts b/@generated/user/user-update-with-where-unique-without-favorite-articles.input.ts index fb2e8cdf..072d5d12 100644 --- a/@generated/user/user-update-with-where-unique-without-favorite-articles.input.ts +++ b/@generated/user/user-update-with-where-unique-without-favorite-articles.input.ts @@ -7,11 +7,12 @@ import { UserUpdateWithoutFavoriteArticlesInput } from './user-update-without-fa @InputType() export class UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFavoriteArticlesInput, { nullable: false }) - @Type(() => UserUpdateWithoutFavoriteArticlesInput) - data!: UserUpdateWithoutFavoriteArticlesInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserUpdateWithoutFavoriteArticlesInput, {nullable:false}) + @Type(() => UserUpdateWithoutFavoriteArticlesInput) + data!: UserUpdateWithoutFavoriteArticlesInput; } diff --git a/@generated/user/user-update-with-where-unique-without-followers.input.ts b/@generated/user/user-update-with-where-unique-without-followers.input.ts index bb63ca5b..e3eedbef 100644 --- a/@generated/user/user-update-with-where-unique-without-followers.input.ts +++ b/@generated/user/user-update-with-where-unique-without-followers.input.ts @@ -7,11 +7,12 @@ import { UserUpdateWithoutFollowersInput } from './user-update-without-followers @InputType() export class UserUpdateWithWhereUniqueWithoutFollowersInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFollowersInput, { nullable: false }) - @Type(() => UserUpdateWithoutFollowersInput) - data!: UserUpdateWithoutFollowersInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserUpdateWithoutFollowersInput, {nullable:false}) + @Type(() => UserUpdateWithoutFollowersInput) + data!: UserUpdateWithoutFollowersInput; } diff --git a/@generated/user/user-update-with-where-unique-without-following.input.ts b/@generated/user/user-update-with-where-unique-without-following.input.ts index d349ce22..0b003055 100644 --- a/@generated/user/user-update-with-where-unique-without-following.input.ts +++ b/@generated/user/user-update-with-where-unique-without-following.input.ts @@ -7,11 +7,12 @@ import { UserUpdateWithoutFollowingInput } from './user-update-without-following @InputType() export class UserUpdateWithWhereUniqueWithoutFollowingInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFollowingInput, { nullable: false }) - @Type(() => UserUpdateWithoutFollowingInput) - data!: UserUpdateWithoutFollowingInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; + + @Field(() => UserUpdateWithoutFollowingInput, {nullable:false}) + @Type(() => UserUpdateWithoutFollowingInput) + data!: UserUpdateWithoutFollowingInput; } diff --git a/@generated/user/user-update-without-articles.input.ts b/@generated/user/user-update-without-articles.input.ts index db2b9835..f1a1ab43 100644 --- a/@generated/user/user-update-without-articles.input.ts +++ b/@generated/user/user-update-without-articles.input.ts @@ -15,54 +15,55 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateWithoutArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-comments.input.ts b/@generated/user/user-update-without-comments.input.ts index f68ca659..56a61796 100644 --- a/@generated/user/user-update-without-comments.input.ts +++ b/@generated/user/user-update-without-comments.input.ts @@ -15,54 +15,55 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateWithoutCommentsInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-favorite-articles.input.ts b/@generated/user/user-update-without-favorite-articles.input.ts index 12cf924c..5e19c785 100644 --- a/@generated/user/user-update-without-favorite-articles.input.ts +++ b/@generated/user/user-update-without-favorite-articles.input.ts @@ -15,54 +15,55 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateWithoutFavoriteArticlesInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-followers.input.ts b/@generated/user/user-update-without-followers.input.ts index 17fbc572..c5555273 100644 --- a/@generated/user/user-update-without-followers.input.ts +++ b/@generated/user/user-update-without-followers.input.ts @@ -15,54 +15,55 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateWithoutFollowersInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-following.input.ts b/@generated/user/user-update-without-following.input.ts index 52d34a4c..b9462bf1 100644 --- a/@generated/user/user-update-without-following.input.ts +++ b/@generated/user/user-update-without-following.input.ts @@ -15,54 +15,55 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateWithoutFollowingInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-profile.input.ts b/@generated/user/user-update-without-profile.input.ts index e3d69fb6..930e57cd 100644 --- a/@generated/user/user-update-without-profile.input.ts +++ b/@generated/user/user-update-without-profile.input.ts @@ -15,54 +15,55 @@ import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-up @InputType() export class UserUpdateWithoutProfileInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; + + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; } diff --git a/@generated/user/user-update.input.ts b/@generated/user/user-update.input.ts index d0aa12f3..8102fcdf 100644 --- a/@generated/user/user-update.input.ts +++ b/@generated/user/user-update.input.ts @@ -16,58 +16,59 @@ import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-updat @InputType() export class UserUpdateInput { - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - email?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + id?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - name?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + email?: StringFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) - password?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + name?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - bio?: NullableStringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + password?: StringFieldUpdateOperationsInput; - @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) - image?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) - countComments?: NullableIntFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) - rating?: NullableFloatFieldUpdateOperationsInput; + @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) - @Type(() => NullableDecimalFieldUpdateOperationsInput) - money?: NullableDecimalFieldUpdateOperationsInput; + @Field(() => NullableFloatFieldUpdateOperationsInput, {nullable:true}) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) - role?: NullableEnumRoleFieldUpdateOperationsInput; + @Field(() => NullableDecimalFieldUpdateOperationsInput, {nullable:true}) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersNestedInput) - following?: UserUpdateManyWithoutFollowersNestedInput; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, {nullable:true}) + role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingNestedInput) - followers?: UserUpdateManyWithoutFollowingNestedInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, {nullable:true}) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) - articles?: ArticleUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutFavoritedByNestedInput) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) - @Type(() => CommentUpdateManyWithoutAuthorNestedInput) - comments?: CommentUpdateManyWithoutAuthorNestedInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => ArticleUpdateManyWithoutAuthorNestedInput) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) - @Type(() => ProfileUpdateOneWithoutUserNestedInput) - profile?: ProfileUpdateOneWithoutUserNestedInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true}) + @Type(() => CommentUpdateManyWithoutAuthorNestedInput) + comments?: CommentUpdateManyWithoutAuthorNestedInput; + + @Field(() => ProfileUpdateOneWithoutUserNestedInput, {nullable:true}) + @Type(() => ProfileUpdateOneWithoutUserNestedInput) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-upsert-with-where-unique-without-favorite-articles.input.ts b/@generated/user/user-upsert-with-where-unique-without-favorite-articles.input.ts index 62e266eb..f4068629 100644 --- a/@generated/user/user-upsert-with-where-unique-without-favorite-articles.input.ts +++ b/@generated/user/user-upsert-with-where-unique-without-favorite-articles.input.ts @@ -8,15 +8,16 @@ import { UserCreateWithoutFavoriteArticlesInput } from './user-create-without-fa @InputType() export class UserUpsertWithWhereUniqueWithoutFavoriteArticlesInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFavoriteArticlesInput, { nullable: false }) - @Type(() => UserUpdateWithoutFavoriteArticlesInput) - update!: UserUpdateWithoutFavoriteArticlesInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFavoriteArticlesInput, { nullable: false }) - @Type(() => UserCreateWithoutFavoriteArticlesInput) - create!: UserCreateWithoutFavoriteArticlesInput; + @Field(() => UserUpdateWithoutFavoriteArticlesInput, {nullable:false}) + @Type(() => UserUpdateWithoutFavoriteArticlesInput) + update!: UserUpdateWithoutFavoriteArticlesInput; + + @Field(() => UserCreateWithoutFavoriteArticlesInput, {nullable:false}) + @Type(() => UserCreateWithoutFavoriteArticlesInput) + create!: UserCreateWithoutFavoriteArticlesInput; } diff --git a/@generated/user/user-upsert-with-where-unique-without-followers.input.ts b/@generated/user/user-upsert-with-where-unique-without-followers.input.ts index 011350ab..ebdfe082 100644 --- a/@generated/user/user-upsert-with-where-unique-without-followers.input.ts +++ b/@generated/user/user-upsert-with-where-unique-without-followers.input.ts @@ -8,15 +8,16 @@ import { UserCreateWithoutFollowersInput } from './user-create-without-followers @InputType() export class UserUpsertWithWhereUniqueWithoutFollowersInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFollowersInput, { nullable: false }) - @Type(() => UserUpdateWithoutFollowersInput) - update!: UserUpdateWithoutFollowersInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFollowersInput, { nullable: false }) - @Type(() => UserCreateWithoutFollowersInput) - create!: UserCreateWithoutFollowersInput; + @Field(() => UserUpdateWithoutFollowersInput, {nullable:false}) + @Type(() => UserUpdateWithoutFollowersInput) + update!: UserUpdateWithoutFollowersInput; + + @Field(() => UserCreateWithoutFollowersInput, {nullable:false}) + @Type(() => UserCreateWithoutFollowersInput) + create!: UserCreateWithoutFollowersInput; } diff --git a/@generated/user/user-upsert-with-where-unique-without-following.input.ts b/@generated/user/user-upsert-with-where-unique-without-following.input.ts index 818b2767..5228825e 100644 --- a/@generated/user/user-upsert-with-where-unique-without-following.input.ts +++ b/@generated/user/user-upsert-with-where-unique-without-following.input.ts @@ -8,15 +8,16 @@ import { UserCreateWithoutFollowingInput } from './user-create-without-following @InputType() export class UserUpsertWithWhereUniqueWithoutFollowingInput { - @Field(() => UserWhereUniqueInput, { nullable: false }) - @Type(() => UserWhereUniqueInput) - where!: Prisma.AtLeast; - @Field(() => UserUpdateWithoutFollowingInput, { nullable: false }) - @Type(() => UserUpdateWithoutFollowingInput) - update!: UserUpdateWithoutFollowingInput; + @Field(() => UserWhereUniqueInput, {nullable:false}) + @Type(() => UserWhereUniqueInput) + where!: Prisma.AtLeast; - @Field(() => UserCreateWithoutFollowingInput, { nullable: false }) - @Type(() => UserCreateWithoutFollowingInput) - create!: UserCreateWithoutFollowingInput; + @Field(() => UserUpdateWithoutFollowingInput, {nullable:false}) + @Type(() => UserUpdateWithoutFollowingInput) + update!: UserUpdateWithoutFollowingInput; + + @Field(() => UserCreateWithoutFollowingInput, {nullable:false}) + @Type(() => UserCreateWithoutFollowingInput) + create!: UserCreateWithoutFollowingInput; } diff --git a/@generated/user/user-upsert-without-articles.input.ts b/@generated/user/user-upsert-without-articles.input.ts index c28cfd91..bc4362dc 100644 --- a/@generated/user/user-upsert-without-articles.input.ts +++ b/@generated/user/user-upsert-without-articles.input.ts @@ -7,15 +7,16 @@ import { UserWhereInput } from './user-where.input'; @InputType() export class UserUpsertWithoutArticlesInput { - @Field(() => UserUpdateWithoutArticlesInput, { nullable: false }) - @Type(() => UserUpdateWithoutArticlesInput) - update!: UserUpdateWithoutArticlesInput; - @Field(() => UserCreateWithoutArticlesInput, { nullable: false }) - @Type(() => UserCreateWithoutArticlesInput) - create!: UserCreateWithoutArticlesInput; + @Field(() => UserUpdateWithoutArticlesInput, {nullable:false}) + @Type(() => UserUpdateWithoutArticlesInput) + update!: UserUpdateWithoutArticlesInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; + @Field(() => UserCreateWithoutArticlesInput, {nullable:false}) + @Type(() => UserCreateWithoutArticlesInput) + create!: UserCreateWithoutArticlesInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; } diff --git a/@generated/user/user-upsert-without-comments.input.ts b/@generated/user/user-upsert-without-comments.input.ts index c2308934..b0708655 100644 --- a/@generated/user/user-upsert-without-comments.input.ts +++ b/@generated/user/user-upsert-without-comments.input.ts @@ -7,15 +7,16 @@ import { UserWhereInput } from './user-where.input'; @InputType() export class UserUpsertWithoutCommentsInput { - @Field(() => UserUpdateWithoutCommentsInput, { nullable: false }) - @Type(() => UserUpdateWithoutCommentsInput) - update!: UserUpdateWithoutCommentsInput; - @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) - @Type(() => UserCreateWithoutCommentsInput) - create!: UserCreateWithoutCommentsInput; + @Field(() => UserUpdateWithoutCommentsInput, {nullable:false}) + @Type(() => UserUpdateWithoutCommentsInput) + update!: UserUpdateWithoutCommentsInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; + @Field(() => UserCreateWithoutCommentsInput, {nullable:false}) + @Type(() => UserCreateWithoutCommentsInput) + create!: UserCreateWithoutCommentsInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; } diff --git a/@generated/user/user-upsert-without-profile.input.ts b/@generated/user/user-upsert-without-profile.input.ts index 481e750e..3a8a30f4 100644 --- a/@generated/user/user-upsert-without-profile.input.ts +++ b/@generated/user/user-upsert-without-profile.input.ts @@ -7,15 +7,16 @@ import { UserWhereInput } from './user-where.input'; @InputType() export class UserUpsertWithoutProfileInput { - @Field(() => UserUpdateWithoutProfileInput, { nullable: false }) - @Type(() => UserUpdateWithoutProfileInput) - update!: UserUpdateWithoutProfileInput; - @Field(() => UserCreateWithoutProfileInput, { nullable: false }) - @Type(() => UserCreateWithoutProfileInput) - create!: UserCreateWithoutProfileInput; + @Field(() => UserUpdateWithoutProfileInput, {nullable:false}) + @Type(() => UserUpdateWithoutProfileInput) + update!: UserUpdateWithoutProfileInput; - @Field(() => UserWhereInput, { nullable: true }) - @Type(() => UserWhereInput) - where?: UserWhereInput; + @Field(() => UserCreateWithoutProfileInput, {nullable:false}) + @Type(() => UserCreateWithoutProfileInput) + create!: UserCreateWithoutProfileInput; + + @Field(() => UserWhereInput, {nullable:true}) + @Type(() => UserWhereInput) + where?: UserWhereInput; } diff --git a/@generated/user/user-where-unique.input.ts b/@generated/user/user-where-unique.input.ts index e6eb56a3..2edaffcb 100644 --- a/@generated/user/user-where-unique.input.ts +++ b/@generated/user/user-where-unique.input.ts @@ -18,76 +18,77 @@ import { ProfileNullableScalarRelationFilter } from '../profile/profile-nullable @InputType() export class UserWhereUniqueInput { - @Field(() => String, { nullable: true }) - id?: string; - @Field(() => Scalars.GraphQLEmailAddress, { nullable: true }) - email?: string; + @Field(() => String, {nullable:true}) + id?: string; - @Field(() => String, { nullable: true }) - @Validator.MinLength(3) - @Validator.MaxLength(50) - name?: string; + @Field(() => Scalars.GraphQLEmailAddress, {nullable:true}) + email?: string; - @Field(() => UserEmailNameCompoundUniqueInput, { nullable: true }) - @Type(() => UserEmailNameCompoundUniqueInput) - email_name?: UserEmailNameCompoundUniqueInput; + @Field(() => String, {nullable:true}) + @Validator.MinLength(3) + @Validator.MaxLength(50) + name?: string; - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - AND?: Array; + @Field(() => UserEmailNameCompoundUniqueInput, {nullable:true}) + @Type(() => UserEmailNameCompoundUniqueInput) + email_name?: UserEmailNameCompoundUniqueInput; - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - OR?: Array; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + AND?: Array; - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - NOT?: Array; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - password?: StringFilter; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + NOT?: Array; - @Field(() => StringNullableFilter, { nullable: true }) - bio?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + password?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - image?: StringNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + bio?: StringNullableFilter; - @Field(() => IntNullableFilter, { nullable: true }) - countComments?: IntNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + image?: StringNullableFilter; - @Field(() => FloatNullableFilter, { nullable: true }) - rating?: FloatNullableFilter; + @Field(() => IntNullableFilter, {nullable:true}) + countComments?: IntNullableFilter; - @Field(() => DecimalNullableFilter, { nullable: true }) - @Type(() => DecimalNullableFilter) - money?: DecimalNullableFilter; + @Field(() => FloatNullableFilter, {nullable:true}) + rating?: FloatNullableFilter; - @Field(() => EnumRoleNullableFilter, { nullable: true }) - role?: EnumRoleNullableFilter; + @Field(() => DecimalNullableFilter, {nullable:true}) + @Type(() => DecimalNullableFilter) + money?: DecimalNullableFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - following?: UserListRelationFilter; + @Field(() => EnumRoleNullableFilter, {nullable:true}) + role?: EnumRoleNullableFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - followers?: UserListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + following?: UserListRelationFilter; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - favoriteArticles?: ArticleListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + followers?: UserListRelationFilter; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - articles?: ArticleListRelationFilter; + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + favoriteArticles?: ArticleListRelationFilter; - @Field(() => CommentListRelationFilter, { nullable: true }) - @Type(() => CommentListRelationFilter) - comments?: CommentListRelationFilter; + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + articles?: ArticleListRelationFilter; - @Field(() => ProfileNullableScalarRelationFilter, { nullable: true }) - @Type(() => ProfileNullableScalarRelationFilter) - profile?: ProfileNullableScalarRelationFilter; + @Field(() => CommentListRelationFilter, {nullable:true}) + @Type(() => CommentListRelationFilter) + comments?: CommentListRelationFilter; + + @Field(() => ProfileNullableScalarRelationFilter, {nullable:true}) + @Type(() => ProfileNullableScalarRelationFilter) + profile?: ProfileNullableScalarRelationFilter; } diff --git a/@generated/user/user-where.input.ts b/@generated/user/user-where.input.ts index 3713786d..1679091b 100644 --- a/@generated/user/user-where.input.ts +++ b/@generated/user/user-where.input.ts @@ -14,70 +14,71 @@ import { ProfileWhereInput } from '../profile/profile-where.input'; @InputType() export class UserWhereInput { - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - AND?: Array; - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - OR?: Array; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + AND?: Array; - @Field(() => [UserWhereInput], { nullable: true }) - @Type(() => UserWhereInput) - NOT?: Array; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + OR?: Array; - @Field(() => StringFilter, { nullable: true }) - id?: StringFilter; + @Field(() => [UserWhereInput], {nullable:true}) + @Type(() => UserWhereInput) + NOT?: Array; - @Field(() => StringFilter, { nullable: true }) - email?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + id?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - name?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + email?: StringFilter; - @Field(() => StringFilter, { nullable: true }) - password?: StringFilter; + @Field(() => StringFilter, {nullable:true}) + name?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - bio?: StringNullableFilter; + @Field(() => StringFilter, {nullable:true}) + password?: StringFilter; - @Field(() => StringNullableFilter, { nullable: true }) - image?: StringNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + bio?: StringNullableFilter; - @Field(() => IntNullableFilter, { nullable: true }) - countComments?: IntNullableFilter; + @Field(() => StringNullableFilter, {nullable:true}) + image?: StringNullableFilter; - @Field(() => FloatNullableFilter, { nullable: true }) - rating?: FloatNullableFilter; + @Field(() => IntNullableFilter, {nullable:true}) + countComments?: IntNullableFilter; - @Field(() => DecimalNullableFilter, { nullable: true }) - @Type(() => DecimalNullableFilter) - money?: DecimalNullableFilter; + @Field(() => FloatNullableFilter, {nullable:true}) + rating?: FloatNullableFilter; - @Field(() => EnumRoleNullableFilter, { nullable: true }) - role?: EnumRoleNullableFilter; + @Field(() => DecimalNullableFilter, {nullable:true}) + @Type(() => DecimalNullableFilter) + money?: DecimalNullableFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - following?: UserListRelationFilter; + @Field(() => EnumRoleNullableFilter, {nullable:true}) + role?: EnumRoleNullableFilter; - @Field(() => UserListRelationFilter, { nullable: true }) - @Type(() => UserListRelationFilter) - followers?: UserListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + following?: UserListRelationFilter; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - favoriteArticles?: ArticleListRelationFilter; + @Field(() => UserListRelationFilter, {nullable:true}) + @Type(() => UserListRelationFilter) + followers?: UserListRelationFilter; - @Field(() => ArticleListRelationFilter, { nullable: true }) - @Type(() => ArticleListRelationFilter) - articles?: ArticleListRelationFilter; + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + favoriteArticles?: ArticleListRelationFilter; - @Field(() => CommentListRelationFilter, { nullable: true }) - @Type(() => CommentListRelationFilter) - comments?: CommentListRelationFilter; + @Field(() => ArticleListRelationFilter, {nullable:true}) + @Type(() => ArticleListRelationFilter) + articles?: ArticleListRelationFilter; - @Field(() => ProfileWhereInput, { nullable: true }) - @Type(() => ProfileWhereInput) - profile?: ProfileWhereInput; + @Field(() => CommentListRelationFilter, {nullable:true}) + @Type(() => CommentListRelationFilter) + comments?: CommentListRelationFilter; + + @Field(() => ProfileWhereInput, {nullable:true}) + @Type(() => ProfileWhereInput) + profile?: ProfileWhereInput; } diff --git a/@generated/user/user.model.ts b/@generated/user/user.model.ts index 21a07960..f4d22586 100644 --- a/@generated/user/user.model.ts +++ b/@generated/user/user.model.ts @@ -15,59 +15,60 @@ import { UserCount } from './user-count.output'; /** * User really */ -@ObjectType({ description: 'User really' }) +@ObjectType({description:'User really'}) export class User { - @Field(() => ID, { nullable: false }) - id!: string; - @Field(() => String, { nullable: false }) - email!: string; + @Field(() => ID, {nullable:false}) + id!: string; - /** - * User's name - */ - @Field(() => String, { description: "User's name", nullable: false }) - name!: string; + @Field(() => String, {nullable:false}) + email!: string; - @HideField() - password!: string; + /** + * User's name + */ + @Field(() => String, {description:"User's name",nullable:false}) + name!: string; - @Field(() => String, { nullable: true }) - bio!: string | null; + @HideField() + password!: string; - @Field(() => String, { nullable: true }) - image!: string | null; + @Field(() => String, {nullable:true}) + bio!: string | null; - @Field(() => Int, { nullable: true }) - countComments!: number | null; + @Field(() => String, {nullable:true}) + image!: string | null; - @Field(() => Float, { nullable: true }) - rating!: number | null; + @Field(() => Int, {nullable:true}) + countComments!: number | null; - @Field(() => GraphQLDecimal, { nullable: true }) - money!: Decimal | null; + @Field(() => Float, {nullable:true}) + rating!: number | null; - @Field(() => Role, { nullable: true }) - role!: `${Role}` | null; + @Field(() => GraphQLDecimal, {nullable:true}) + money!: Decimal | null; - @Field(() => [User], { nullable: true }) - following?: Array; + @Field(() => Role, {nullable:true}) + role!: `${Role}` | null; - @Field(() => [User], { nullable: true }) - followers?: Array; + @Field(() => [User], {nullable:true}) + following?: Array; - @Field(() => [Article], { nullable: true }) - favoriteArticles?: Array
; + @Field(() => [User], {nullable:true}) + followers?: Array; - @Field(() => [Article], { nullable: true }) - articles?: Array
; + @Field(() => [Article], {nullable:true}) + favoriteArticles?: Array
; - @Field(() => [Comment], { nullable: true }) - comments?: Array; + @Field(() => [Article], {nullable:true}) + articles?: Array
; - @Field(() => Profile, { nullable: true }) - profile?: Profile | null; + @Field(() => [Comment], {nullable:true}) + comments?: Array; - @Field(() => UserCount, { nullable: false }) - _count?: UserCount; + @Field(() => Profile, {nullable:true}) + profile?: Profile | null; + + @Field(() => UserCount, {nullable:false}) + _count?: UserCount; } diff --git a/CHANGELOG.md b/CHANGELOG.md index 56189a4d..d8292ccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,1047 +2,905 @@ ### Bug Fixes -* Correct customImport description ([0933486](https://github.com/unlight/prisma-nestjs-graphql/commit/09334867f0b066ca25eafb413720dddeff8fb65c)) +- Correct customImport description ([0933486](https://github.com/unlight/prisma-nestjs-graphql/commit/09334867f0b066ca25eafb413720dddeff8fb65c)) ## [21.1.0](https://github.com/unlight/prisma-nestjs-graphql/compare/v21.0.2...v21.1.0) (2025-01-25) ### Features -* Add generator option for custom import for `emitSingle` ([46fed69](https://github.com/unlight/prisma-nestjs-graphql/commit/46fed69343a2c88d61dfa8432c9827281145019f)) +- Add generator option for custom import for `emitSingle` ([46fed69](https://github.com/unlight/prisma-nestjs-graphql/commit/46fed69343a2c88d61dfa8432c9827281145019f)) ## [21.0.2](https://github.com/unlight/prisma-nestjs-graphql/compare/v21.0.1...v21.0.2) (2025-01-19) ### Bug Fixes -* Change generated enum type to ticked style ([2a0fe84](https://github.com/unlight/prisma-nestjs-graphql/commit/2a0fe848fc79a5225ff75abfcd26f89cf2373959)) +- Change generated enum type to ticked style ([2a0fe84](https://github.com/unlight/prisma-nestjs-graphql/commit/2a0fe848fc79a5225ff75abfcd26f89cf2373959)) ## [21.0.1](https://github.com/unlight/prisma-nestjs-graphql/compare/v21.0.0...v21.0.1) (2025-01-18) ### Bug Fixes -* New names when `combineScalarFilters` enabled ([88862bd](https://github.com/unlight/prisma-nestjs-graphql/commit/88862bdad400eea1011225f053a95fe37e0d91a5)) +- New names when `combineScalarFilters` enabled ([88862bd](https://github.com/unlight/prisma-nestjs-graphql/commit/88862bdad400eea1011225f053a95fe37e0d91a5)) ## [21.0.0](https://github.com/unlight/prisma-nestjs-graphql/compare/v20.1.0...v21.0.0) (2025-01-18) ### âš  BREAKING CHANGES -* Prisma 6 +- Prisma 6 ### Bug Fixes -* Cannot find model by name ([c69a10b](https://github.com/unlight/prisma-nestjs-graphql/commit/c69a10bc5abc5266c6e4ece8a68253717add881d)), closes [#228](https://github.com/unlight/prisma-nestjs-graphql/issues/228) -* Change `Bytes` generated type to `Uint8Array` ([de3f17c](https://github.com/unlight/prisma-nestjs-graphql/commit/de3f17c9e543a253202eef95b7501d87e931376e)) +- Cannot find model by name ([c69a10b](https://github.com/unlight/prisma-nestjs-graphql/commit/c69a10bc5abc5266c6e4ece8a68253717add881d)), closes [#228](https://github.com/unlight/prisma-nestjs-graphql/issues/228) +- Change `Bytes` generated type to `Uint8Array` ([de3f17c](https://github.com/unlight/prisma-nestjs-graphql/commit/de3f17c9e543a253202eef95b7501d87e931376e)) ### Miscellaneous Chores -* Update dependencies ([87cabfd](https://github.com/unlight/prisma-nestjs-graphql/commit/87cabfd0119c48bd39850275720c2dc5faafdba6)) +- Update dependencies ([87cabfd](https://github.com/unlight/prisma-nestjs-graphql/commit/87cabfd0119c48bd39850275720c2dc5faafdba6)) ## [20.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v20.0.3...v20.1.0) (2025-01-18) - ### Features -* Support @Field() option 'complexity' through comment line ([ef8c327](https://github.com/unlight/nestjs-graphql-prisma/commit/ef8c3270f1bcb886f1f6566c6fc35705278a431b)) +- Support @Field() option 'complexity' through comment line ([ef8c327](https://github.com/unlight/nestjs-graphql-prisma/commit/ef8c3270f1bcb886f1f6566c6fc35705278a431b)) ## [20.0.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v20.0.2...v20.0.3) (2024-05-19) - ### Bug Fixes -* Adapted to Prisma 5.14 ([35da088](https://github.com/unlight/nestjs-graphql-prisma/commit/35da088ad4052ce27ad25380704244fbf4dc13fc)), closes [#214](https://github.com/unlight/nestjs-graphql-prisma/issues/214) +- Adapted to Prisma 5.14 ([35da088](https://github.com/unlight/nestjs-graphql-prisma/commit/35da088ad4052ce27ad25380704244fbf4dc13fc)), closes [#214](https://github.com/unlight/nestjs-graphql-prisma/issues/214) ## [20.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v20.0.1...v20.0.2) (2023-12-17) - ### Bug Fixes -* AwaitEventEmitter is not a constructor ([6f97126](https://github.com/unlight/nestjs-graphql-prisma/commit/6f971262fdc62d518b7eeeb99fa2361d28138416)), closes [#200](https://github.com/unlight/nestjs-graphql-prisma/issues/200) +- AwaitEventEmitter is not a constructor ([6f97126](https://github.com/unlight/nestjs-graphql-prisma/commit/6f971262fdc62d518b7eeeb99fa2361d28138416)), closes [#200](https://github.com/unlight/nestjs-graphql-prisma/issues/200) ## [20.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v20.0.0...v20.0.1) (2023-12-17) - ### Bug Fixes -* Dummy bump ([a161650](https://github.com/unlight/nestjs-graphql-prisma/commit/a161650e6b8aee5a0f4b153cfebc5e3adf857366)) +- Dummy bump ([a161650](https://github.com/unlight/nestjs-graphql-prisma/commit/a161650e6b8aee5a0f4b153cfebc5e3adf857366)) ## [20.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.3.1...v20.0.0) (2023-12-15) - ### âš  BREAKING CHANGES -* Bump version +- Bump version ### Miscellaneous Chores -* Bump version ([3267147](https://github.com/unlight/nestjs-graphql-prisma/commit/3267147d8e5bc28bc36e25cd3717198e61cb1e37)) +- Bump version ([3267147](https://github.com/unlight/nestjs-graphql-prisma/commit/3267147d8e5bc28bc36e25cd3717198e61cb1e37)) ## [19.3.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.3.0...v19.3.1) (2023-12-15) - ### Bug Fixes -* Re-release 1.9.3 ([a52f31d](https://github.com/unlight/nestjs-graphql-prisma/commit/a52f31d2272120f8b3575ab22068a9a19ab30995)) +- Re-release 1.9.3 ([a52f31d](https://github.com/unlight/nestjs-graphql-prisma/commit/a52f31d2272120f8b3575ab22068a9a19ab30995)) ## [19.3.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.3.0...v19.3.1) (2023-12-15) - ### Bug Fixes -* Re-release 1.9.3 ([a52f31d](https://github.com/unlight/nestjs-graphql-prisma/commit/a52f31d2272120f8b3575ab22068a9a19ab30995)) +- Re-release 1.9.3 ([a52f31d](https://github.com/unlight/nestjs-graphql-prisma/commit/a52f31d2272120f8b3575ab22068a9a19ab30995)) ## [19.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.2.0...v19.3.0) (2023-11-25) - ### Features -* add the prisma client import option ([00c81d5](https://github.com/unlight/nestjs-graphql-prisma/commit/00c81d5f96493d05e8f84f0e88b00b4405a018a4)) +- add the prisma client import option ([00c81d5](https://github.com/unlight/nestjs-graphql-prisma/commit/00c81d5f96493d05e8f84f0e88b00b4405a018a4)) ## [19.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.1.0...v19.2.0) (2023-09-23) - ### Features -* **compatibility:** New configuration option `unsafeCompatibleWhereUniqueInput` ([72a3dab](https://github.com/unlight/nestjs-graphql-prisma/commit/72a3dab1396716f1c570f9b03eb7d66e67f3703e)), closes [#177](https://github.com/unlight/nestjs-graphql-prisma/issues/177) +- **compatibility:** New configuration option `unsafeCompatibleWhereUniqueInput` ([72a3dab](https://github.com/unlight/nestjs-graphql-prisma/commit/72a3dab1396716f1c570f9b03eb7d66e67f3703e)), closes [#177](https://github.com/unlight/nestjs-graphql-prisma/issues/177) ## [19.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.0.1...v19.1.0) (2023-09-19) - ### Features -* Add options to generate only selected blocks ([cabe9bd](https://github.com/unlight/nestjs-graphql-prisma/commit/cabe9bd93658554f3017619cca09c81b1ea5c3e3)) +- Add options to generate only selected blocks ([cabe9bd](https://github.com/unlight/nestjs-graphql-prisma/commit/cabe9bd93658554f3017619cca09c81b1ea5c3e3)) ## [19.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v19.0.0...v19.0.1) (2023-08-04) - ### Bug Fixes -* Compound primary key generated type ([64a9854](https://github.com/unlight/nestjs-graphql-prisma/commit/64a98544195b60ba6dcf062e0a74186aaa7c71f3)), closes [#182](https://github.com/unlight/nestjs-graphql-prisma/issues/182) +- Compound primary key generated type ([64a9854](https://github.com/unlight/nestjs-graphql-prisma/commit/64a98544195b60ba6dcf062e0a74186aaa7c71f3)), closes [#182](https://github.com/unlight/nestjs-graphql-prisma/issues/182) ## [19.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.1.2...v19.0.0) (2023-07-24) - ### âš  BREAKING CHANGES -* Update packages +- Update packages ### Miscellaneous Chores -* Update packages ([7e640a7](https://github.com/unlight/nestjs-graphql-prisma/commit/7e640a70d659d9b75003038009a30abe50b91e0e)) +- Update packages ([7e640a7](https://github.com/unlight/nestjs-graphql-prisma/commit/7e640a70d659d9b75003038009a30abe50b91e0e)) ## [18.1.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.1.1...v18.1.2) (2023-07-24) - ### Bug Fixes -* Combine scalars option with nullable relation filter ([471c405](https://github.com/unlight/nestjs-graphql-prisma/commit/471c405f88dc22e1874231f5770fc1e2474f6633)) -* Compatibility Issues with Prisma 5 ([1e1bee3](https://github.com/unlight/nestjs-graphql-prisma/commit/1e1bee3b2fb29dca6ce0a43afd3e8cdba4da1f17)), closes [#179](https://github.com/unlight/nestjs-graphql-prisma/issues/179) -* Emit single with Prisma type ([94df9cf](https://github.com/unlight/nestjs-graphql-prisma/commit/94df9cf9dd78f63a6221fc5a3016288c15eeca63)) -* More precise get model name ([96323c1](https://github.com/unlight/nestjs-graphql-prisma/commit/96323c1ba62b9e43182585234ca58a9e92b17b9a)) +- Combine scalars option with nullable relation filter ([471c405](https://github.com/unlight/nestjs-graphql-prisma/commit/471c405f88dc22e1874231f5770fc1e2474f6633)) +- Compatibility Issues with Prisma 5 ([1e1bee3](https://github.com/unlight/nestjs-graphql-prisma/commit/1e1bee3b2fb29dca6ce0a43afd3e8cdba4da1f17)), closes [#179](https://github.com/unlight/nestjs-graphql-prisma/issues/179) +- Emit single with Prisma type ([94df9cf](https://github.com/unlight/nestjs-graphql-prisma/commit/94df9cf9dd78f63a6221fc5a3016288c15eeca63)) +- More precise get model name ([96323c1](https://github.com/unlight/nestjs-graphql-prisma/commit/96323c1ba62b9e43182585234ca58a9e92b17b9a)) ## [18.1.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.1.0...v18.1.1) (2023-07-21) - ### Bug Fixes -* Fix in getModelName helper ([190ab33](https://github.com/unlight/nestjs-graphql-prisma/commit/190ab33fda5b29a5396fa0dea6998059eced605f)) +- Fix in getModelName helper ([190ab33](https://github.com/unlight/nestjs-graphql-prisma/commit/190ab33fda5b29a5396fa0dea6998059eced605f)) ## [18.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.0.2...v18.1.0) (2023-07-04) - ### Features -* Allow the use of the generate function without the `onGenerate` ([a566cca](https://github.com/unlight/nestjs-graphql-prisma/commit/a566ccad382753a4f5d87723d6865788b80ed8fa)), closes [#168](https://github.com/unlight/nestjs-graphql-prisma/issues/168) [#169](https://github.com/unlight/nestjs-graphql-prisma/issues/169) +- Allow the use of the generate function without the `onGenerate` ([a566cca](https://github.com/unlight/nestjs-graphql-prisma/commit/a566ccad382753a4f5d87723d6865788b80ed8fa)), closes [#168](https://github.com/unlight/nestjs-graphql-prisma/issues/168) [#169](https://github.com/unlight/nestjs-graphql-prisma/issues/169) ## [18.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.0.1...v18.0.2) (2023-05-09) - ### Bug Fixes -* Error too many open files ([2e67b25](https://github.com/unlight/nestjs-graphql-prisma/commit/2e67b2553c55d3105c919f1a4a7a01e876dffd11)), closes [#162](https://github.com/unlight/nestjs-graphql-prisma/issues/162) +- Error too many open files ([2e67b25](https://github.com/unlight/nestjs-graphql-prisma/commit/2e67b2553c55d3105c919f1a4a7a01e876dffd11)), closes [#162](https://github.com/unlight/nestjs-graphql-prisma/issues/162) ## [18.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v18.0.0...v18.0.1) (2023-05-09) - ### Bug Fixes -* Select input type from multiple options ([81aeb02](https://github.com/unlight/nestjs-graphql-prisma/commit/81aeb02adf7a05210e414bd5d51d342d0cc23770)) +- Select input type from multiple options ([81aeb02](https://github.com/unlight/nestjs-graphql-prisma/commit/81aeb02adf7a05210e414bd5d51d342d0cc23770)) ## [18.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v17.1.0...v18.0.0) (2023-04-02) - ### âš  BREAKING CHANGES -* Require `@prisma/client` v4.12+ -* Must be used with optional dependency `prisma-graphql-type-decimal` v3.0.0+ +- Require `@prisma/client` v4.12+ +- Must be used with optional dependency `prisma-graphql-type-decimal` v3.0.0+ ### Bug Fixes -* Deprecation warnings ([55b21fd](https://github.com/unlight/nestjs-graphql-prisma/commit/55b21fda4718db159083bfb01aeb6713165ff7ec)), closes [#161](https://github.com/unlight/nestjs-graphql-prisma/issues/161) +- Deprecation warnings ([55b21fd](https://github.com/unlight/nestjs-graphql-prisma/commit/55b21fda4718db159083bfb01aeb6713165ff7ec)), closes [#161](https://github.com/unlight/nestjs-graphql-prisma/issues/161) ## [17.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v17.0.3...v17.1.0) (2022-12-31) - ### Features -* Allow hide property using decorate in config ([b83beeb](https://github.com/unlight/nestjs-graphql-prisma/commit/b83beeb15b289ee80d5ed96004273228625fab38)) +- Allow hide property using decorate in config ([b83beeb](https://github.com/unlight/nestjs-graphql-prisma/commit/b83beeb15b289ee80d5ed96004273228625fab38)) ## [17.0.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v17.0.2...v17.0.3) (2022-12-14) - ### Bug Fixes -* Combine scalar filters with `fieldReference` ([1f1ef9c](https://github.com/unlight/nestjs-graphql-prisma/commit/1f1ef9c39a2db9f86d83788cfc0eae2d9f55cda6)), closes [#148](https://github.com/unlight/nestjs-graphql-prisma/issues/148) -* **combine scalars:** Bytes filter ([6b0a156](https://github.com/unlight/nestjs-graphql-prisma/commit/6b0a156535101a70dd40ccf1c103cde15ddccdeb)) -* Detect graphql type ([89a59cc](https://github.com/unlight/nestjs-graphql-prisma/commit/89a59cc7f496853c2627288aede37896efb33c08)), closes [#148](https://github.com/unlight/nestjs-graphql-prisma/issues/148) +- Combine scalar filters with `fieldReference` ([1f1ef9c](https://github.com/unlight/nestjs-graphql-prisma/commit/1f1ef9c39a2db9f86d83788cfc0eae2d9f55cda6)), closes [#148](https://github.com/unlight/nestjs-graphql-prisma/issues/148) +- **combine scalars:** Bytes filter ([6b0a156](https://github.com/unlight/nestjs-graphql-prisma/commit/6b0a156535101a70dd40ccf1c103cde15ddccdeb)) +- Detect graphql type ([89a59cc](https://github.com/unlight/nestjs-graphql-prisma/commit/89a59cc7f496853c2627288aede37896efb33c08)), closes [#148](https://github.com/unlight/nestjs-graphql-prisma/issues/148) ## [17.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v17.0.1...v17.0.2) (2022-11-20) - ### Bug Fixes -* Fix: Handle `FindUniq/First..OrThrowArgs` name ([0419d0d](https://github.com/unlight/nestjs-graphql-prisma/commit/0419d0d3e76f890d1b04c35b3fff12ba5cf42668)) -* Pin `ts-morph` to specific range ([d076fe9](https://github.com/unlight/nestjs-graphql-prisma/commit/d076fe9381771093b7f45a3b4676d06627c812e3)), closes [#146](https://github.com/unlight/nestjs-graphql-prisma/issues/146) +- Fix: Handle `FindUniq/First..OrThrowArgs` name ([0419d0d](https://github.com/unlight/nestjs-graphql-prisma/commit/0419d0d3e76f890d1b04c35b3fff12ba5cf42668)) +- Pin `ts-morph` to specific range ([d076fe9](https://github.com/unlight/nestjs-graphql-prisma/commit/d076fe9381771093b7f45a3b4676d06627c812e3)), closes [#146](https://github.com/unlight/nestjs-graphql-prisma/issues/146) ## [17.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v17.0.0...v17.0.1) (2022-08-29) - ### Bug Fixes -* **other:** Decimal convert error ([67e6ccf](https://github.com/unlight/nestjs-graphql-prisma/commit/67e6ccfa8f965d23342539e20664f33b9abf940c)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) +- **other:** Decimal convert error ([67e6ccf](https://github.com/unlight/nestjs-graphql-prisma/commit/67e6ccfa8f965d23342539e20664f33b9abf940c)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) ## [17.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v16.0.1...v17.0.0) (2022-06-30) - ### âš  BREAKING CHANGES -* Update library to support to Prisma v4 +- Update library to support to Prisma v4 ### Miscellaneous Chores -* Update library to support to Prisma v4 ([1456303](https://github.com/unlight/nestjs-graphql-prisma/commit/14563037196a50b5b8e97e3c4f45a158b399cc1f)), closes [#123](https://github.com/unlight/nestjs-graphql-prisma/issues/123) +- Update library to support to Prisma v4 ([1456303](https://github.com/unlight/nestjs-graphql-prisma/commit/14563037196a50b5b8e97e3c4f45a158b399cc1f)), closes [#123](https://github.com/unlight/nestjs-graphql-prisma/issues/123) ### [16.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v16.0.0...v16.0.1) (2022-05-23) - ### Bug Fixes -* Decorate parent decimal inputs ([9a7da40](https://github.com/unlight/nestjs-graphql-prisma/commit/9a7da40cd9f10c9732475e1e3bb6e72fe72e8333)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) +- Decorate parent decimal inputs ([9a7da40](https://github.com/unlight/nestjs-graphql-prisma/commit/9a7da40cd9f10c9732475e1e3bb6e72fe72e8333)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) ## [16.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.2...v16.0.0) (2022-05-22) - ### âš  BREAKING CHANGES -* @Type decorator will be added to some input classes +- @Type decorator will be added to some input classes ### Bug Fixes -* Create decimal value object ([f368231](https://github.com/unlight/nestjs-graphql-prisma/commit/f368231ac4c97a51a60b98e140623e84a28e3e63)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) -* No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) +- Create decimal value object ([f368231](https://github.com/unlight/nestjs-graphql-prisma/commit/f368231ac4c97a51a60b98e140623e84a28e3e63)), closes [#113](https://github.com/unlight/nestjs-graphql-prisma/issues/113) +- No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) ### [15.3.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.2...v15.3.3) (2022-05-22) - ### Bug Fixes -* No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) - +- No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) ### [15.3.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.1...v15.3.2) (2022-05-22) - ### Bug Fixes -* No atomic operations for scalar input list ([d32b03c](https://github.com/unlight/nestjs-graphql-prisma/commit/d32b03c76091c8ba2aa6757e147c43e556754de1)) +- No atomic operations for scalar input list ([d32b03c](https://github.com/unlight/nestjs-graphql-prisma/commit/d32b03c76091c8ba2aa6757e147c43e556754de1)) ### [15.3.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.0...v15.3.1) (2022-05-10) - ### Bug Fixes -* **generate:** allow datamodels.type to be undefined ([faefc8f](https://github.com/unlight/nestjs-graphql-prisma/commit/faefc8f629378d9b6aeacdf6f8795590ad3e23ef)), closes [#106](https://github.com/unlight/nestjs-graphql-prisma/issues/106) +- **generate:** allow datamodels.type to be undefined ([faefc8f](https://github.com/unlight/nestjs-graphql-prisma/commit/faefc8f629378d9b6aeacdf6f8795590ad3e23ef)), closes [#106](https://github.com/unlight/nestjs-graphql-prisma/issues/106) ## [15.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.6...v15.3.0) (2022-05-06) - ### Features -* Allow add deprecation reason ([432e8f1](https://github.com/unlight/nestjs-graphql-prisma/commit/432e8f1f5b61f214df9e823cf63b2c455ac59e65)), closes [#104](https://github.com/unlight/nestjs-graphql-prisma/issues/104) +- Allow add deprecation reason ([432e8f1](https://github.com/unlight/nestjs-graphql-prisma/commit/432e8f1f5b61f214df9e823cf63b2c455ac59e65)), closes [#104](https://github.com/unlight/nestjs-graphql-prisma/issues/104) ### [15.2.6](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.5...v15.2.6) (2022-05-03) - ### Bug Fixes -* **hide field:** Fields in nested types ([2760d9e](https://github.com/unlight/nestjs-graphql-prisma/commit/2760d9e1cd27aae17be23887b9c437cbefb857c8)), closes [#80](https://github.com/unlight/nestjs-graphql-prisma/issues/80) +- **hide field:** Fields in nested types ([2760d9e](https://github.com/unlight/nestjs-graphql-prisma/commit/2760d9e1cd27aae17be23887b9c437cbefb857c8)), closes [#80](https://github.com/unlight/nestjs-graphql-prisma/issues/80) ### [15.2.5](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.4...v15.2.5) (2022-05-02) - ### Bug Fixes -* **hide field:** Self relation field ([5cb4311](https://github.com/unlight/nestjs-graphql-prisma/commit/5cb4311c5dc7250d3c133985a6b408a96f80a108)), closes [#103](https://github.com/unlight/nestjs-graphql-prisma/issues/103) +- **hide field:** Self relation field ([5cb4311](https://github.com/unlight/nestjs-graphql-prisma/commit/5cb4311c5dc7250d3c133985a6b408a96f80a108)), closes [#103](https://github.com/unlight/nestjs-graphql-prisma/issues/103) ### [15.2.4](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.3...v15.2.4) (2022-05-02) - ### Bug Fixes -* **mongodb:** Get matching input type from Json ([e16cad0](https://github.com/unlight/nestjs-graphql-prisma/commit/e16cad00a30d1aa7e31a9ef6b0318932c18f6131)) +- **mongodb:** Get matching input type from Json ([e16cad0](https://github.com/unlight/nestjs-graphql-prisma/commit/e16cad00a30d1aa7e31a9ef6b0318932c18f6131)) ### [15.2.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.2...v15.2.3) (2022-05-02) - ### Bug Fixes -* **mongodb:** Support composite types (behaves like model) ([d505ecb](https://github.com/unlight/nestjs-graphql-prisma/commit/d505ecb49dfc5e442c802503f461a45e8cf97cb8)), closes [#99](https://github.com/unlight/nestjs-graphql-prisma/issues/99) +- **mongodb:** Support composite types (behaves like model) ([d505ecb](https://github.com/unlight/nestjs-graphql-prisma/commit/d505ecb49dfc5e442c802503f461a45e8cf97cb8)), closes [#99](https://github.com/unlight/nestjs-graphql-prisma/issues/99) ### [15.2.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.1...v15.2.2) (2022-04-12) - ### Bug Fixes -* **other:** Fail model with single id field in mongodb ([4d19e9a](https://github.com/unlight/nestjs-graphql-prisma/commit/4d19e9a0f3a09a917fedc985e80681cea15e40ef)), closes [#96](https://github.com/unlight/nestjs-graphql-prisma/issues/96) +- **other:** Fail model with single id field in mongodb ([4d19e9a](https://github.com/unlight/nestjs-graphql-prisma/commit/4d19e9a0f3a09a917fedc985e80681cea15e40ef)), closes [#96](https://github.com/unlight/nestjs-graphql-prisma/issues/96) ### [15.2.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.2.0...v15.2.1) (2022-04-03) - ### Bug Fixes -* `tsConfigFilePath` is ignored ([d98e146](https://github.com/unlight/nestjs-graphql-prisma/commit/d98e1469d497b0f5546caf09c0a0092506471b25)), closes [#88](https://github.com/unlight/nestjs-graphql-prisma/issues/88) +- `tsConfigFilePath` is ignored ([d98e146](https://github.com/unlight/nestjs-graphql-prisma/commit/d98e1469d497b0f5546caf09c0a0092506471b25)), closes [#88](https://github.com/unlight/nestjs-graphql-prisma/issues/88) ## [15.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.1.1...v15.2.0) (2022-03-26) - ### Features -* Support reexport with custom output pattern ([2786894](https://github.com/unlight/nestjs-graphql-prisma/commit/27868946ada49d2cb72babc54197d4ccb2442dc0)) +- Support reexport with custom output pattern ([2786894](https://github.com/unlight/nestjs-graphql-prisma/commit/27868946ada49d2cb72babc54197d4ccb2442dc0)) ### [15.1.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.1.0...v15.1.1) (2022-03-21) - ### Bug Fixes -* Create bin script ([a6c2573](https://github.com/unlight/nestjs-graphql-prisma/commit/a6c257399f8f449ef0707ff1de8dd01588e70172)), closes [#92](https://github.com/unlight/nestjs-graphql-prisma/issues/92) +- Create bin script ([a6c2573](https://github.com/unlight/nestjs-graphql-prisma/commit/a6c257399f8f449ef0707ff1de8dd01588e70172)), closes [#92](https://github.com/unlight/nestjs-graphql-prisma/issues/92) ## [15.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.0.0...v15.1.0) (2022-03-16) - ### Features -* Use Prisma.Decimal typescript type ([0395e5f](https://github.com/unlight/nestjs-graphql-prisma/commit/0395e5f47857800ba7b5d31e28dc99eebc194582)) +- Use Prisma.Decimal typescript type ([0395e5f](https://github.com/unlight/nestjs-graphql-prisma/commit/0395e5f47857800ba7b5d31e28dc99eebc194582)) ## [15.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.7.1...v15.0.0) (2022-03-15) - ### âš  BREAKING CHANGES -* **other:** defaults `input` and `output` in PropertyType to false +- **other:** defaults `input` and `output` in PropertyType to false ### Bug Fixes -* **other:** Makes proptype resolution behave like fieldtype ([850018a](https://github.com/unlight/nestjs-graphql-prisma/commit/850018adf52dc909d935fe2a24b12f48d0a94904)) +- **other:** Makes proptype resolution behave like fieldtype ([850018a](https://github.com/unlight/nestjs-graphql-prisma/commit/850018adf52dc909d935fe2a24b12f48d0a94904)) ### [14.7.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.7.0...v14.7.1) (2022-03-12) - ### Bug Fixes -* Remove unused classes when both noAtomicOperations and emitSingle enabled ([41ce3c1](https://github.com/unlight/nestjs-graphql-prisma/commit/41ce3c1ddaa276b3c6bce4a50b5083353b276fb8)), closes [#89](https://github.com/unlight/nestjs-graphql-prisma/issues/89) +- Remove unused classes when both noAtomicOperations and emitSingle enabled ([41ce3c1](https://github.com/unlight/nestjs-graphql-prisma/commit/41ce3c1ddaa276b3c6bce4a50b5083353b276fb8)), closes [#89](https://github.com/unlight/nestjs-graphql-prisma/issues/89) ## [14.7.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.6.2...v14.7.0) (2022-03-08) - ### Features -* **configuration:** Allow to map prisma scalars to custom graphql scalars ([59300e1](https://github.com/unlight/nestjs-graphql-prisma/commit/59300e17d36c32d09e1c8a923cb409f95810f048)), closes [#87](https://github.com/unlight/nestjs-graphql-prisma/issues/87) +- **configuration:** Allow to map prisma scalars to custom graphql scalars ([59300e1](https://github.com/unlight/nestjs-graphql-prisma/commit/59300e17d36c32d09e1c8a923cb409f95810f048)), closes [#87](https://github.com/unlight/nestjs-graphql-prisma/issues/87) ### [14.6.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.6.1...v14.6.2) (2022-02-20) - ### Bug Fixes -* Make fields in count output undefinable ([8e3d85c](https://github.com/unlight/nestjs-graphql-prisma/commit/8e3d85c1cd3f9c2453d8c54675f7dca798954d43)) +- Make fields in count output undefinable ([8e3d85c](https://github.com/unlight/nestjs-graphql-prisma/commit/8e3d85c1cd3f9c2453d8c54675f7dca798954d43)) ### [14.6.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.6.0...v14.6.1) (2021-11-25) - ### Bug Fixes -* **hide field:** Missing import of enum type ([b067142](https://github.com/unlight/nestjs-graphql-prisma/commit/b06714292e6a7ae6b9bb74d18cf591836dc8cf01)), closes [#73](https://github.com/unlight/nestjs-graphql-prisma/issues/73) +- **hide field:** Missing import of enum type ([b067142](https://github.com/unlight/nestjs-graphql-prisma/commit/b06714292e6a7ae6b9bb74d18cf591836dc8cf01)), closes [#73](https://github.com/unlight/nestjs-graphql-prisma/issues/73) ## [14.6.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.5.0...v14.6.0) (2021-10-16) - ### Features -* **custom decorators:** Allow attach `@Directive()` ([d6faef0](https://github.com/unlight/nestjs-graphql-prisma/commit/d6faef073f33f97b48e99619b737f5324e3e4dd7)) +- **custom decorators:** Allow attach `@Directive()` ([d6faef0](https://github.com/unlight/nestjs-graphql-prisma/commit/d6faef073f33f97b48e99619b737f5324e3e4dd7)) ## [14.5.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.4.1...v14.5.0) (2021-10-12) - ### Features -* **custom decorators:** Allow apply custom decorator on models ([52f090a](https://github.com/unlight/nestjs-graphql-prisma/commit/52f090a55154bca3b0c9030cf7dff6f1599f6f94)), closes [#63](https://github.com/unlight/nestjs-graphql-prisma/issues/63) +- **custom decorators:** Allow apply custom decorator on models ([52f090a](https://github.com/unlight/nestjs-graphql-prisma/commit/52f090a55154bca3b0c9030cf7dff6f1599f6f94)), closes [#63](https://github.com/unlight/nestjs-graphql-prisma/issues/63) ### [14.4.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.4.0...v14.4.1) (2021-10-05) - ### Bug Fixes -* Missing import in hidden type ([29e5a8e](https://github.com/unlight/nestjs-graphql-prisma/commit/29e5a8e1cda7dd47308f0b5f0cecef37efb0aa8f)), closes [#62](https://github.com/unlight/nestjs-graphql-prisma/issues/62) +- Missing import in hidden type ([29e5a8e](https://github.com/unlight/nestjs-graphql-prisma/commit/29e5a8e1cda7dd47308f0b5f0cecef37efb0aa8f)), closes [#62](https://github.com/unlight/nestjs-graphql-prisma/issues/62) ## [14.4.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.3.0...v14.4.0) (2021-09-30) - ### Features -* **match:** Allows `match` expressions in `FieldType` and `PropertyType` ([#60](https://github.com/unlight/nestjs-graphql-prisma/issues/60)) ([a9b0e46](https://github.com/unlight/nestjs-graphql-prisma/commit/a9b0e46ceda8a2c6ddaaccf3c8a987a672b91912)) +- **match:** Allows `match` expressions in `FieldType` and `PropertyType` ([#60](https://github.com/unlight/nestjs-graphql-prisma/issues/60)) ([a9b0e46](https://github.com/unlight/nestjs-graphql-prisma/commit/a9b0e46ceda8a2c6ddaaccf3c8a987a672b91912)) ## [14.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.2.2...v14.3.0) (2021-09-28) - ### Features -* **require single uniq filter:** New `requireSingleFieldsInWhereUniqueInput` generator setting ([7ee73eb](https://github.com/unlight/nestjs-graphql-prisma/commit/7ee73eb69f57a55a6b7244377fabc11bf17005ea)), closes [#58](https://github.com/unlight/nestjs-graphql-prisma/issues/58) +- **require single uniq filter:** New `requireSingleFieldsInWhereUniqueInput` generator setting ([7ee73eb](https://github.com/unlight/nestjs-graphql-prisma/commit/7ee73eb69f57a55a6b7244377fabc11bf17005ea)), closes [#58](https://github.com/unlight/nestjs-graphql-prisma/issues/58) ### [14.2.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.2.1...v14.2.2) (2021-09-27) - ### Bug Fixes -* **compatibility:** Add typescript null type for optional fields in model ([df0b9de](https://github.com/unlight/nestjs-graphql-prisma/commit/df0b9de53a003bc32fbc3ae1471be3681e55a551)), closes [#57](https://github.com/unlight/nestjs-graphql-prisma/issues/57) +- **compatibility:** Add typescript null type for optional fields in model ([df0b9de](https://github.com/unlight/nestjs-graphql-prisma/commit/df0b9de53a003bc32fbc3ae1471be3681e55a551)), closes [#57](https://github.com/unlight/nestjs-graphql-prisma/issues/57) ### [14.2.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.2.0...v14.2.1) (2021-09-24) - ### Bug Fixes -* **custom decorators:** FieldType mapping for output types ([c036a10](https://github.com/unlight/nestjs-graphql-prisma/commit/c036a103f7b16d2a9bcb9a0c36aa7948a4f79c09)), closes [#55](https://github.com/unlight/nestjs-graphql-prisma/issues/55) +- **custom decorators:** FieldType mapping for output types ([c036a10](https://github.com/unlight/nestjs-graphql-prisma/commit/c036a103f7b16d2a9bcb9a0c36aa7948a4f79c09)), closes [#55](https://github.com/unlight/nestjs-graphql-prisma/issues/55) ## [14.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.1.0...v14.2.0) (2021-09-23) - ### Features -* **custom decorators:** Abstract and rename type ([eb68ca6](https://github.com/unlight/nestjs-graphql-prisma/commit/eb68ca6288b74cd797d9d0c584b33ddcf540b066)), closes [#40](https://github.com/unlight/nestjs-graphql-prisma/issues/40) -* **custom decorators:** New `decorate` generator setting ([c5e14b7](https://github.com/unlight/nestjs-graphql-prisma/commit/c5e14b7e8e59fffcd57ab5b6dff973cc48b37f14)), closes [#48](https://github.com/unlight/nestjs-graphql-prisma/issues/48) - +- **custom decorators:** Abstract and rename type ([eb68ca6](https://github.com/unlight/nestjs-graphql-prisma/commit/eb68ca6288b74cd797d9d0c584b33ddcf540b066)), closes [#40](https://github.com/unlight/nestjs-graphql-prisma/issues/40) +- **custom decorators:** New `decorate` generator setting ([c5e14b7](https://github.com/unlight/nestjs-graphql-prisma/commit/c5e14b7e8e59fffcd57ab5b6dff973cc48b37f14)), closes [#48](https://github.com/unlight/nestjs-graphql-prisma/issues/48) ### Bug Fixes -* Get model name for CompoundUniqueInput ([f44aa85](https://github.com/unlight/nestjs-graphql-prisma/commit/f44aa858a0459e61d1e13f19c0fe3317e6d0d063)), closes [#53](https://github.com/unlight/nestjs-graphql-prisma/issues/53) +- Get model name for CompoundUniqueInput ([f44aa85](https://github.com/unlight/nestjs-graphql-prisma/commit/f44aa858a0459e61d1e13f19c0fe3317e6d0d063)), closes [#53](https://github.com/unlight/nestjs-graphql-prisma/issues/53) ### [14.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v14.0.0...v14.0.1) (2021-09-07) - ### Bug Fixes -* Getting json nullable enum ([d001714](https://github.com/unlight/nestjs-graphql-prisma/commit/d0017146a4543a8178972138fecbdabf58082d92)) +- Getting json nullable enum ([d001714](https://github.com/unlight/nestjs-graphql-prisma/commit/d0017146a4543a8178972138fecbdabf58082d92)) ## [14.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v13.0.0...v14.0.0) (2021-09-06) - ### âš  BREAKING CHANGES -* Configuration `useInputType` changed underlying library for pattern matching -https://github.com/axtgr/outmatch, prefix renamed to `match:` +- Configuration `useInputType` changed underlying library for pattern matching + https://github.com/axtgr/outmatch, prefix renamed to `match:` ### Code Refactoring -* Replace `matcher` by `outmatch` ([fa7c003](https://github.com/unlight/nestjs-graphql-prisma/commit/fa7c0036b7bd1209261cae3f5f9adbb8dde4f256)) +- Replace `matcher` by `outmatch` ([fa7c003](https://github.com/unlight/nestjs-graphql-prisma/commit/fa7c0036b7bd1209261cae3f5f9adbb8dde4f256)) ## [13.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.2.1...v13.0.0) (2021-08-28) - ### âš  BREAKING CHANGES -* Removed deprecated setting `types_*` -* Model is regenerating ignoring existing data, any manual changes will be discarded -* Enum is regerating now, any manual changes will be discarded +- Removed deprecated setting `types_*` +- Model is regenerating ignoring existing data, any manual changes will be discarded +- Enum is regerating now, any manual changes will be discarded ### Features -* **configuration:** Option to disable ID graphql type ([8474da7](https://github.com/unlight/nestjs-graphql-prisma/commit/8474da7c358d0e48f19c9f9db3093770396f20d7)), closes [#44](https://github.com/unlight/nestjs-graphql-prisma/issues/44) - +- **configuration:** Option to disable ID graphql type ([8474da7](https://github.com/unlight/nestjs-graphql-prisma/commit/8474da7c358d0e48f19c9f9db3093770396f20d7)), closes [#44](https://github.com/unlight/nestjs-graphql-prisma/issues/44) ### Bug Fixes -* Regenerate enum ignoring existing values ([c581bc7](https://github.com/unlight/nestjs-graphql-prisma/commit/c581bc7c376921c012a6a24bf30339e578256044)), closes [#45](https://github.com/unlight/nestjs-graphql-prisma/issues/45) -* Regenerate model ignoring existing data ([62ffd83](https://github.com/unlight/nestjs-graphql-prisma/commit/62ffd83064c543f5285f37742e984b7efd9775b1)), closes [#45](https://github.com/unlight/nestjs-graphql-prisma/issues/45) - +- Regenerate enum ignoring existing values ([c581bc7](https://github.com/unlight/nestjs-graphql-prisma/commit/c581bc7c376921c012a6a24bf30339e578256044)), closes [#45](https://github.com/unlight/nestjs-graphql-prisma/issues/45) +- Regenerate model ignoring existing data ([62ffd83](https://github.com/unlight/nestjs-graphql-prisma/commit/62ffd83064c543f5285f37742e984b7efd9775b1)), closes [#45](https://github.com/unlight/nestjs-graphql-prisma/issues/45) ### Miscellaneous Chores -* Removed deprecated setting `types_*` ([3491398](https://github.com/unlight/nestjs-graphql-prisma/commit/349139894b087c37b521c6e472c1d34ee4997e45)) +- Removed deprecated setting `types_*` ([3491398](https://github.com/unlight/nestjs-graphql-prisma/commit/349139894b087c37b521c6e472c1d34ee4997e45)) ### [12.2.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.2.0...v12.2.1) (2021-07-23) - ### Bug Fixes -* **compatibility:** Make model types compatible from both sides Prisma and GraphQL ([c015f12](https://github.com/unlight/nestjs-graphql-prisma/commit/c015f12307541efdb833d06b4d26a9aadd3925e8)), closes [#41](https://github.com/unlight/nestjs-graphql-prisma/issues/41) -* Get model name from `{Model}AggregateArgs` type ([0703f7e](https://github.com/unlight/nestjs-graphql-prisma/commit/0703f7ecfd546717cd6c7b4517eeace9362089d4)) +- **compatibility:** Make model types compatible from both sides Prisma and GraphQL ([c015f12](https://github.com/unlight/nestjs-graphql-prisma/commit/c015f12307541efdb833d06b4d26a9aadd3925e8)), closes [#41](https://github.com/unlight/nestjs-graphql-prisma/issues/41) +- Get model name from `{Model}AggregateArgs` type ([0703f7e](https://github.com/unlight/nestjs-graphql-prisma/commit/0703f7ecfd546717cd6c7b4517eeace9362089d4)) ## [12.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.1.0...v12.2.0) (2021-07-06) - ### Features -* Duplicate comments in jsdoc ([002a055](https://github.com/unlight/nestjs-graphql-prisma/commit/002a0552096c6ffdd8abc9fec8b7e80b9209c288)), closes [#39](https://github.com/unlight/nestjs-graphql-prisma/issues/39) +- Duplicate comments in jsdoc ([002a055](https://github.com/unlight/nestjs-graphql-prisma/commit/002a0552096c6ffdd8abc9fec8b7e80b9209c288)), closes [#39](https://github.com/unlight/nestjs-graphql-prisma/issues/39) ## [12.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.0.3...v12.1.0) (2021-07-02) - ### Features -* **hide field:** Allow hide field in type matching by pattern ([6c05123](https://github.com/unlight/nestjs-graphql-prisma/commit/6c05123b9454e649c5fe4298d52d57729c3c5453)), closes [#37](https://github.com/unlight/nestjs-graphql-prisma/issues/37) +- **hide field:** Allow hide field in type matching by pattern ([6c05123](https://github.com/unlight/nestjs-graphql-prisma/commit/6c05123b9454e649c5fe4298d52d57729c3c5453)), closes [#37](https://github.com/unlight/nestjs-graphql-prisma/issues/37) ### [12.0.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.0.2...v12.0.3) (2021-06-05) - ### Bug Fixes -* **custom decorators:** `FieldType` respect input/output in generator settings ([a075e00](https://github.com/unlight/nestjs-graphql-prisma/commit/a075e0075e9c60530bd3a90edfc0a8c245371b7e)), closes [#34](https://github.com/unlight/nestjs-graphql-prisma/issues/34) +- **custom decorators:** `FieldType` respect input/output in generator settings ([a075e00](https://github.com/unlight/nestjs-graphql-prisma/commit/a075e0075e9c60530bd3a90edfc0a8c245371b7e)), closes [#34](https://github.com/unlight/nestjs-graphql-prisma/issues/34) ### [12.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.0.1...v12.0.2) (2021-06-05) - ### Bug Fixes -* **other:** Ignore `@HideField()` for output count fields ([ce3eec2](https://github.com/unlight/nestjs-graphql-prisma/commit/ce3eec247c05fb771ea4f39ae1fbd136aa2bd6f4)), closes [#33](https://github.com/unlight/nestjs-graphql-prisma/issues/33) +- **other:** Ignore `@HideField()` for output count fields ([ce3eec2](https://github.com/unlight/nestjs-graphql-prisma/commit/ce3eec247c05fb771ea4f39ae1fbd136aa2bd6f4)), closes [#33](https://github.com/unlight/nestjs-graphql-prisma/issues/33) ### [12.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v12.0.0...v12.0.1) (2021-05-22) - ### Bug Fixes -* Remove empty input types ([20c4f46](https://github.com/unlight/nestjs-graphql-prisma/commit/20c4f463ed736b9f4c73247b06e5921c20332f2d)), closes [#26](https://github.com/unlight/nestjs-graphql-prisma/issues/26) +- Remove empty input types ([20c4f46](https://github.com/unlight/nestjs-graphql-prisma/commit/20c4f463ed736b9f4c73247b06e5921c20332f2d)), closes [#26](https://github.com/unlight/nestjs-graphql-prisma/issues/26) ## [12.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.5...v12.0.0) (2021-05-20) - ### âš  BREAKING CHANGES -* **compatibility:** Possible breaking change aggregation keywords use underscore as prefix to prevent field clashes +- **compatibility:** Possible breaking change aggregation keywords use underscore as prefix to prevent field clashes ### Features -* `useInputType` config option allow to choose input type ([54eeb1c](https://github.com/unlight/nestjs-graphql-prisma/commit/54eeb1c5bfc80df7705ab124baac715b61f00dda)) - +- `useInputType` config option allow to choose input type ([54eeb1c](https://github.com/unlight/nestjs-graphql-prisma/commit/54eeb1c5bfc80df7705ab124baac715b61f00dda)) ### Bug Fixes -* Make types same as in prisma ([1f5bc4e](https://github.com/unlight/nestjs-graphql-prisma/commit/1f5bc4e55bb5802feb1be5c21dca945f38318e57)) -* **compatibility:** Rename aggregation keywords ([83491c8](https://github.com/unlight/nestjs-graphql-prisma/commit/83491c85d455b725f30caa033c016cc0b22cb965)) +- Make types same as in prisma ([1f5bc4e](https://github.com/unlight/nestjs-graphql-prisma/commit/1f5bc4e55bb5802feb1be5c21dca945f38318e57)) +- **compatibility:** Rename aggregation keywords ([83491c8](https://github.com/unlight/nestjs-graphql-prisma/commit/83491c85d455b725f30caa033c016cc0b22cb965)) ### [11.4.5](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.4...v11.4.5) (2021-05-13) - ### Bug Fixes -* Combine scalar filters on nullable list ([8f306e8](https://github.com/unlight/nestjs-graphql-prisma/commit/8f306e8c43fc557a9d58c6ae14a9787167cc2131)) -* Get graphql type for scalar list ([97a1ae4](https://github.com/unlight/nestjs-graphql-prisma/commit/97a1ae482edaff8ed873c65ab4f0ccb2ce1c51c5)), closes [#30](https://github.com/unlight/nestjs-graphql-prisma/issues/30) +- Combine scalar filters on nullable list ([8f306e8](https://github.com/unlight/nestjs-graphql-prisma/commit/8f306e8c43fc557a9d58c6ae14a9787167cc2131)) +- Get graphql type for scalar list ([97a1ae4](https://github.com/unlight/nestjs-graphql-prisma/commit/97a1ae482edaff8ed873c65ab4f0ccb2ce1c51c5)), closes [#30](https://github.com/unlight/nestjs-graphql-prisma/issues/30) ### [11.4.4](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.3...v11.4.4) (2021-05-11) - ### Bug Fixes -* **custom decorators:** Prevent applying on aggregate inputs ([9b21970](https://github.com/unlight/nestjs-graphql-prisma/commit/9b2197079b910ffdf0f895649e59028622e7025a)) +- **custom decorators:** Prevent applying on aggregate inputs ([9b21970](https://github.com/unlight/nestjs-graphql-prisma/commit/9b2197079b910ffdf0f895649e59028622e7025a)) ### [11.4.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.2...v11.4.3) (2021-05-11) - ### Bug Fixes -* **custom decorators:** Reget decorator full name ([9e279bf](https://github.com/unlight/nestjs-graphql-prisma/commit/9e279bfeb72ff7fbc752c6e7469427c0e5d86a50)), closes [#29](https://github.com/unlight/nestjs-graphql-prisma/issues/29) +- **custom decorators:** Reget decorator full name ([9e279bf](https://github.com/unlight/nestjs-graphql-prisma/commit/9e279bfeb72ff7fbc752c6e7469427c0e5d86a50)), closes [#29](https://github.com/unlight/nestjs-graphql-prisma/issues/29) ### [11.4.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.1...v11.4.2) (2021-05-11) - ### Bug Fixes -* **custom decorators:** Missed imports when enabled `emitSingle` ([bf55996](https://github.com/unlight/nestjs-graphql-prisma/commit/bf55996e4c23c61300362f9c04d5bfd67a683aea)), closes [#28](https://github.com/unlight/nestjs-graphql-prisma/issues/28) +- **custom decorators:** Missed imports when enabled `emitSingle` ([bf55996](https://github.com/unlight/nestjs-graphql-prisma/commit/bf55996e4c23c61300362f9c04d5bfd67a683aea)), closes [#28](https://github.com/unlight/nestjs-graphql-prisma/issues/28) ### [11.4.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.4.0...v11.4.1) (2021-05-09) - ### Bug Fixes -* Multiple namespace imports ([e096af0](https://github.com/unlight/nestjs-graphql-prisma/commit/e096af0fd28a7bc3615cfbd1ebe1052f74bbf30f)), closes [#27](https://github.com/unlight/nestjs-graphql-prisma/issues/27) +- Multiple namespace imports ([e096af0](https://github.com/unlight/nestjs-graphql-prisma/commit/e096af0fd28a7bc3615cfbd1ebe1052f74bbf30f)), closes [#27](https://github.com/unlight/nestjs-graphql-prisma/issues/27) ## [11.4.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.3.1...v11.4.0) (2021-04-28) - ### Features -* **configuration:** Allow purge output folder ([a360869](https://github.com/unlight/nestjs-graphql-prisma/commit/a360869fba2685ee5e463fcb6781039ec88b2356)), closes [#7](https://github.com/unlight/nestjs-graphql-prisma/issues/7) +- **configuration:** Allow purge output folder ([a360869](https://github.com/unlight/nestjs-graphql-prisma/commit/a360869fba2685ee5e463fcb6781039ec88b2356)), closes [#7](https://github.com/unlight/nestjs-graphql-prisma/issues/7) ### [11.3.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.3.0...v11.3.1) (2021-04-25) - ### Bug Fixes -* Existence check of tsconfig ([4d523d2](https://github.com/unlight/nestjs-graphql-prisma/commit/4d523d2d99b5ab73a7de680a4ee603748a17c325)), closes [#23](https://github.com/unlight/nestjs-graphql-prisma/issues/23) +- Existence check of tsconfig ([4d523d2](https://github.com/unlight/nestjs-graphql-prisma/commit/4d523d2d99b5ab73a7de680a4ee603748a17c325)), closes [#23](https://github.com/unlight/nestjs-graphql-prisma/issues/23) ## [11.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.2.0...v11.3.0) (2021-04-25) - ### Features -* @PropertyType() to replace types_ configuration ([4a7313d](https://github.com/unlight/nestjs-graphql-prisma/commit/4a7313dcab940093b238c050405a935c92c26248)) - +- @PropertyType() to replace types\_ configuration ([4a7313d](https://github.com/unlight/nestjs-graphql-prisma/commit/4a7313dcab940093b238c050405a935c92c26248)) ### Bug Fixes -* Model types mismatch ([ffe70b6](https://github.com/unlight/nestjs-graphql-prisma/commit/ffe70b69a3fa1661c5f1beed9bc490ccd2f292c4)), closes [#21](https://github.com/unlight/nestjs-graphql-prisma/issues/21) -* Prisma client generator is optional ([4ce28f1](https://github.com/unlight/nestjs-graphql-prisma/commit/4ce28f153ef8fd9e27066a8f2a0402c27ad4d679)), closes [#25](https://github.com/unlight/nestjs-graphql-prisma/issues/25) +- Model types mismatch ([ffe70b6](https://github.com/unlight/nestjs-graphql-prisma/commit/ffe70b69a3fa1661c5f1beed9bc490ccd2f292c4)), closes [#21](https://github.com/unlight/nestjs-graphql-prisma/issues/21) +- Prisma client generator is optional ([4ce28f1](https://github.com/unlight/nestjs-graphql-prisma/commit/4ce28f153ef8fd9e27066a8f2a0402c27ad4d679)), closes [#25](https://github.com/unlight/nestjs-graphql-prisma/issues/25) ## [11.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.1.0...v11.2.0) (2021-04-16) - ### Features -* Alternative default import configuration ([4ae1b82](https://github.com/unlight/nestjs-graphql-prisma/commit/4ae1b82d90e1af7b55db25f63054cf7f6630272b)) -* Apply custom decorators on models ([34196b3](https://github.com/unlight/nestjs-graphql-prisma/commit/34196b348ecb9f5a15c8add2b8a5346be85f24a3)) +- Alternative default import configuration ([4ae1b82](https://github.com/unlight/nestjs-graphql-prisma/commit/4ae1b82d90e1af7b55db25f63054cf7f6630272b)) +- Apply custom decorators on models ([34196b3](https://github.com/unlight/nestjs-graphql-prisma/commit/34196b348ecb9f5a15c8add2b8a5346be85f24a3)) ## [11.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.0.3...v11.1.0) (2021-04-07) - ### Features -* Custom decorators ([b14f0fe](https://github.com/unlight/nestjs-graphql-prisma/commit/b14f0fee216e6d6eb025166ad30e3a2f18c2d653)) - +- Custom decorators ([b14f0fe](https://github.com/unlight/nestjs-graphql-prisma/commit/b14f0fee216e6d6eb025166ad30e3a2f18c2d653)) ### Bug Fixes -* Custom type for output types ([c9ae9e9](https://github.com/unlight/nestjs-graphql-prisma/commit/c9ae9e91d4df358c7c0d408b10f78edddaa7686b)) +- Custom type for output types ([c9ae9e9](https://github.com/unlight/nestjs-graphql-prisma/commit/c9ae9e91d4df358c7c0d408b10f78edddaa7686b)) ### [11.0.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.0.2...v11.0.3) (2021-04-01) - ### Bug Fixes -* Duplicate import ([2a18c19](https://github.com/unlight/nestjs-graphql-prisma/commit/2a18c194a0fd61207fe6b583c6b14ce9889e45d2)), closes [#18](https://github.com/unlight/nestjs-graphql-prisma/issues/18) +- Duplicate import ([2a18c19](https://github.com/unlight/nestjs-graphql-prisma/commit/2a18c194a0fd61207fe6b583c6b14ce9889e45d2)), closes [#18](https://github.com/unlight/nestjs-graphql-prisma/issues/18) ### [11.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.0.1...v11.0.2) (2021-03-31) - ### Bug Fixes -* Emit metadata and enabled `emitSingle` cause TDZ issue ([0d89d81](https://github.com/unlight/nestjs-graphql-prisma/commit/0d89d81fa96b29df1cd23cb81deb67f73ec70975)), closes [#16](https://github.com/unlight/nestjs-graphql-prisma/issues/16) +- Emit metadata and enabled `emitSingle` cause TDZ issue ([0d89d81](https://github.com/unlight/nestjs-graphql-prisma/commit/0d89d81fa96b29df1cd23cb81deb67f73ec70975)), closes [#16](https://github.com/unlight/nestjs-graphql-prisma/issues/16) ### [11.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v11.0.0...v11.0.1) (2021-03-31) - ### Bug Fixes -* Source file already exists error ([121a486](https://github.com/unlight/nestjs-graphql-prisma/commit/121a48626983a2a9f52f2cb6db3af3b7c865c859)) +- Source file already exists error ([121a486](https://github.com/unlight/nestjs-graphql-prisma/commit/121a48626983a2a9f52f2cb6db3af3b7c865c859)) ## [11.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.3.0...v11.0.0) (2021-03-31) - ### âš  BREAKING CHANGES -* Adapted to Prisma 2.20 +- Adapted to Prisma 2.20 ### Bug Fixes -* Adapted to Prisma 2.20 ([c5f040d](https://github.com/unlight/nestjs-graphql-prisma/commit/c5f040da249681363c1e6267f83275955ad682c8)), closes [#17](https://github.com/unlight/nestjs-graphql-prisma/issues/17) +- Adapted to Prisma 2.20 ([c5f040d](https://github.com/unlight/nestjs-graphql-prisma/commit/c5f040da249681363c1e6267f83275955ad682c8)), closes [#17](https://github.com/unlight/nestjs-graphql-prisma/issues/17) ## [10.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.2.0...v10.3.0) (2021-03-29) - ### Features -* Allow generate compiled files or merged to single file ([095f975](https://github.com/unlight/nestjs-graphql-prisma/commit/095f975ceb9a6555e95efc33cd00f9ddaa33d7f9)), closes [#15](https://github.com/unlight/nestjs-graphql-prisma/issues/15) +- Allow generate compiled files or merged to single file ([095f975](https://github.com/unlight/nestjs-graphql-prisma/commit/095f975ceb9a6555e95efc33cd00f9ddaa33d7f9)), closes [#15](https://github.com/unlight/nestjs-graphql-prisma/issues/15) ## [10.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.1.3...v10.2.0) (2021-03-19) - ### Features -* Extend `reExport` option ([3d5475b](https://github.com/unlight/nestjs-graphql-prisma/commit/3d5475b7029e425630b8538aee7a4a249d950840)) +- Extend `reExport` option ([3d5475b](https://github.com/unlight/nestjs-graphql-prisma/commit/3d5475b7029e425630b8538aee7a4a249d950840)) ### [10.1.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.1.2...v10.1.3) (2021-03-19) - ### Bug Fixes -* Hide field for model type ([54571d2](https://github.com/unlight/nestjs-graphql-prisma/commit/54571d2d347c31905d8df5a62e2b057ec8dee18c)) +- Hide field for model type ([54571d2](https://github.com/unlight/nestjs-graphql-prisma/commit/54571d2d347c31905d8df5a62e2b057ec8dee18c)) ### [10.1.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.1.1...v10.1.2) (2021-03-17) - ### Bug Fixes -* Re-export iteration process fail ([bad1034](https://github.com/unlight/nestjs-graphql-prisma/commit/bad10341f60c04fa1d57f0b59b6d10a33e93a1da)) +- Re-export iteration process fail ([bad1034](https://github.com/unlight/nestjs-graphql-prisma/commit/bad10341f60c04fa1d57f0b59b6d10a33e93a1da)) ### [10.1.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.1.0...v10.1.1) (2021-03-17) - ### Bug Fixes -* Added more keywords for detection model name ([51c836e](https://github.com/unlight/nestjs-graphql-prisma/commit/51c836e92488be8af3e73038ec63c2c2d498a629)) +- Added more keywords for detection model name ([51c836e](https://github.com/unlight/nestjs-graphql-prisma/commit/51c836e92488be8af3e73038ec63c2c2d498a629)) ## [10.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.0.1...v10.1.0) (2021-03-13) - ### Features -* Allow to configure path to `tsconfig.json` ([ead4411](https://github.com/unlight/nestjs-graphql-prisma/commit/ead44117565e6654128b8209adb3046b1134ae82)) -* Validate `outputFilePattern` ([3240a73](https://github.com/unlight/nestjs-graphql-prisma/commit/3240a7344033a943b9b6433b24a8c779fe84b9f7)) - +- Allow to configure path to `tsconfig.json` ([ead4411](https://github.com/unlight/nestjs-graphql-prisma/commit/ead44117565e6654128b8209adb3046b1134ae82)) +- Validate `outputFilePattern` ([3240a73](https://github.com/unlight/nestjs-graphql-prisma/commit/3240a7344033a943b9b6433b24a8c779fe84b9f7)) ### Bug Fixes -* Save files without intermediate layer ([4a07bea](https://github.com/unlight/nestjs-graphql-prisma/commit/4a07bea7d9657549f51b7a09910028e1815dbecb)) - +- Save files without intermediate layer ([4a07bea](https://github.com/unlight/nestjs-graphql-prisma/commit/4a07bea7d9657549f51b7a09910028e1815dbecb)) ### Performance Improvements -* Generation of inputs/outputs ([4604160](https://github.com/unlight/nestjs-graphql-prisma/commit/46041608bbd7e16bae5b2464890c50ceccdaf5c6)) +- Generation of inputs/outputs ([4604160](https://github.com/unlight/nestjs-graphql-prisma/commit/46041608bbd7e16bae5b2464890c50ceccdaf5c6)) ### [10.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.0.1...v10.0.2) (2021-03-13) - ### Bug Fixes -* Added more keywords for detection model name ([51c836e](https://github.com/unlight/nestjs-graphql-prisma/commit/51c836e92488be8af3e73038ec63c2c2d498a629)) +- Added more keywords for detection model name ([51c836e](https://github.com/unlight/nestjs-graphql-prisma/commit/51c836e92488be8af3e73038ec63c2c2d498a629)) ## [10.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v10.0.0...v10.0.1) (2021-03-04) - ### Bug Fixes -* BigInt property type in lower ([19ace4e](https://github.com/unlight/nestjs-graphql-prisma/commit/19ace4e4342e6e60f42f863b171fc4c2953d9a16)) -* Conflict with models ending with `Output` ([a08d4c4](https://github.com/unlight/nestjs-graphql-prisma/commit/a08d4c4f782e866cbb555308f8010c050baea833)), closes [#10](https://github.com/unlight/nestjs-graphql-prisma/issues/10) +- BigInt property type in lower ([19ace4e](https://github.com/unlight/nestjs-graphql-prisma/commit/19ace4e4342e6e60f42f863b171fc4c2953d9a16)) +- Conflict with models ending with `Output` ([a08d4c4](https://github.com/unlight/nestjs-graphql-prisma/commit/a08d4c4f782e866cbb555308f8010c050baea833)), closes [#10](https://github.com/unlight/nestjs-graphql-prisma/issues/10) # [10.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v9.0.0...v10.0.0) (2021-03-01) - ### Bug Fixes -* Generate correct json graphql type ([c6d8d46](https://github.com/unlight/nestjs-graphql-prisma/commit/c6d8d46e3cb1627f07a33f2989272911283ddc01)) -* Json type changed to `Record` ([2877be7](https://github.com/unlight/nestjs-graphql-prisma/commit/2877be7d97827215f984c95301815a905cc015c6)) -* Renamed config option ([d989cfe](https://github.com/unlight/nestjs-graphql-prisma/commit/d989cfeba9a8daac2ce21e0a3e690c5c24d42e3c)) - - -* refactor!: Renamed token in `outputFilePattern` template ([95d4629](https://github.com/unlight/nestjs-graphql-prisma/commit/95d4629e1ae887cb962580aa4ab3f2d300003fe8)) -* refactor!: Removed `renameZooTypes` config option ([71bfb68](https://github.com/unlight/nestjs-graphql-prisma/commit/71bfb68e1d4c86ba25148e1f5dabd80b365db0c0)) -* chore!: Renamed config option `atomicNumberOperation` to `noAtomicOperations` ([6078eb9](https://github.com/unlight/nestjs-graphql-prisma/commit/6078eb9187ef134fd8e711d5a0dd6430d5f5cee0)) +- Generate correct json graphql type ([c6d8d46](https://github.com/unlight/nestjs-graphql-prisma/commit/c6d8d46e3cb1627f07a33f2989272911283ddc01)) +- Json type changed to `Record` ([2877be7](https://github.com/unlight/nestjs-graphql-prisma/commit/2877be7d97827215f984c95301815a905cc015c6)) +- Renamed config option ([d989cfe](https://github.com/unlight/nestjs-graphql-prisma/commit/d989cfeba9a8daac2ce21e0a3e690c5c24d42e3c)) +- refactor!: Renamed token in `outputFilePattern` template ([95d4629](https://github.com/unlight/nestjs-graphql-prisma/commit/95d4629e1ae887cb962580aa4ab3f2d300003fe8)) +- refactor!: Removed `renameZooTypes` config option ([71bfb68](https://github.com/unlight/nestjs-graphql-prisma/commit/71bfb68e1d4c86ba25148e1f5dabd80b365db0c0)) +- chore!: Renamed config option `atomicNumberOperation` to `noAtomicOperations` ([6078eb9](https://github.com/unlight/nestjs-graphql-prisma/commit/6078eb9187ef134fd8e711d5a0dd6430d5f5cee0)) ### Code Refactoring -* Combine scalar filters ([789cfeb](https://github.com/unlight/nestjs-graphql-prisma/commit/789cfebe970de7e6cdfca67105e37cdea4464d08)) - +- Combine scalar filters ([789cfeb](https://github.com/unlight/nestjs-graphql-prisma/commit/789cfebe970de7e6cdfca67105e37cdea4464d08)) ### Features -* Ability to hide field in schema ([a222955](https://github.com/unlight/nestjs-graphql-prisma/commit/a222955dac6fb85dce96a62c3661997a979ee2dd)), closes [#8](https://github.com/unlight/nestjs-graphql-prisma/issues/8) - +- Ability to hide field in schema ([a222955](https://github.com/unlight/nestjs-graphql-prisma/commit/a222955dac6fb85dce96a62c3661997a979ee2dd)), closes [#8](https://github.com/unlight/nestjs-graphql-prisma/issues/8) ### Performance Improvements -* Slightly improved ([fd88dc9](https://github.com/unlight/nestjs-graphql-prisma/commit/fd88dc965568ba511da80acb098e5a567bfb25e3)) - +- Slightly improved ([fd88dc9](https://github.com/unlight/nestjs-graphql-prisma/commit/fd88dc965568ba511da80acb098e5a567bfb25e3)) ### BREAKING CHANGES -* Renamed token `{feature}` to `{model}` in `outputFilePattern` template pattern -* Removed `renameZooTypes` config option -* Config option `combineScalarFilters` is false by default -* Made all options which mutates/renames types are `false` -* Inverted config option `atomicNumberOperations` to `noAtomicNumberOperations` -Replace `atomicNumberOperations = false` by `noAtomicNumberOperations = true` +- Renamed token `{feature}` to `{model}` in `outputFilePattern` template pattern +- Removed `renameZooTypes` config option +- Config option `combineScalarFilters` is false by default +- Made all options which mutates/renames types are `false` +- Inverted config option `atomicNumberOperations` to `noAtomicNumberOperations` + Replace `atomicNumberOperations = false` by `noAtomicNumberOperations = true` # [9.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v8.0.0...v9.0.0) (2021-02-06) - ### Features -* New option rename zoo types ([04cb5af](https://github.com/unlight/nestjs-graphql-prisma/commit/04cb5af95184ef30606ac480686106db585e90a0)) - +- New option rename zoo types ([04cb5af](https://github.com/unlight/nestjs-graphql-prisma/commit/04cb5af95184ef30606ac480686106db585e90a0)) ### BREAKING CHANGES -* Adapt generator to Prisma 2.16 +- Adapt generator to Prisma 2.16 # [8.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v7.2.0...v8.0.0) (2021-01-27) - ### Bug Fixes -* Typescript property type now same as graphql type ([151d380](https://github.com/unlight/nestjs-graphql-prisma/commit/151d38062cce4001b389156cae55430be34011f9)) - +- Typescript property type now same as graphql type ([151d380](https://github.com/unlight/nestjs-graphql-prisma/commit/151d38062cce4001b389156cae55430be34011f9)) ### BREAKING CHANGES -* Typescript property type now same as graphql type +- Typescript property type now same as graphql type # [7.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v7.1.0...v7.2.0) (2021-01-22) - ### Features -* Adapted generator to Prisma 2.15 ([77b87a6](https://github.com/unlight/nestjs-graphql-prisma/commit/77b87a6adf9ec16a89573ad63619b1ed0a3a8f4d)) +- Adapted generator to Prisma 2.15 ([77b87a6](https://github.com/unlight/nestjs-graphql-prisma/commit/77b87a6adf9ec16a89573ad63619b1ed0a3a8f4d)) # [7.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v7.0.0...v7.1.0) (2021-01-07) - ### Features -* Adapted generator to Prisma 2.14 ([26a23c4](https://github.com/unlight/nestjs-graphql-prisma/commit/26a23c45c62a08724e866b15b2c93aea70b094c3)) -* Export all classes from one file ([92ca651](https://github.com/unlight/nestjs-graphql-prisma/commit/92ca651ea931e406e954eb419bb4ec1458fb57f1)), closes [#5](https://github.com/unlight/nestjs-graphql-prisma/issues/5) +- Adapted generator to Prisma 2.14 ([26a23c4](https://github.com/unlight/nestjs-graphql-prisma/commit/26a23c45c62a08724e866b15b2c93aea70b094c3)) +- Export all classes from one file ([92ca651](https://github.com/unlight/nestjs-graphql-prisma/commit/92ca651ea931e406e954eb419bb4ec1458fb57f1)), closes [#5](https://github.com/unlight/nestjs-graphql-prisma/issues/5) # [7.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v6.0.2...v7.0.0) (2021-01-04) - ### Bug Fixes -* Type mismatch between prisma types ([b5587cd](https://github.com/unlight/nestjs-graphql-prisma/commit/b5587cd5c70d3b83fe75734ffd0e8b47125ea50a)), closes [#4](https://github.com/unlight/nestjs-graphql-prisma/issues/4) - +- Type mismatch between prisma types ([b5587cd](https://github.com/unlight/nestjs-graphql-prisma/commit/b5587cd5c70d3b83fe75734ffd0e8b47125ea50a)), closes [#4](https://github.com/unlight/nestjs-graphql-prisma/issues/4) ### BREAKING CHANGES -* Generated types tries to be compatible with Prisma types, -nullability (optional/required) changed for input types +- Generated types tries to be compatible with Prisma types, + nullability (optional/required) changed for input types ## [6.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v6.0.1...v6.0.2) (2020-12-23) - ### Bug Fixes -* Custom field types array ([ead56a4](https://github.com/unlight/nestjs-graphql-prisma/commit/ead56a4eb93e1678f87404c05c32fad5f2906f6f)) -* Generate another commented class ([cc08dee](https://github.com/unlight/nestjs-graphql-prisma/commit/cc08deeafde6a7d7540481f5812ffbdbf25bf979)) +- Custom field types array ([ead56a4](https://github.com/unlight/nestjs-graphql-prisma/commit/ead56a4eb93e1678f87404c05c32fad5f2906f6f)) +- Generate another commented class ([cc08dee](https://github.com/unlight/nestjs-graphql-prisma/commit/cc08deeafde6a7d7540481f5812ffbdbf25bf979)) ## [6.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v6.0.0...v6.0.1) (2020-12-12) - ### Bug Fixes -* Remove unused imports in generated files ([96ef374](https://github.com/unlight/nestjs-graphql-prisma/commit/96ef37458dab58205e5928c72f9ef43ee60aeed8)) +- Remove unused imports in generated files ([96ef374](https://github.com/unlight/nestjs-graphql-prisma/commit/96ef37458dab58205e5928c72f9ef43ee60aeed8)) # [6.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v5.1.1...v6.0.0) (2020-12-12) - ### Bug Fixes -* **prisma:** Adapt generator to Prisma v2.13 ([d1ae8b1](https://github.com/unlight/nestjs-graphql-prisma/commit/d1ae8b1dbb097bbe19b8a8e1ca5dccf1a3549d61)) - +- **prisma:** Adapt generator to Prisma v2.13 ([d1ae8b1](https://github.com/unlight/nestjs-graphql-prisma/commit/d1ae8b1dbb097bbe19b8a8e1ca5dccf1a3549d61)) ### BREAKING CHANGES -* **prisma:** Adapt generator to Prisma v2.13 +- **prisma:** Adapt generator to Prisma v2.13 ## [5.1.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v5.1.0...v5.1.1) (2020-12-07) - ### Bug Fixes -* Remove duplicated input types ([53d5721](https://github.com/unlight/nestjs-graphql-prisma/commit/53d57219883f0e0c7e606f683aa63d70812221b0)) +- Remove duplicated input types ([53d5721](https://github.com/unlight/nestjs-graphql-prisma/commit/53d57219883f0e0c7e606f683aa63d70812221b0)) # [5.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v5.0.1...v5.1.0) (2020-12-03) - ### Features -* Generate commented class if re-export found ([dc3e268](https://github.com/unlight/nestjs-graphql-prisma/commit/dc3e268f90ef2e1436834d35b6cb45e1d87d7527)) +- Generate commented class if re-export found ([dc3e268](https://github.com/unlight/nestjs-graphql-prisma/commit/dc3e268f90ef2e1436834d35b6cb45e1d87d7527)) ## [5.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v5.0.0...v5.0.1) (2020-12-01) - ### Bug Fixes -* Scalar filters compatibility ([02acba8](https://github.com/unlight/nestjs-graphql-prisma/commit/02acba8eb9be183aa6ebcbe191cd0037aabbc53f)) +- Scalar filters compatibility ([02acba8](https://github.com/unlight/nestjs-graphql-prisma/commit/02acba8eb9be183aa6ebcbe191cd0037aabbc53f)) # [5.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v4.0.1...v5.0.0) (2020-12-01) - ### Bug Fixes -* Switched to replace mode ([d04c3ef](https://github.com/unlight/nestjs-graphql-prisma/commit/d04c3ef6102969e3f5da8920be66e4378242ad22)) - +- Switched to replace mode ([d04c3ef](https://github.com/unlight/nestjs-graphql-prisma/commit/d04c3ef6102969e3f5da8920be66e4378242ad22)) ### BREAKING CHANGES -* Switched to replace mode generation of files, all extra field which are not exists in model will be -removed +- Switched to replace mode generation of files, all extra field which are not exists in model will be + removed ## [4.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v4.0.0...v4.0.1) (2020-11-27) - ### Bug Fixes -* Do not generate undefined properties ([c7127a4](https://github.com/unlight/nestjs-graphql-prisma/commit/c7127a4a97d98d245dd214507c7bc2486d0edba4)) - +- Do not generate undefined properties ([c7127a4](https://github.com/unlight/nestjs-graphql-prisma/commit/c7127a4a97d98d245dd214507c7bc2486d0edba4)) ### Performance Improvements -* Removed unused code ([da6dbc0](https://github.com/unlight/nestjs-graphql-prisma/commit/da6dbc0a9f5373072c203c42c755afe10401ec5e)) +- Removed unused code ([da6dbc0](https://github.com/unlight/nestjs-graphql-prisma/commit/da6dbc0a9f5373072c203c42c755afe10401ec5e)) # [4.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v3.0.0...v4.0.0) (2020-11-27) - ### Bug Fixes -* Generator options: dasherizedName renamed to name ([c537340](https://github.com/unlight/nestjs-graphql-prisma/commit/c537340632477165692389fe47028166095d5a23)) - +- Generator options: dasherizedName renamed to name ([c537340](https://github.com/unlight/nestjs-graphql-prisma/commit/c537340632477165692389fe47028166095d5a23)) ### Features -* New token `{plural.type}` for outputFilePattern generator options ([51cc938](https://github.com/unlight/nestjs-graphql-prisma/commit/51cc93872a73538c9aa9fb5a14a37764575f5729)) - +- New token `{plural.type}` for outputFilePattern generator options ([51cc938](https://github.com/unlight/nestjs-graphql-prisma/commit/51cc93872a73538c9aa9fb5a14a37764575f5729)) ### BREAKING CHANGES -* Generator options: dasherizedName renamed to name +- Generator options: dasherizedName renamed to name # [3.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v2.1.0...v3.0.0) (2020-11-26) - ### Bug Fixes -* Adapted to prisma 2.12 ([7e0ab3f](https://github.com/unlight/nestjs-graphql-prisma/commit/7e0ab3fc3ca68e8e371816cbd38dfb0b3f3e5da3)) - +- Adapted to prisma 2.12 ([7e0ab3f](https://github.com/unlight/nestjs-graphql-prisma/commit/7e0ab3fc3ca68e8e371816cbd38dfb0b3f3e5da3)) ### BREAKING CHANGES -* Adapted to prisma 2.12 +- Adapted to prisma 2.12 # [2.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v2.0.2...v2.1.0) (2020-11-20) - ### Bug Fixes -* Adapt new native types ([f1ba6bc](https://github.com/unlight/nestjs-graphql-prisma/commit/f1ba6bcd65df22608cde55a2304ed4bf94d94fb9)) - +- Adapt new native types ([f1ba6bc](https://github.com/unlight/nestjs-graphql-prisma/commit/f1ba6bcd65df22608cde55a2304ed4bf94d94fb9)) ### Features -* Custom graphql field mapping ([10fb039](https://github.com/unlight/nestjs-graphql-prisma/commit/10fb039a1a64a6a8dba82eab30a40acc7c703863)) -* Custom property mapping ([f8cc54d](https://github.com/unlight/nestjs-graphql-prisma/commit/f8cc54d42a42e44f1b1904646380a08d9729a156)) - +- Custom graphql field mapping ([10fb039](https://github.com/unlight/nestjs-graphql-prisma/commit/10fb039a1a64a6a8dba82eab30a40acc7c703863)) +- Custom property mapping ([f8cc54d](https://github.com/unlight/nestjs-graphql-prisma/commit/f8cc54d42a42e44f1b1904646380a08d9729a156)) ### Performance Improvements -* Removed unused code ([28f8784](https://github.com/unlight/nestjs-graphql-prisma/commit/28f8784d83fde5aa68cdbc7140058063f32ce17f)) +- Removed unused code ([28f8784](https://github.com/unlight/nestjs-graphql-prisma/commit/28f8784d83fde5aa68cdbc7140058063f32ce17f)) ## [2.0.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v2.0.1...v2.0.2) (2020-11-14) - ### Bug Fixes -* Enum atomic operation are not processed ([43a2506](https://github.com/unlight/nestjs-graphql-prisma/commit/43a25067da8deaa76921e90d043280bd6bcbdf6a)) +- Enum atomic operation are not processed ([43a2506](https://github.com/unlight/nestjs-graphql-prisma/commit/43a25067da8deaa76921e90d043280bd6bcbdf6a)) ## [2.0.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v2.0.0...v2.0.1) (2020-11-13) - ### Bug Fixes -* Missing enum import type with enum filter object ([a5356c3](https://github.com/unlight/nestjs-graphql-prisma/commit/a5356c3a24ea37daddfbaa3f0207c1baf6d152a8)), closes [#3](https://github.com/unlight/nestjs-graphql-prisma/issues/3) +- Missing enum import type with enum filter object ([a5356c3](https://github.com/unlight/nestjs-graphql-prisma/commit/a5356c3a24ea37daddfbaa3f0207c1baf6d152a8)), closes [#3](https://github.com/unlight/nestjs-graphql-prisma/issues/3) # [2.0.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.6.0...v2.0.0) (2020-10-04) - ### Bug Fixes -* Adapted generator to Prisma 2.8 ([4ac4779](https://github.com/unlight/nestjs-graphql-prisma/commit/4ac47796898a338cd9f557ecb3713b92912a9a35)) - +- Adapted generator to Prisma 2.8 ([4ac4779](https://github.com/unlight/nestjs-graphql-prisma/commit/4ac47796898a338cd9f557ecb3713b92912a9a35)) ### BREAKING CHANGES -* Adapted generator to Prisma 2.8 +- Adapted generator to Prisma 2.8 # [1.6.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.5.0...v1.6.0) (2020-09-08) - ### Features -* Generate other output types ([55e5cd5](https://github.com/unlight/nestjs-graphql-prisma/commit/55e5cd5c8172006837a5adf6a63d4b80d37952e7)) +- Generate other output types ([55e5cd5](https://github.com/unlight/nestjs-graphql-prisma/commit/55e5cd5c8172006837a5adf6a63d4b80d37952e7)) # [1.5.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.4.0...v1.5.0) (2020-09-07) - ### Features -* Generate args types ([5015de7](https://github.com/unlight/nestjs-graphql-prisma/commit/5015de7e29d2af5b8153304b539fed8c209bbedd)) +- Generate args types ([5015de7](https://github.com/unlight/nestjs-graphql-prisma/commit/5015de7e29d2af5b8153304b539fed8c209bbedd)) # [1.4.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.3.1...v1.4.0) (2020-09-04) - ### Features -* Option to disable atomic number operations ([3319ff9](https://github.com/unlight/nestjs-graphql-prisma/commit/3319ff9b27b0b9a45aa5f06cbd521e2f7f55a6bd)) +- Option to disable atomic number operations ([3319ff9](https://github.com/unlight/nestjs-graphql-prisma/commit/3319ff9b27b0b9a45aa5f06cbd521e2f7f55a6bd)) ## [1.3.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.3.0...v1.3.1) (2020-09-03) - ### Bug Fixes -* Loading existing file ([fc19a03](https://github.com/unlight/nestjs-graphql-prisma/commit/fc19a0352c25fd16443055ac5017ddfcb9aaf126)) +- Loading existing file ([fc19a03](https://github.com/unlight/nestjs-graphql-prisma/commit/fc19a0352c25fd16443055ac5017ddfcb9aaf126)) # [1.3.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.2.0...v1.3.0) (2020-08-30) - ### Features -* Generate aggregate input types ([66239bb](https://github.com/unlight/nestjs-graphql-prisma/commit/66239bbc4238aeaea855bdbcec6ed09c523c1e30)) +- Generate aggregate input types ([66239bb](https://github.com/unlight/nestjs-graphql-prisma/commit/66239bbc4238aeaea855bdbcec6ed09c523c1e30)) # [1.2.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.1.4...v1.2.0) (2020-08-29) - ### Bug Fixes -* Detection property nullable type ([2121885](https://github.com/unlight/nestjs-graphql-prisma/commit/21218858d45b9f847484e33ef07d70ed5568edd6)) - +- Detection property nullable type ([2121885](https://github.com/unlight/nestjs-graphql-prisma/commit/21218858d45b9f847484e33ef07d70ed5568edd6)) ### Features -* Combine zoo of nested/nullable filters ([20f965b](https://github.com/unlight/nestjs-graphql-prisma/commit/20f965bace9608f7713f235d734bf2f1bedf068e)) +- Combine zoo of nested/nullable filters ([20f965b](https://github.com/unlight/nestjs-graphql-prisma/commit/20f965bace9608f7713f235d734bf2f1bedf068e)) ## [1.1.4](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.1.3...v1.1.4) (2020-08-22) - ### Bug Fixes -* Generate enumerable filters ([9f35c9a](https://github.com/unlight/nestjs-graphql-prisma/commit/9f35c9adae6ebf51dbc5fcd975d41dfd4393ad35)) +- Generate enumerable filters ([9f35c9a](https://github.com/unlight/nestjs-graphql-prisma/commit/9f35c9adae6ebf51dbc5fcd975d41dfd4393ad35)) ## [1.1.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.1.2...v1.1.3) (2020-08-21) - ### Bug Fixes -* Added new feature split keywords ([e780043](https://github.com/unlight/nestjs-graphql-prisma/commit/e780043efbc34623acf630145248ae821a0a35f5)) +- Added new feature split keywords ([e780043](https://github.com/unlight/nestjs-graphql-prisma/commit/e780043efbc34623acf630145248ae821a0a35f5)) ## [1.1.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.1.1...v1.1.2) (2020-08-16) - ### Bug Fixes -* Corrected scalar property type for where type ([b9e5937](https://github.com/unlight/nestjs-graphql-prisma/commit/b9e593723e820dc6c3cd134e2270c0573f19f8b8)) +- Corrected scalar property type for where type ([b9e5937](https://github.com/unlight/nestjs-graphql-prisma/commit/b9e593723e820dc6c3cd134e2270c0573f19f8b8)) ## [1.1.1](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.1.0...v1.1.1) (2020-08-16) - ### Bug Fixes -* Generate distinct related enums with bound feature ([d055e3b](https://github.com/unlight/nestjs-graphql-prisma/commit/d055e3b4d1889c90af0bb12c6377532d71fc70cd)) -* Removed unnecessary create enum from input type ([e6774ab](https://github.com/unlight/nestjs-graphql-prisma/commit/e6774ab3b0998eee01d80d129626f8b6c3058e12)) +- Generate distinct related enums with bound feature ([d055e3b](https://github.com/unlight/nestjs-graphql-prisma/commit/d055e3b4d1889c90af0bb12c6377532d71fc70cd)) +- Removed unnecessary create enum from input type ([e6774ab](https://github.com/unlight/nestjs-graphql-prisma/commit/e6774ab3b0998eee01d80d129626f8b6c3058e12)) # [1.1.0](https://github.com/unlight/nestjs-graphql-prisma/compare/v1.0.0...v1.1.0) (2020-08-15) - ### Features -* Generate JSON scalar type ([82007d7](https://github.com/unlight/nestjs-graphql-prisma/commit/82007d7bbf19db4caa08ca812e960422b767de78)) -* Skip write stage for files with no changes ([ecc2fb8](https://github.com/unlight/nestjs-graphql-prisma/commit/ecc2fb88eb91c6be8f27319520b631b9af90d109)) +- Generate JSON scalar type ([82007d7](https://github.com/unlight/nestjs-graphql-prisma/commit/82007d7bbf19db4caa08ca812e960422b767de78)) +- Skip write stage for files with no changes ([ecc2fb8](https://github.com/unlight/nestjs-graphql-prisma/commit/ecc2fb88eb91c6be8f27319520b631b9af90d109)) # 1.0.0 (2020-08-10) - ### Features -* First release ([340a105](https://github.com/unlight/prisma-nestjs-graphql/commit/340a105a305a97c80cb8a95e1f2fd0545f6aa0cb)) +- First release ([340a105](https://github.com/unlight/prisma-nestjs-graphql/commit/340a105a305a97c80cb8a95e1f2fd0545f6aa0cb)) diff --git a/package.json b/package.json index 8899a495..1b037647 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "@nestjs/graphql": "^13.0.1", "@nestjs/platform-express": "^11.0.1", "@paljs/plugins": "^8.1.0", - "@prisma/client": "5 - 6", + "@prisma/client": "^6.7.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.1", @@ -147,5 +147,6 @@ "typescript": "^5.7.3", "typescript-eslint": "^8.20.0", "watchexec-bin": "^1.0.0" - } + }, + "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39" } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..b6abf832 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,10 @@ +ignoredBuiltDependencies: + - '@apollo/protobufjs' + - '@nestjs/core' + - esbuild + - watchexec-bin +onlyBuiltDependencies: + - '@prisma/client' + - '@prisma/engines' + - '@swc/core' + - prisma diff --git a/src/handlers/args-type.ts b/src/handlers/args-type.ts index 90a49e72..a5f8a875 100644 --- a/src/handlers/args-type.ts +++ b/src/handlers/args-type.ts @@ -12,7 +12,7 @@ export function argsType(field: SchemaField, args: EventArguments) { } if (isManyAndReturnOutputType(field.name)) return; - const { eventEmitter, typeNames, getModelName } = args; + const { eventEmitter, getModelName, typeNames } = args; let className = pascalCase(`${field.name}Args`); const modelName = getModelName(className) || ''; @@ -28,10 +28,9 @@ export function argsType(field: SchemaField, args: EventArguments) { } const inputType: InputType = { - // eslint-disable-next-line unicorn/no-null constraints: { maxNumFields: null, minNumFields: null }, - name: className, fields: [...field.args], + name: className, }; if ( @@ -52,24 +51,24 @@ export function argsType(field: SchemaField, args: EventArguments) { } inputType.fields.push({ - name: `_${name.toLowerCase()}`, - isRequired: false, - isNullable: true, inputTypes: [ { + isList: false, location: 'inputObjectTypes', type: `${modelName}${name}AggregateInput`, - isList: false, }, ], + isNullable: true, + isRequired: false, + name: `_${name.toLowerCase()}`, }); } } eventEmitter.emitSync('InputType', { ...args, - inputType, - fileType: 'args', classDecoratorName: 'ArgsType', + fileType: 'args', + inputType, }); } diff --git a/src/handlers/combine-scalar-filters.ts b/src/handlers/combine-scalar-filters.ts index f825a9ba..b80641c0 100644 --- a/src/handlers/combine-scalar-filters.ts +++ b/src/handlers/combine-scalar-filters.ts @@ -2,7 +2,7 @@ import AwaitEventEmitter from 'await-event-emitter'; import { cloneDeep, keyBy, remove } from 'lodash'; import { BeforeGenerateField } from '../event-names'; -import { EventArguments, InputType, SchemaArg } from '../types'; +import { EventArguments, InputType, SchemaArg as SchemaArgument } from '../types'; /** * Subscribes on 'BeforeInputType' @@ -28,7 +28,7 @@ function beforeInputType( } } -function beforeGenerateField(field: SchemaArg): void { +function beforeGenerateField(field: SchemaArgument): void { for (const fieldInput of field.inputTypes) { if (fieldInput.location !== 'inputObjectTypes') { continue; diff --git a/src/handlers/create-aggregate-input.ts b/src/handlers/create-aggregate-input.ts index 8ce3d144..c5e16932 100644 --- a/src/handlers/create-aggregate-input.ts +++ b/src/handlers/create-aggregate-input.ts @@ -14,27 +14,26 @@ export function createAggregateInput( // console.dir({ outputType, className, __filename }, { depth: 5 }); const inputType: InputType = { - // eslint-disable-next-line unicorn/no-null constraints: { maxNumFields: null, minNumFields: null }, - name: className, fields: outputType.fields.map(x => ({ - name: x.name, - isNullable: x.isNullable ?? true, - isRequired: false, inputTypes: [ { isList: false, - type: 'true', location: 'scalar', + type: 'true', }, ], + isNullable: x.isNullable ?? true, + isRequired: false, + name: x.name, })), + name: className, }; eventEmitter.emitSync('InputType', { ...args, - inputType, - fileType: 'input', classDecoratorName: 'InputType', + fileType: 'input', + inputType, }); } diff --git a/src/handlers/emit-single.ts b/src/handlers/emit-single.ts index 0cf9e607..87b28e0e 100644 --- a/src/handlers/emit-single.ts +++ b/src/handlers/emit-single.ts @@ -16,7 +16,7 @@ function classProperty( propertyType: string[]; }, ) { - const { location, isList, propertyType } = eventArguments; + const { isList, location, propertyType } = eventArguments; if (['inputObjectTypes', 'outputObjectTypes'].includes(location) && !isList) { const [safeTypes, instanceofTypes] = partition( propertyType, diff --git a/src/handlers/input-type.ts b/src/handlers/input-type.ts index f6948bce..17cb75b0 100644 --- a/src/handlers/input-type.ts +++ b/src/handlers/input-type.ts @@ -44,15 +44,15 @@ export function inputType( type: fileType, }); const classStructure: ClassDeclarationStructure = { - kind: StructureKind.Class, - isExported: true, - name: inputType.name, decorators: [ { - name: classDecoratorName, arguments: [], + name: classDecoratorName, }, ], + isExported: true, + kind: StructureKind.Class, + name: inputType.name, properties: [], }; const modelName = getModelName(inputType.name) || ''; @@ -62,12 +62,12 @@ export function inputType( importDeclarations .set('Field', { - namedImports: [{ name: 'Field' }], moduleSpecifier, + namedImports: [{ name: 'Field' }], }) .set(classDecoratorName, { - namedImports: [{ name: classDecoratorName }], moduleSpecifier, + namedImports: [{ name: classDecoratorName }], }); const useInputType = config.useInputType.find(x => @@ -93,8 +93,8 @@ export function inputType( const typeName = String(type); const settings = modelFieldSettings?.get(name); const propertySettings = settings?.getPropertyType({ - name: inputType.name, input: true, + name: inputType.name, }); const modelField = model?.fields.find(f => f.name === name); const isCustomsApplicable = typeName === modelField?.type; @@ -121,15 +121,14 @@ export function inputType( atLeastKeys?.includes(name), ); const property = propertyStructure({ - name, - isNullable: !isRequired, hasExclamationToken: hasExclamationToken || undefined, hasQuestionToken: hasExclamationToken ? false : undefined, - propertyType, isList, + isNullable: !isRequired, + name, + propertyType, }); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion classStructure.properties!.push(property); if (propertySettings) { @@ -145,8 +144,8 @@ export function inputType( let graphqlType: string; const shouldHideField = settings?.shouldHideField({ - name: inputType.name, input: true, + name: inputType.name, }) || config.decorate.some( d => @@ -157,8 +156,8 @@ export function inputType( ); const fieldType = settings?.getFieldType({ - name: inputType.name, input: true, + name: inputType.name, }); if (fieldType && isCustomsApplicable && !shouldHideField) { @@ -168,10 +167,10 @@ export function inputType( // Import property type class const graphqlImport = getGraphqlImport({ config, - sourceFile, + getSourceFile, location, + sourceFile, typeName, - getSourceFile, }); graphqlType = graphqlImport.name; @@ -188,8 +187,8 @@ export function inputType( // (shouldHideField && referenceName === graphqlImport.name)) ) { importDeclarations.set(graphqlImport.name, { - namedImports: [{ name: graphqlImport.name }], moduleSpecifier: graphqlImport.specifier, + namedImports: [{ name: graphqlImport.name }], }); } } @@ -198,11 +197,10 @@ export function inputType( if (shouldHideField) { importDeclarations.add('HideField', moduleSpecifier); - property.decorators.push({ name: 'HideField', arguments: [] }); + property.decorators.push({ arguments: [], name: 'HideField' }); } else { // Generate `@Field()` decorator property.decorators.push({ - name: 'Field', arguments: [ isList ? `() => [${graphqlType}]` : `() => ${graphqlType}`, JSON5.stringify({ @@ -210,6 +208,7 @@ export function inputType( nullable: !isRequired, }), ], + name: 'Field', }); if (graphqlType === 'GraphQLDecimal') { @@ -219,12 +218,12 @@ export function inputType( property.decorators.push( { - name: 'Type', arguments: ['() => Object'], + name: 'Type', }, { - name: 'Transform', arguments: ['transformToDecimal'], + name: 'Transform', }, ); } else if ( @@ -256,7 +255,7 @@ export function inputType( ))) ) { importDeclarations.add('Type', 'class-transformer'); - property.decorators.push({ name: 'Type', arguments: [`() => ${graphqlType}`] }); + property.decorators.push({ arguments: [`() => ${graphqlType}`], name: 'Type' }); } if (isCustomsApplicable) { @@ -266,8 +265,8 @@ export function inputType( true ) { property.decorators.push({ - name: options.name, arguments: options.arguments as string[], + name: options.name, }); ok(options.from, "Missed 'from' part in configuration or field setting"); importDeclarations.create(options); @@ -278,8 +277,8 @@ export function inputType( for (const decorate of config.decorate) { if (decorate.isMatchField(name) && decorate.isMatchType(inputType.name)) { property.decorators.push({ - name: decorate.name, arguments: decorate.arguments?.map(x => pupa(x, { propertyType })), + name: decorate.name, }); importDeclarations.create(decorate); } @@ -287,8 +286,8 @@ export function inputType( } eventEmitter.emitSync('ClassProperty', property, { - location, isList, + location, propertyType, }); } diff --git a/src/handlers/model-data.ts b/src/handlers/model-data.ts index 6473c05a..796f00c6 100644 --- a/src/handlers/model-data.ts +++ b/src/handlers/model-data.ts @@ -3,12 +3,12 @@ import { EventArguments, Field, Model } from '../types'; export function modelData(model: Model, args: EventArguments) { const { + classTransformerTypeModels, config, + fieldSettings, + modelFields, modelNames, models, - modelFields, - fieldSettings, - classTransformerTypeModels, } = args; modelNames.push(model.name); models.set(model.name, model); @@ -22,8 +22,8 @@ export function modelData(model: Model, args: EventArguments) { for (const field of model.fields) { if (field.documentation) { const { documentation, settings } = createObjectSettings({ - text: field.documentation, config, + text: field.documentation, }); field.documentation = documentation; fieldSettingsValue.set(field.name, settings); diff --git a/src/handlers/model-output-type.ts b/src/handlers/model-output-type.ts index 8827fa96..d774c592 100644 --- a/src/handlers/model-output-type.ts +++ b/src/handlers/model-output-type.ts @@ -230,7 +230,6 @@ export function modelOutputType(outputType: OutputType, args: EventArguments) { // Generate class decorators from model settings for (const setting of modelSettings || []) { - // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion if (shouldBeDecorated(setting)) { classStructure.decorators.push({ arguments: setting.arguments as string[], diff --git a/src/handlers/no-atomic-operations.ts b/src/handlers/no-atomic-operations.ts index 7025dfbc..b54f37fe 100644 --- a/src/handlers/no-atomic-operations.ts +++ b/src/handlers/no-atomic-operations.ts @@ -8,7 +8,7 @@ export function noAtomicOperations(eventEmitter: AwaitEventEmitter) { } function beforeInputType(args: EventArguments & { inputType: InputType }) { - const { inputType, getModelName } = args; + const { getModelName, inputType } = args; for (const field of inputType.fields) { const fieldName = field.name; diff --git a/src/handlers/prisma-enum-doc.ts b/src/handlers/prisma-enum-doc.ts new file mode 100644 index 00000000..ff3f59c2 --- /dev/null +++ b/src/handlers/prisma-enum-doc.ts @@ -0,0 +1,24 @@ +// utils/prisma-enum-doc.ts + +type EnumValueDocInfo = { description: string } | { deprecationReason: string }; + +export function extractEnumValueDocs( + values: readonly { name: string; [key: string]: any }[], +): Record { + return Object.fromEntries( + values + .map((value): [string, EnumValueDocInfo] | null => { + const { name } = value; + const documentation: unknown = value.documentation; + + if (typeof documentation !== 'string') return null; + + if (documentation.startsWith('@deprecated')) { + return [name, { deprecationReason: documentation.slice(11).trim() }]; + } + + return [name, { description: documentation }]; + }) + .filter((entry): entry is [string, EnumValueDocInfo] => entry !== null), + ); +} diff --git a/src/handlers/purge-output.ts b/src/handlers/purge-output.ts index 080ea412..3d420a18 100644 --- a/src/handlers/purge-output.ts +++ b/src/handlers/purge-output.ts @@ -8,7 +8,7 @@ export function purgeOutput(emitter: AwaitEventEmitter) { emitter.on('End', end); } -function begin({ project, output }: EventArguments) { +function begin({ output, project }: EventArguments) { const sourceFiles = project.getDirectory(output)?.getDescendantSourceFiles(); if (sourceFiles) { @@ -18,7 +18,7 @@ function begin({ project, output }: EventArguments) { } } -function end({ project, output }: EventArguments) { +function end({ output, project }: EventArguments) { const directories = project .getDirectory(output) ?.getDescendantDirectories() diff --git a/src/handlers/re-export.ts b/src/handlers/re-export.ts index d16eedb7..8c402aef 100644 --- a/src/handlers/re-export.ts +++ b/src/handlers/re-export.ts @@ -20,7 +20,7 @@ export function reExport(emitter: AwaitEventEmitter) { } function beforeGenerateFiles(args: EventArguments) { - const { project, output, config } = args; + const { config, output, project } = args; const rootDirectory = project.getDirectoryOrThrow(output); if ([ReExport.Directories, ReExport.All].includes(config.reExport)) { @@ -109,8 +109,8 @@ function getExportDeclaration( ): ExportDeclarationStructure { return { kind: StructureKind.ExportDeclaration, - namedExports: sourceFile.getExportSymbols().map(s => ({ name: s.getName() })), moduleSpecifier: directory.getRelativePathAsModuleSpecifierTo(sourceFile), + namedExports: sourceFile.getExportSymbols().map(s => ({ name: s.getName() })), }; } diff --git a/src/handlers/register-enum.ts b/src/handlers/register-enum.ts index 0b6897dc..2fa584bb 100644 --- a/src/handlers/register-enum.ts +++ b/src/handlers/register-enum.ts @@ -2,6 +2,7 @@ import { EnumDeclarationStructure, StructureKind } from 'ts-morph'; import { ImportDeclarationMap } from '../helpers/import-declaration-map'; import { EventArguments, SchemaEnum } from '../types'; +import { extractEnumValueDocs } from './prisma-enum-doc'; export function registerEnum(enumType: SchemaEnum, args: EventArguments) { const { config, enums, getSourceFile } = args; @@ -24,41 +25,19 @@ export function registerEnum(enumType: SchemaEnum, args: EventArguments) { }); // Create valuesMap based on documentation - const valuesMap = Object.fromEntries( - enumTypesData.map(({ name, documentation }) => { - let entry = {}; - if (documentation) { - if (documentation.startsWith('@deprecated')) { - entry = { - deprecationReason: documentation.slice(11).trim(), // Extract deprecation reason - }; - } else { - entry = { - description: documentation, // Use the documentation as description - }; - } - } - return [name, entry]; // Return entry, even if empty - }), - ); + const valuesMap = extractEnumValueDocs(enumTypesData); - // Filter out empty entries (those that don't have description or deprecationReason) - const filteredValuesMap = Object.fromEntries( - Object.entries(valuesMap).filter(([key, value]) => Object.keys(value).length > 0), - ); - - // Format valuesMap for the final output - const formattedValuesMap = JSON.stringify(filteredValuesMap, null, 2).replace( - /"([^"]+)":/g, - '$1:', - ); + const valuesMapString = + Object.keys(valuesMap).length > 0 + ? `, valuesMap: ${JSON.stringify(valuesMap, null, 2).replace(/"([^"]+)":/g, '$1:')}` + : ''; const enumStructure: EnumDeclarationStructure = { isExported: true, kind: StructureKind.Enum, members: enumType.values.map(v => ({ - initializer: JSON.stringify(v), - name: v, + initializer: JSON.stringify(v.name), + name: v.name, })), name: enumType.name, }; @@ -68,9 +47,9 @@ export function registerEnum(enumType: SchemaEnum, args: EventArguments) { ...importDeclarations.toStatements(), enumStructure, '\n', - `registerEnumType(${enumType.name}, { name: '${ - enumType.name - }', description: ${JSON.stringify(dataModelEnum?.documentation)}, valuesMap: ${formattedValuesMap} })`, + `registerEnumType(${enumType.name}, { name: '${enumType.name}', description: ${JSON.stringify( + dataModelEnum?.documentation, + )}${valuesMapString} })`, ], }); } diff --git a/src/helpers/create-config.spec.ts b/src/helpers/create-config.spec.ts index 869e17ca..e0222321 100644 --- a/src/helpers/create-config.spec.ts +++ b/src/helpers/create-config.spec.ts @@ -39,26 +39,26 @@ describe('createConfig', () => { }); expect(result.useInputType).toEqual([ { - typeName: 'CreateInput', ALL: 'WhereInput', author: 'WhereInput', + typeName: 'CreateInput', }, ]); }); it('create config decorate from array', () => { const result = createConfig({ - decorate_1_type: 'CreateOneUserArgs', + decorate_1_arguments: '[]', decorate_1_field: 'data', - decorate_1_name: 'ValidateNested', decorate_1_from: 'class-validator', - decorate_1_arguments: '[]', - decorate_2_type: 'CreateOneUserArgs', + decorate_1_name: 'ValidateNested', + decorate_1_type: 'CreateOneUserArgs', + decorate_2_arguments: '[]', decorate_2_field: 'data', decorate_2_from: 'class-transformer', - decorate_2_arguments: '[]', decorate_2_name: 'Type', decorate_2_namedImport: true, + decorate_2_type: 'CreateOneUserArgs', }); expect(result.decorate).toBeInstanceOf(Array); expect(result.decorate).toHaveLength(2); @@ -66,17 +66,17 @@ describe('createConfig', () => { it('create config decorate from object', () => { const result = createConfig({ - decorate_a_type: 'CreateOneUserArgs', + decorate_a_arguments: '[]', decorate_a_field: 'data', - decorate_a_name: 'ValidateNested', decorate_a_from: 'class-validator', - decorate_a_arguments: '[]', - decorate_b_type: 'CreateOneUserArgs', + decorate_a_name: 'ValidateNested', + decorate_a_type: 'CreateOneUserArgs', + decorate_b_arguments: '[]', decorate_b_field: 'data', decorate_b_from: 'class-transformer', - decorate_b_arguments: '[]', decorate_b_name: 'Type', decorate_b_namedImport: true, + decorate_b_type: 'CreateOneUserArgs', }); expect(result.decorate).toBeInstanceOf(Array); expect(result.decorate).toHaveLength(2); diff --git a/src/helpers/create-config.ts b/src/helpers/create-config.ts index a93fb77a..620ab858 100644 --- a/src/helpers/create-config.ts +++ b/src/helpers/create-config.ts @@ -40,7 +40,6 @@ export function createConfig(data: Record) { config.outputFilePattern || `{model}/{name}.{type}.ts`, ); - // eslint-disable-next-line @typescript-eslint/no-unsafe-call let outputFilePattern = filenamify(configOutputFilePattern, { replacement: '/', }) @@ -69,12 +68,12 @@ export function createConfig(data: Record) { .map(([name, value]) => { const fieldSetting: ConfigFieldSetting = { arguments: [], - output: toBoolean(value.output), + defaultImport: toBoolean(value.defaultImport) ? true : value.defaultImport, + from: value.from, input: toBoolean(value.input), model: toBoolean(value.model), - from: value.from, - defaultImport: toBoolean(value.defaultImport) ? true : value.defaultImport, namespaceImport: value.namespaceImport, + output: toBoolean(value.output), }; return [name, fieldSetting]; }), @@ -92,18 +91,18 @@ export function createConfig(data: Record) { `Missed 'from' or 'name' part in configuration for decorate`, ); decorate.push({ + arguments: element.arguments ? JSON5.parse(element.arguments) : undefined, + defaultImport: toBoolean(element.defaultImport) ? true : element.defaultImport, + from: element.from, isMatchField: outmatch(element.field, { separator: false }), isMatchType: outmatch(element.type, { separator: false }), - from: element.from, name: element.name, namedImport: toBoolean(element.namedImport), - defaultImport: toBoolean(element.defaultImport) ? true : element.defaultImport, namespaceImport: element.namespaceImport, - arguments: element.arguments ? JSON5.parse(element.arguments) : undefined, }); } - const customImport: CustomImport[] = [] + const customImport: CustomImport[] = []; const configCustomImport: (Record | undefined)[] = Object.values( (config.customImport as any) || {}, ); @@ -114,41 +113,41 @@ export function createConfig(data: Record) { `Missed 'from' or 'name' part in configuration for customImport`, ); customImport.push({ + defaultImport: toBoolean(element.defaultImport) ? true : element.defaultImport, from: element.from, name: element.name, namedImport: toBoolean(element.namedImport), - defaultImport: toBoolean(element.defaultImport) ? true : element.defaultImport, namespaceImport: element.namespaceImport, }); } return { - outputFilePattern, - tsConfigFilePath: createTsConfigFilePathValue(config.tsConfigFilePath), - prismaClientImport: createPrismaImport(config.prismaClientImport), + $warnings, combineScalarFilters: toBoolean(config.combineScalarFilters), - noAtomicOperations: toBoolean(config.noAtomicOperations), - reExport: (ReExport[String(config.reExport)] || ReExport.None) as ReExport, - emitSingle: toBoolean(config.emitSingle), - emitCompiled: toBoolean(config.emitCompiled), + customImport, + decorate, emitBlocks: createEmitBlocks(config.emitBlocks as EmitBlocksOption[]), - omitModelsCount: toBoolean(config.omitModelsCount), - $warnings, + emitCompiled: toBoolean(config.emitCompiled), + emitSingle: toBoolean(config.emitSingle), fields, - purgeOutput: toBoolean(config.purgeOutput), - useInputType: createUseInputType(config.useInputType as any), + graphqlScalars: (config.graphqlScalars || {}) as Record< + string, + ImportNameSpec | undefined + >, + noAtomicOperations: toBoolean(config.noAtomicOperations), noTypeId: toBoolean(config.noTypeId), + omitModelsCount: toBoolean(config.omitModelsCount), + outputFilePattern, + prismaClientImport: createPrismaImport(config.prismaClientImport), + purgeOutput: toBoolean(config.purgeOutput), + reExport: (ReExport[String(config.reExport)] || ReExport.None) as ReExport, requireSingleFieldsInWhereUniqueInput: toBoolean( config.requireSingleFieldsInWhereUniqueInput, ), + tsConfigFilePath: createTsConfigFilePathValue(config.tsConfigFilePath), unsafeCompatibleWhereUniqueInput: toBoolean( config.unsafeCompatibleWhereUniqueInput, ), - graphqlScalars: (config.graphqlScalars || {}) as Record< - string, - ImportNameSpec | undefined - >, - decorate, - customImport, + useInputType: createUseInputType(config.useInputType as any), }; } @@ -179,8 +178,8 @@ function createUseInputType(data?: Record) { const result: ConfigInputItem[] = []; for (const [typeName, useInputs] of Object.entries(data)) { const entry: ConfigInputItem = { - typeName, ALL: undefined, + typeName, }; if (useInputs.ALL) { entry.ALL = useInputs.ALL; diff --git a/src/helpers/create-emit-blocks.ts b/src/helpers/create-emit-blocks.ts index 5f6c23cc..43c3a28d 100644 --- a/src/helpers/create-emit-blocks.ts +++ b/src/helpers/create-emit-blocks.ts @@ -18,11 +18,11 @@ const allEmmittedBlocks: EmittedBlockType[] = [ ]; const blocksDependencyMap: Record = { + args: ['args', 'inputs', 'prismaEnums'], enums: ['schemaEnums', 'prismaEnums'], - models: ['models', 'schemaEnums'], inputs: ['inputs', 'prismaEnums'], + models: ['models', 'schemaEnums'], outputs: ['outputs'], - args: ['args', 'inputs', 'prismaEnums'], }; export function createEmitBlocks(data?: string[]): Record { diff --git a/src/helpers/factory-get-source-file.ts b/src/helpers/factory-get-source-file.ts index 00aead60..db01af79 100644 --- a/src/helpers/factory-get-source-file.ts +++ b/src/helpers/factory-get-source-file.ts @@ -10,15 +10,15 @@ export function factoryGetSourceFile(args: { getModelName(name: string): string | undefined; eventEmitter: AwaitEventEmitter; }) { - const { outputFilePattern, output, getModelName, project } = args; + const { getModelName, output, outputFilePattern, project } = args; return function getSourceFile(args: { type: string; name: string }) { const { name, type } = args; let filePath = generateFileName({ getModelName, name, - type, template: outputFilePattern, + type, }); filePath = `${output}/${filePath}`; diff --git a/src/helpers/generate-file-name.spec.ts b/src/helpers/generate-file-name.spec.ts index 258c5dd4..12a0c633 100644 --- a/src/helpers/generate-file-name.spec.ts +++ b/src/helpers/generate-file-name.spec.ts @@ -7,8 +7,8 @@ describe('generateFileName', () => { const result = generateFileName({ getModelName: () => 'User', name: 'User', - type: 'model', template: '{model}/{plural.type}/{name}.{type}.ts', + type: 'model', }); expect(result).toEqual('user/models/user.model.ts'); }); @@ -17,8 +17,8 @@ describe('generateFileName', () => { const result = generateFileName({ getModelName: () => 'User', name: 'UserWhereInput', - type: 'input', template: '{model}/{plural.type}/{name}.{type}.ts', + type: 'input', }); expect(result).toEqual('user/inputs/user-where.input.ts'); }); @@ -27,8 +27,8 @@ describe('generateFileName', () => { const result = generateFileName({ getModelName: () => 'prisma', name: 'Role', - type: 'enum', template: '{model}/{plural.type}/{name}.{type}.ts', + type: 'enum', }); expect(result).toEqual('prisma/enums/role.enum.ts'); }); diff --git a/src/helpers/get-graphql-input-type.ts b/src/helpers/get-graphql-input-type.ts index a72a43d5..0a813b3a 100644 --- a/src/helpers/get-graphql-input-type.ts +++ b/src/helpers/get-graphql-input-type.ts @@ -79,7 +79,6 @@ export function getGraphqlInputType(inputTypes: DMMF.InputTypeRef[], pattern?: s } throw new TypeError( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `Cannot get matching input type from ${ inputTypes.map(x => x.type).join(', ') || 'zero length inputTypes' }`, diff --git a/src/helpers/get-where-unique-at-least-keys.ts b/src/helpers/get-where-unique-at-least-keys.ts index 0669a1c1..85587c26 100644 --- a/src/helpers/get-where-unique-at-least-keys.ts +++ b/src/helpers/get-where-unique-at-least-keys.ts @@ -17,7 +17,7 @@ export function getWhereUniqueAtLeastKeys(model: DMMF.Model) { } function createFieldName(args: { name?: string | null; fields: Readonly }) { - const { name, fields } = args; + const { fields, name } = args; return name || fields.join('_'); } diff --git a/src/helpers/import-declaration-map.ts b/src/helpers/import-declaration-map.ts index 0fa115c9..c4b484da 100644 --- a/src/helpers/import-declaration-map.ts +++ b/src/helpers/import-declaration-map.ts @@ -29,12 +29,12 @@ export class ImportDeclarationMap extends Map< namespaceImport?: string; namedImport?: boolean; }) { - const { from, defaultImport, namespaceImport, namedImport } = args; + const { defaultImport, from, namedImport, namespaceImport } = args; let name = args.name; const value = { + defaultImport: undefined as string | undefined, moduleSpecifier: from, namedImports: [] as OptionalKind[], - defaultImport: undefined as string | undefined, namespaceImport: undefined as string | undefined, }; if (namedImport === true && namespaceImport) { diff --git a/src/helpers/object-settings.ts b/src/helpers/object-settings.ts index 03f79faf..78a3160d 100644 --- a/src/helpers/object-settings.ts +++ b/src/helpers/object-settings.ts @@ -31,8 +31,8 @@ interface ObjectSettingsFilterArgs { export class ObjectSettings extends Array { shouldHideField({ - name, input = false, + name, output = false, }: ObjectSettingsFilterArgs): boolean { const hideField = this.find(s => s.name === 'HideField'); @@ -45,8 +45,8 @@ export class ObjectSettings extends Array { } getFieldType({ - name, input, + name, output, }: ObjectSettingsFilterArgs): ObjectSetting | undefined { const fieldType = this.find(s => s.kind === 'FieldType'); @@ -56,7 +56,6 @@ export class ObjectSettings extends Array { } if (fieldType.match) { - // eslint-disable-next-line unicorn/prefer-regexp-test return fieldType.match(name) ? fieldType : undefined; } @@ -72,8 +71,8 @@ export class ObjectSettings extends Array { } getPropertyType({ - name, input, + name, output, }: ObjectSettingsFilterArgs): ObjectSetting | undefined { const propertyType = this.find(s => s.kind === 'PropertyType'); @@ -83,7 +82,6 @@ export class ObjectSettings extends Array { } if (propertyType.match) { - // eslint-disable-next-line unicorn/prefer-regexp-test return propertyType.match(name) ? propertyType : undefined; } @@ -132,18 +130,18 @@ export function createObjectSettings(args: { let fieldElement = result.find(item => item.kind === 'Field'); if (!fieldElement) { fieldElement = { - name: '', - kind: 'Field', arguments: {}, + kind: 'Field', + name: '', } as ObjectSetting; } for (const line of textLines) { const match = /^@(?\w+(\.(\w+))?)\((?.*)\)/.exec(line); - const { element, documentLine } = createSettingElement({ - line, + const { documentLine, element } = createSettingElement({ config, fieldElement, + line, match, }); @@ -157,15 +155,15 @@ export function createObjectSettings(args: { } return { - settings: result, documentation: documentationLines.filter(Boolean).join('\n') || undefined, + settings: result, }; } function createSettingElement({ - line, config, fieldElement, + line, match, }: { line: string; @@ -203,13 +201,13 @@ function createSettingElement({ } const element: ObjectSetting = { - kind: 'Decorator', - name: '', arguments: [], + from: '', input: false, - output: false, + kind: 'Decorator', model: false, - from: '', + name: '', + output: false, }; result.element = element; @@ -238,8 +236,8 @@ function createSettingElement({ merge(options, options[1]); } element.arguments = { - name: options.name, isAbstract: options.isAbstract, + name: options.name, }; return result; @@ -247,13 +245,13 @@ function createSettingElement({ if (name === 'Directive' && match.groups?.args) { const options = customType(match.groups.args); - merge(element, { model: true, from: '@nestjs/graphql' }, options, { - name, - namespace: false, - kind: 'Decorator', + merge(element, { from: '@nestjs/graphql', model: true }, options, { arguments: Array.isArray(options.arguments) ? options.arguments.map(s => JSON5.stringify(s)) : options.arguments, + kind: 'Decorator', + name, + namespace: false, }); return result; @@ -262,11 +260,11 @@ function createSettingElement({ const namespace = getNamespace(name); element.namespaceImport = namespace; const options = { - name, arguments: (match.groups?.args || '') .split(',') .map(s => trim(s)) .filter(Boolean), + name, }; merge(element, namespace && config.fields[namespace], options); @@ -295,12 +293,12 @@ function customType(args: string) { function hideFieldDecorator(match: RegExpExecArray) { const result: Partial = { - name: 'HideField', arguments: [], - from: '@nestjs/graphql', defaultImport: undefined, - namespaceImport: undefined, + from: '@nestjs/graphql', match: undefined, + name: 'HideField', + namespaceImport: undefined, }; if (!match.groups?.args) { result.output = true; @@ -346,6 +344,6 @@ function getNamespace(name: unknown): string | undefined { if (result.includes('.')) { [result] = result.split('.'); } - // eslint-disable-next-line consistent-return + return result; } diff --git a/src/helpers/property-structure.ts b/src/helpers/property-structure.ts index c06d3a54..45ab27c0 100644 --- a/src/helpers/property-structure.ts +++ b/src/helpers/property-structure.ts @@ -12,22 +12,22 @@ export function propertyStructure(args: { hasExclamationToken?: boolean; }): PropertyDeclarationStructure { const { + hasExclamationToken, + hasQuestionToken, + isList, isNullable, - propertyType, name, - isList, - hasQuestionToken, - hasExclamationToken, + propertyType, } = args; const type = propertyType.map(type => (isList ? `Array<${type}>` : type)).join(' | '); return { + decorators: [], + hasExclamationToken: hasExclamationToken ?? !isNullable, + hasQuestionToken: hasQuestionToken ?? isNullable, kind: StructureKind.Property, + leadingTrivia: '\n', name, type, - hasQuestionToken: hasQuestionToken ?? isNullable, - hasExclamationToken: hasExclamationToken ?? !isNullable, - decorators: [], - leadingTrivia: '\n', }; } diff --git a/src/helpers/update-object-property.ts b/src/helpers/update-object-property.ts index 9bb05ec3..bd1b7d86 100644 --- a/src/helpers/update-object-property.ts +++ b/src/helpers/update-object-property.ts @@ -19,9 +19,9 @@ export function updateObjectProperty(args: { if (!propertyAssignment) { propertyAssignment = expression.addProperty({ - name, - kind: StructureKind.PropertyAssignment, initializer: 'undefined', + kind: StructureKind.PropertyAssignment, + name, }) as PropertyAssignment; } diff --git a/src/test/compatibility.ts b/src/test/compatibility.ts index f3d173c6..ccb7fbea 100644 --- a/src/test/compatibility.ts +++ b/src/test/compatibility.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unused-expressions, prefer-const, unicorn/no-null */ +/* eslint-disable @typescript-eslint/no-unused-expressions, prefer-const */ import { Field } from '@nestjs/graphql'; import { Prisma, PrismaClient } from '@prisma/client'; import * as P from '@prisma/client'; diff --git a/src/test/custom-decorators.spec.ts b/src/test/custom-decorators.spec.ts index 2f22e408..6ab354f2 100644 --- a/src/test/custom-decorators.spec.ts +++ b/src/test/custom-decorators.spec.ts @@ -9,6 +9,15 @@ let project: Project; describe('custom decorators namespace both input and output', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + // custom decorators (validate) + // import * as Validator from 'class-validator' + // @Validator.IsEmail() + // email: string + `fields_Validator_from = "class-validator"`, + `fields_Validator_input = true`, + ], schema: ` model User { id Int @id @@ -21,23 +30,14 @@ describe('custom decorators namespace both input and output', () => { /// @FieldType({ name: 'Scalars.GraphQLEmailAddress', from: 'graphql-scalars', input: true }) email String? }`, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - // custom decorators (validate) - // import * as Validator from 'class-validator' - // @Validator.IsEmail() - // email: string - `fields_Validator_from = "class-validator"`, - `fields_Validator_input = true`, - ], })); }); describe('aggregates should not have validators', () => { it('user-count-aggregate.input', () => { const s = testSourceFile({ - project, file: 'user-count-aggregate.input.ts', + project, property: 'email', }); expect(s.propertyDecorators).toHaveLength(1); @@ -51,8 +51,8 @@ describe('custom decorators namespace both input and output', () => { it('user-count-order-by-aggregate.input name is type of sort order', () => { const s = testSourceFile({ - project, file: 'user-count-order-by-aggregate.input.ts', + project, property: 'email', }); expect( @@ -68,9 +68,9 @@ describe('custom decorators namespace both input and output', () => { let classFile: any; before(() => { - ({ sourceFile, classFile } = testSourceFile({ - project, + ({ classFile, sourceFile } = testSourceFile({ file: 'user-create.input.ts', + project, })); importDeclarations = sourceFile .getImportDeclarations() @@ -88,16 +88,16 @@ describe('custom decorators namespace both input and output', () => { it('imports should contains custom import', () => { expect(importDeclarations).toContainEqual( expect.objectContaining({ - namespaceImport: 'Validator', moduleSpecifier: 'class-validator', + namespaceImport: 'Validator', }), ); }); it('several decorators length', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, property: 'age', }); expect(s.propertyDecorators).toHaveLength(3); @@ -113,8 +113,8 @@ describe('custom decorators namespace both input and output', () => { describe('should not have metadata in description', () => { it('age', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'age', }); expect(s.fieldDecoratorOptions).not.toContain('description'); @@ -122,8 +122,8 @@ describe('custom decorators namespace both input and output', () => { it('name', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'name', }); expect(s.fieldDecoratorOptions).not.toContain('description'); @@ -131,8 +131,8 @@ describe('custom decorators namespace both input and output', () => { it('email', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'email', }); expect(s.fieldDecoratorOptions).not.toContain('description'); @@ -141,8 +141,8 @@ describe('custom decorators namespace both input and output', () => { it('output model has no maxlength decorator', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'name', }); expect(s.propertyDecorators?.find(d => d.name === 'MaxLength')).toBeFalsy(); @@ -152,6 +152,12 @@ describe('custom decorators namespace both input and output', () => { describe('fieldtype disable output', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + `fields_Upload_from = "graphql-upload"`, + `fields_Upload_input = true`, + `fields_Upload_output = false`, + ], schema: ` model User { id String @id @default(cuid()) @@ -159,19 +165,13 @@ describe('fieldtype disable output', () => { image String? } `, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - `fields_Upload_from = "graphql-upload"`, - `fields_Upload_input = true`, - `fields_Upload_output = false`, - ], })); }); it('upload image output', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'image', }); expect(s.fieldDecoratorType).toEqual('() => String'); @@ -181,6 +181,12 @@ describe('fieldtype disable output', () => { describe('custom decorators and description', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + `fields_Validator_from = "class-validator"`, + `fields_Validator_output = true`, + `fields_Validator_input = true`, + ], schema: ` model User { /// user id really @@ -189,19 +195,13 @@ describe('custom decorators and description', () => { /// @Validator.Length(5, 15, "check length") name String }`, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - `fields_Validator_from = "class-validator"`, - `fields_Validator_output = true`, - `fields_Validator_input = true`, - ], })); }); it('has description', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'name', }); expect(s.fieldDecoratorOptions).toContain("description:'User name really'"); @@ -209,8 +209,8 @@ describe('custom decorators and description', () => { it('has decorator length', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'name', }); expect(s.propertyDecorators).toHaveLength(2); @@ -224,25 +224,25 @@ describe('custom decorators and description', () => { describe('custom decorators default import', () => { before(async () => { ({ project } = await testGenerate({ - schema: ` - model User { - id Int @id - /// @IsValidName() - name String - }`, options: [ `outputFilePattern = "{name}.{type}.ts"`, `fields_IsValidName_from = "is-valid-name"`, `fields_IsValidName_input = true`, `fields_IsValidName_defaultImport = IsValidName`, ], + schema: ` + model User { + id Int @id + /// @IsValidName() + name String + }`, })); }); it('importDeclarations should import default', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, }); const importDeclarations = s.sourceFile @@ -264,25 +264,25 @@ describe('custom decorators default import', () => { describe('default import alternative syntax', () => { before(async () => { ({ project } = await testGenerate({ - schema: ` - model User { - id Int @id - /// @IsEmail() - name String - }`, options: [ `outputFilePattern = "{name}.{type}.ts"`, `fields_IsEmail_from = "isvalidemail"`, `fields_IsEmail_input = true`, `fields_IsEmail_defaultImport = true`, ], + schema: ` + model User { + id Int @id + /// @IsEmail() + name String + }`, })); }); it('test', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, }); const importDeclarations = s.sourceFile .getImportDeclarations() @@ -302,6 +302,13 @@ describe('default import alternative syntax', () => { describe('custom decorators field custom type namespace', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + // import { EmailAddress } from 'graphql-scalars' + // @Field(() => EmailAddress) + `fields_Scalars_from = "graphql-scalars"`, + `fields_Scalars_input = true`, + ], schema: ` model User { id Int @id @@ -310,21 +317,14 @@ describe('custom decorators field custom type namespace', () => { /// @FieldType('Scalars.EmailAddress') secondEmail String }`, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - // import { EmailAddress } from 'graphql-scalars' - // @Field(() => EmailAddress) - `fields_Scalars_from = "graphql-scalars"`, - `fields_Scalars_input = true`, - ], })); }); describe('user create input', () => { it('email field type', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, property: 'email', }); expect(s.fieldDecoratorType).toEqual('() => Scalars.EmailAddress'); @@ -333,8 +333,8 @@ describe('custom decorators field custom type namespace', () => { it('field type secondemail', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, property: 'secondEmail', }); expect(s.fieldDecoratorType).toEqual('() => Scalars.EmailAddress'); @@ -342,8 +342,8 @@ describe('custom decorators field custom type namespace', () => { it('importdeclarations should import namespace', () => { const s = testSourceFile({ - project, file: 'user-create.input.ts', + project, }); expect(s.namespaceImports).toContainEqual({ name: 'Scalars', @@ -355,8 +355,8 @@ describe('custom decorators field custom type namespace', () => { describe('custom type user model', () => { it('custom type user model email field type', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'email', }); expect(s.fieldDecoratorType).toEqual('() => Scalars.EmailAddress'); @@ -367,13 +367,6 @@ describe('custom decorators field custom type namespace', () => { describe('decorate option', () => { before(async () => { ({ project } = await testGenerate({ - schema: ` - model User { - id Int @id @default(autoincrement()) - /// @Validator.MinLength(3) - name String - } - `, options: [ `outputFilePattern = "{name}.{type}.ts"`, `fields_Validator_from = "class-validator"`, @@ -391,26 +384,33 @@ describe('decorate option', () => { // `decorate_2_namespaceImport = "Transform"`, // `decorate_2_name = "Transform.Type"`, ], + schema: ` + model User { + id Int @id @default(autoincrement()) + /// @Validator.MinLength(3) + name String + } + `, })); }); it('validatenested create one user args', () => { const s = testSourceFile({ - project, file: 'create-one-user.args.ts', + project, property: 'data', }); expect(s.propertyDecorators).toContainEqual( expect.objectContaining({ - name: 'ValidateNested', arguments: [], + name: 'ValidateNested', typeArguments: [], }), ); expect(s.propertyDecorators).toContainEqual( expect.objectContaining({ - name: 'Type', arguments: ['() => UserCreateInput'], + name: 'Type', typeArguments: [], }), ); @@ -426,22 +426,22 @@ describe('decorate option', () => { it('validatenested create many user args', () => { const s = testSourceFile({ - project, file: 'create-many-user.args.ts', + project, property: 'data', }); expect(s.propertyDecorators).toContainEqual( expect.objectContaining({ - name: 'ValidateNested', arguments: [], + name: 'ValidateNested', typeArguments: [], }), ); expect(s.propertyDecorators).toContainEqual( expect.objectContaining({ - name: 'Type', arguments: ['() => UserCreateManyInput'], + name: 'Type', typeArguments: [], }), ); @@ -459,6 +459,12 @@ describe('decorate option', () => { describe('model decorate', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + `fields_NG_from = "@nestjs/graphql"`, + `fields_NG_output = false`, + `fields_NG_model = true`, + ], schema: ` /// @NG.Directive('@extends') /// @NG.Directive('@key(fields: "id")') @@ -466,19 +472,13 @@ describe('model decorate', () => { /// @NG.Directive('@external') id String @id }`, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - `fields_NG_from = "@nestjs/graphql"`, - `fields_NG_output = false`, - `fields_NG_model = true`, - ], })); }); it('user model id property', () => { const { propertyDecorators } = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'id', }); expect(propertyDecorators?.find(d => d.name === 'Directive')).toBeTruthy(); @@ -489,8 +489,8 @@ describe('model decorate', () => { it('user model class', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, }); expect(s.namespaceImports).toContainEqual({ name: 'NG', @@ -501,8 +501,8 @@ describe('model decorate', () => { it('usergroupby should not have ng.directive', () => { const s = testSourceFile({ - project, file: 'user-group-by.output.ts', + project, property: 'id', }); expect(s.propertyDecorators).toHaveLength(1); @@ -513,6 +513,7 @@ describe('model decorate', () => { describe('model directive', () => { before(async () => { ({ project } = await testGenerate({ + options: [`outputFilePattern = "{name}.{type}.ts"`], schema: ` /// @Directive({ arguments: ['@extends'] }) /// @Directive({ arguments: ['@key(fields: "id")'] }) @@ -520,14 +521,13 @@ describe('model directive', () => { /// @Directive({ arguments: ['@external'] }) id String @id }`, - options: [`outputFilePattern = "{name}.{type}.ts"`], })); }); it('user model id property', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, property: 'id', }); expect(s.propertyDecorators?.find(d => d.name === 'Directive')).toBeTruthy(); @@ -538,8 +538,8 @@ describe('model directive', () => { it('user model class', () => { const s = testSourceFile({ - project, file: 'user.model.ts', + project, }); expect(s.namedImports).toContainEqual({ name: 'Directive', @@ -550,8 +550,8 @@ describe('model directive', () => { it('usergroupby should not have ng.directive', () => { const s = testSourceFile({ - project, file: 'user-group-by.output.ts', + project, property: 'id', }); expect(s.propertyDecorators).toHaveLength(1); @@ -566,6 +566,14 @@ describe('model directive', () => { describe('hide and decorate', () => { before(async () => { ({ project } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + `decorate_3_type = "ProfileUncheckedCreateNestedOneWithoutUserInput"`, + `decorate_3_field = "!(create)"`, + `decorate_3_name = "HideField"`, + `decorate_3_from = "@nestjs/graphql"`, + `decorate_3_arguments = "[]"`, + ], schema: ` model User { id String @id @@ -577,14 +585,6 @@ describe('hide and decorate', () => { userId String @unique } `, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - `decorate_3_type = "ProfileUncheckedCreateNestedOneWithoutUserInput"`, - `decorate_3_field = "!(create)"`, - `decorate_3_name = "HideField"`, - `decorate_3_from = "@nestjs/graphql"`, - `decorate_3_arguments = "[]"`, - ], })); }); @@ -596,8 +596,8 @@ describe('hide and decorate', () => { it('should keep only create', () => { const s = testSourceFile({ - project, class: 'ProfileUncheckedCreateNestedOneWithoutUserInput', + project, property: 'create', }); @@ -606,12 +606,11 @@ describe('hide and decorate', () => { ); }); - // eslint-disable-next-line unicorn/no-array-for-each ['connect', 'connectOrCreate'].forEach(property => { it(`${property} property should be disabled`, () => { const s = testSourceFile({ - project, class: 'ProfileUncheckedCreateNestedOneWithoutUserInput', + project, property, }); diff --git a/src/test/decimal.spec.ts b/src/test/decimal.spec.ts index e564eb9b..46ad4fa0 100644 --- a/src/test/decimal.spec.ts +++ b/src/test/decimal.spec.ts @@ -407,7 +407,6 @@ describe('nested object decorate', () => { 'update', 'updateMany', 'deleteMany', - // eslint-disable-next-line unicorn/no-array-for-each ].forEach(property => { it(property, () => { const s = testSourceFile({ diff --git a/src/test/generate.spec.ts b/src/test/generate.spec.ts index c3acec53..66c97c24 100644 --- a/src/test/generate.spec.ts +++ b/src/test/generate.spec.ts @@ -1047,7 +1047,7 @@ it('several models', () => { .flatMap(s => s.getClasses()) .flatMap(d => d.getProperties()) .flatMap(p => p.getDecorators())) { - const argument = d.getCallExpression()?.getArguments()?.[0].getText(); + const argument = d.getCallExpression()?.getArguments()[0].getText(); expect(argument).not.toContain('null'); } }); diff --git a/src/test/helpers.ts b/src/test/helpers.ts index 9b9e38d4..5be4afd0 100644 --- a/src/test/helpers.ts +++ b/src/test/helpers.ts @@ -14,7 +14,7 @@ export function getFieldOptions( if (typeof property === 'string') { propertyDeclaration = sourceFile.getClass(() => true)?.getProperty(property); } - const result = propertyDeclaration?.getStructure()?.decorators?.[0]?.arguments?.[1]; + const result = propertyDeclaration?.getStructure().decorators?.[0]?.arguments?.[1]; return result as string; // return new Function(`return ${text}`)(); } diff --git a/src/test/test-generate.ts b/src/test/test-generate.ts index 4e3e4d47..37ea378f 100644 --- a/src/test/test-generate.ts +++ b/src/test/test-generate.ts @@ -12,7 +12,6 @@ import { generateFileName } from '../helpers/generate-file-name'; import { DMMF, EventArguments } from '../types'; const { '@prisma/generator-helper': generatorVersion } = - // eslint-disable-next-line unicorn/prefer-module require('../../package.json').dependencies; export async function testGenerate(args: { @@ -26,19 +25,19 @@ export async function testGenerate(args: { }; onConnect?: (emitter: AwaitEventEmitter) => void; }) { - const { schema, options, provider, createSouceFile, onConnect } = args; + const { createSouceFile, onConnect, options, provider, schema } = args; let project: Project | undefined; const connectCallback = (emitter: AwaitEventEmitter) => { onConnect && onConnect(emitter); if (createSouceFile) { emitter.on( 'PostBegin', - ({ config, project, output, getModelName }: EventArguments) => { + ({ config, getModelName, output, project }: EventArguments) => { const filePath = generateFileName({ - type: createSouceFile.type, - name: createSouceFile.name, getModelName, + name: createSouceFile.name, template: config.outputFilePattern, + type: createSouceFile.type, }); project.createSourceFile(`${output}/${filePath}`, createSouceFile.text, { overwrite: true, @@ -52,8 +51,8 @@ export async function testGenerate(args: { }; await generate({ ...(await createGeneratorOptions(schema, options, provider)), - skipAddOutputSourceFiles: true, connectCallback, + skipAddOutputSourceFiles: true, }); ok(project, 'Project is not defined'); @@ -171,7 +170,7 @@ async function createGeneratorOptions( }); }); } - // eslint-disable-next-line unicorn/prefer-module + return require(cacheFile); } diff --git a/src/test/test.spec.ts b/src/test/test.spec.ts index 549efba7..58e07066 100644 --- a/src/test/test.spec.ts +++ b/src/test/test.spec.ts @@ -41,6 +41,11 @@ const setSourceFile = (name: string) => { describe.skip('user test', () => { before(async () => { ({ project, sourceFiles } = await testGenerate({ + options: [ + `outputFilePattern = "{name}.{type}.ts"`, + `useInputType_WhereInput_ALL = "WhereInput"`, + `useInputType_CreateOne_ALL = "UncheckedCreate"`, + ], schema: ` model User { id Int @id @default(autoincrement()) @@ -58,11 +63,6 @@ model Post { authorId Int? } `, - options: [ - `outputFilePattern = "{name}.{type}.ts"`, - `useInputType_WhereInput_ALL = "WhereInput"`, - `useInputType_CreateOne_ALL = "UncheckedCreate"`, - ], })); }); diff --git a/src/types.ts b/src/types.ts index 51f6cf90..fedecd98 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,7 +10,7 @@ export type InputType = WritableDeep; export type FieldLocation = DMMF.FieldLocation; export type OutputType = WritableDeep; export type SchemaField = WritableDeep; -export type SchemaEnum = DMMF.SchemaEnum; +export type SchemaEnum = DMMF.DatamodelEnum; export type Model = WritableDeep; export type SchemaArg = WritableDeep; export type Schema = WritableDeep;