├── .commitlintrc.js ├── .cz-config.js ├── .editorconfig ├── .eslintrc.js ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── .prettierrc ├── .releaserc.js ├── .swcrc ├── @generated ├── article │ ├── aggregate-article.output.ts │ ├── article-aggregate.args.ts │ ├── article-avg-aggregate.input.ts │ ├── article-avg-aggregate.output.ts │ ├── article-avg-order-by-aggregate.input.ts │ ├── article-count-aggregate.input.ts │ ├── article-count-aggregate.output.ts │ ├── article-count-order-by-aggregate.input.ts │ ├── article-count.output.ts │ ├── article-create-many-author-input-envelope.input.ts │ ├── article-create-many-author.input.ts │ ├── article-create-many.input.ts │ ├── article-create-nested-many-without-author.input.ts │ ├── article-create-nested-many-without-favorited-by.input.ts │ ├── article-create-nested-many-without-tags.input.ts │ ├── article-create-nested-one-without-comments.input.ts │ ├── article-create-or-connect-without-author.input.ts │ ├── article-create-or-connect-without-comments.input.ts │ ├── article-create-or-connect-without-favorited-by.input.ts │ ├── article-create-or-connect-without-tags.input.ts │ ├── article-create-without-author.input.ts │ ├── article-create-without-comments.input.ts │ ├── article-create-without-favorited-by.input.ts │ ├── article-create-without-tags.input.ts │ ├── article-create.input.ts │ ├── article-group-by.args.ts │ ├── article-group-by.output.ts │ ├── article-list-relation-filter.input.ts │ ├── article-max-aggregate.input.ts │ ├── article-max-aggregate.output.ts │ ├── article-max-order-by-aggregate.input.ts │ ├── article-min-aggregate.input.ts │ ├── article-min-aggregate.output.ts │ ├── article-min-order-by-aggregate.input.ts │ ├── article-order-by-relation-aggregate.input.ts │ ├── article-order-by-relevance-field.enum.ts │ ├── article-order-by-relevance.input.ts │ ├── article-order-by-with-aggregation.input.ts │ ├── article-order-by-with-relation-and-search-relevance.input.ts │ ├── article-relation-filter.input.ts │ ├── article-scalar-field.enum.ts │ ├── article-scalar-where-with-aggregates.input.ts │ ├── article-scalar-where.input.ts │ ├── article-sum-aggregate.input.ts │ ├── article-sum-aggregate.output.ts │ ├── article-sum-order-by-aggregate.input.ts │ ├── article-unchecked-create-nested-many-without-author.input.ts │ ├── article-unchecked-create-nested-many-without-favorited-by.input.ts │ ├── article-unchecked-create-nested-many-without-tags.input.ts │ ├── article-unchecked-create-without-author.input.ts │ ├── article-unchecked-create-without-comments.input.ts │ ├── article-unchecked-create-without-favorited-by.input.ts │ ├── article-unchecked-create-without-tags.input.ts │ ├── article-unchecked-create.input.ts │ ├── article-unchecked-update-many-without-articles.input.ts │ ├── article-unchecked-update-many-without-author.input.ts │ ├── article-unchecked-update-many-without-favorite-articles.input.ts │ ├── article-unchecked-update-many-without-favorited-by.input.ts │ ├── article-unchecked-update-many-without-tags.input.ts │ ├── article-unchecked-update-many.input.ts │ ├── article-unchecked-update-without-author.input.ts │ ├── article-unchecked-update-without-comments.input.ts │ ├── article-unchecked-update-without-favorited-by.input.ts │ ├── article-unchecked-update-without-tags.input.ts │ ├── article-unchecked-update.input.ts │ ├── article-update-many-mutation.input.ts │ ├── article-update-many-with-where-without-author.input.ts │ ├── article-update-many-with-where-without-favorited-by.input.ts │ ├── article-update-many-with-where-without-tags.input.ts │ ├── article-update-many-without-author.input.ts │ ├── article-update-many-without-favorited-by.input.ts │ ├── article-update-many-without-tags.input.ts │ ├── article-update-one-without-comments.input.ts │ ├── article-update-with-where-unique-without-author.input.ts │ ├── article-update-with-where-unique-without-favorited-by.input.ts │ ├── article-update-with-where-unique-without-tags.input.ts │ ├── article-update-without-author.input.ts │ ├── article-update-without-comments.input.ts │ ├── article-update-without-favorited-by.input.ts │ ├── article-update-without-tags.input.ts │ ├── article-update.input.ts │ ├── article-upsert-with-where-unique-without-author.input.ts │ ├── article-upsert-with-where-unique-without-favorited-by.input.ts │ ├── article-upsert-with-where-unique-without-tags.input.ts │ ├── article-upsert-without-comments.input.ts │ ├── article-where-unique.input.ts │ ├── article-where.input.ts │ ├── article.model.ts │ ├── create-many-article.args.ts │ ├── create-one-article.args.ts │ ├── delete-many-article.args.ts │ ├── delete-one-article.args.ts │ ├── find-first-article.args.ts │ ├── find-many-article.args.ts │ ├── find-unique-article.args.ts │ ├── update-many-article.args.ts │ ├── update-one-article.args.ts │ └── upsert-one-article.args.ts ├── comment │ ├── aggregate-comment.output.ts │ ├── comment-aggregate.args.ts │ ├── comment-count-aggregate.input.ts │ ├── comment-count-aggregate.output.ts │ ├── comment-count-order-by-aggregate.input.ts │ ├── comment-create-many-article-input-envelope.input.ts │ ├── comment-create-many-article.input.ts │ ├── comment-create-many-author-input-envelope.input.ts │ ├── comment-create-many-author.input.ts │ ├── comment-create-many.input.ts │ ├── comment-create-nested-many-without-article.input.ts │ ├── comment-create-nested-many-without-author.input.ts │ ├── comment-create-or-connect-without-article.input.ts │ ├── comment-create-or-connect-without-author.input.ts │ ├── comment-create-without-article.input.ts │ ├── comment-create-without-author.input.ts │ ├── comment-create.input.ts │ ├── comment-group-by.args.ts │ ├── comment-group-by.output.ts │ ├── comment-list-relation-filter.input.ts │ ├── comment-max-aggregate.input.ts │ ├── comment-max-aggregate.output.ts │ ├── comment-max-order-by-aggregate.input.ts │ ├── comment-min-aggregate.input.ts │ ├── comment-min-aggregate.output.ts │ ├── comment-min-order-by-aggregate.input.ts │ ├── comment-order-by-relation-aggregate.input.ts │ ├── comment-order-by-relevance-field.enum.ts │ ├── comment-order-by-relevance.input.ts │ ├── comment-order-by-with-aggregation.input.ts │ ├── comment-order-by-with-relation-and-search-relevance.input.ts │ ├── comment-scalar-field.enum.ts │ ├── comment-scalar-where-with-aggregates.input.ts │ ├── comment-scalar-where.input.ts │ ├── comment-unchecked-create-nested-many-without-article.input.ts │ ├── comment-unchecked-create-nested-many-without-author.input.ts │ ├── comment-unchecked-create-without-article.input.ts │ ├── comment-unchecked-create-without-author.input.ts │ ├── comment-unchecked-create.input.ts │ ├── comment-unchecked-update-many-without-article.input.ts │ ├── comment-unchecked-update-many-without-author.input.ts │ ├── comment-unchecked-update-many-without-comments.input.ts │ ├── comment-unchecked-update-many.input.ts │ ├── comment-unchecked-update-without-article.input.ts │ ├── comment-unchecked-update-without-author.input.ts │ ├── comment-unchecked-update.input.ts │ ├── comment-update-many-mutation.input.ts │ ├── comment-update-many-with-where-without-article.input.ts │ ├── comment-update-many-with-where-without-author.input.ts │ ├── comment-update-many-without-article.input.ts │ ├── comment-update-many-without-author.input.ts │ ├── comment-update-with-where-unique-without-article.input.ts │ ├── comment-update-with-where-unique-without-author.input.ts │ ├── comment-update-without-article.input.ts │ ├── comment-update-without-author.input.ts │ ├── comment-update.input.ts │ ├── comment-upsert-with-where-unique-without-article.input.ts │ ├── comment-upsert-with-where-unique-without-author.input.ts │ ├── comment-where-unique.input.ts │ ├── comment-where.input.ts │ ├── comment.model.ts │ ├── create-many-comment.args.ts │ ├── create-one-comment.args.ts │ ├── delete-many-comment.args.ts │ ├── delete-one-comment.args.ts │ ├── find-first-comment.args.ts │ ├── find-many-comment.args.ts │ ├── find-unique-comment.args.ts │ ├── update-many-comment.args.ts │ ├── update-one-comment.args.ts │ └── upsert-one-comment.args.ts ├── dummy │ ├── aggregate-dummy.output.ts │ ├── create-many-dummy.args.ts │ ├── create-one-dummy.args.ts │ ├── delete-many-dummy.args.ts │ ├── delete-one-dummy.args.ts │ ├── dummy-aggregate.args.ts │ ├── dummy-avg-aggregate.input.ts │ ├── dummy-avg-aggregate.output.ts │ ├── dummy-avg-order-by-aggregate.input.ts │ ├── dummy-count-aggregate.input.ts │ ├── dummy-count-aggregate.output.ts │ ├── dummy-count-order-by-aggregate.input.ts │ ├── dummy-create-many.input.ts │ ├── dummy-create.input.ts │ ├── dummy-createdecimals.input.ts │ ├── dummy-createfriends.input.ts │ ├── dummy-group-by.args.ts │ ├── dummy-group-by.output.ts │ ├── dummy-max-aggregate.input.ts │ ├── dummy-max-aggregate.output.ts │ ├── dummy-max-order-by-aggregate.input.ts │ ├── dummy-min-aggregate.input.ts │ ├── dummy-min-aggregate.output.ts │ ├── dummy-min-order-by-aggregate.input.ts │ ├── dummy-order-by-relevance-field.enum.ts │ ├── dummy-order-by-relevance.input.ts │ ├── dummy-order-by-with-aggregation.input.ts │ ├── dummy-order-by-with-relation-and-search-relevance.input.ts │ ├── dummy-scalar-field.enum.ts │ ├── dummy-scalar-where-with-aggregates.input.ts │ ├── dummy-sum-aggregate.input.ts │ ├── dummy-sum-aggregate.output.ts │ ├── dummy-sum-order-by-aggregate.input.ts │ ├── dummy-unchecked-create.input.ts │ ├── dummy-unchecked-update-many.input.ts │ ├── dummy-unchecked-update.input.ts │ ├── dummy-update-many-mutation.input.ts │ ├── dummy-update.input.ts │ ├── dummy-updatedecimals.input.ts │ ├── dummy-updatefriends.input.ts │ ├── dummy-where-unique.input.ts │ ├── dummy-where.input.ts │ ├── dummy.model.ts │ ├── find-first-dummy.args.ts │ ├── find-many-dummy.args.ts │ ├── find-unique-dummy.args.ts │ ├── update-many-dummy.args.ts │ ├── update-one-dummy.args.ts │ └── upsert-one-dummy.args.ts ├── prisma │ ├── affected-rows.output.ts │ ├── big-int-nullable-filter.input.ts │ ├── big-int-nullable-with-aggregates-filter.input.ts │ ├── bool-nullable-filter.input.ts │ ├── bool-nullable-with-aggregates-filter.input.ts │ ├── bytes-nullable-filter.input.ts │ ├── bytes-nullable-with-aggregates-filter.input.ts │ ├── date-time-field-update-operations.input.ts │ ├── date-time-filter.input.ts │ ├── date-time-nullable-filter.input.ts │ ├── date-time-nullable-with-aggregates-filter.input.ts │ ├── date-time-with-aggregates-filter.input.ts │ ├── decimal-field-update-operations.input.ts │ ├── decimal-filter.input.ts │ ├── decimal-nullable-filter.input.ts │ ├── decimal-nullable-list-filter.input.ts │ ├── decimal-nullable-with-aggregates-filter.input.ts │ ├── decimal-with-aggregates-filter.input.ts │ ├── enum-role-nullable-filter.input.ts │ ├── enum-role-nullable-with-aggregates-filter.input.ts │ ├── float-nullable-filter.input.ts │ ├── float-nullable-with-aggregates-filter.input.ts │ ├── int-field-update-operations.input.ts │ ├── int-filter.input.ts │ ├── int-nullable-filter.input.ts │ ├── int-nullable-with-aggregates-filter.input.ts │ ├── int-with-aggregates-filter.input.ts │ ├── json-null-value-filter.enum.ts │ ├── json-nullable-filter.input.ts │ ├── json-nullable-with-aggregates-filter.input.ts │ ├── nested-big-int-nullable-filter.input.ts │ ├── nested-big-int-nullable-with-aggregates-filter.input.ts │ ├── nested-bool-nullable-filter.input.ts │ ├── nested-bool-nullable-with-aggregates-filter.input.ts │ ├── nested-bytes-nullable-filter.input.ts │ ├── nested-bytes-nullable-with-aggregates-filter.input.ts │ ├── nested-date-time-filter.input.ts │ ├── nested-date-time-nullable-filter.input.ts │ ├── nested-date-time-nullable-with-aggregates-filter.input.ts │ ├── nested-date-time-with-aggregates-filter.input.ts │ ├── nested-decimal-filter.input.ts │ ├── nested-decimal-nullable-filter.input.ts │ ├── nested-decimal-nullable-with-aggregates-filter.input.ts │ ├── nested-decimal-with-aggregates-filter.input.ts │ ├── nested-enum-role-nullable-filter.input.ts │ ├── nested-enum-role-nullable-with-aggregates-filter.input.ts │ ├── nested-float-filter.input.ts │ ├── nested-float-nullable-filter.input.ts │ ├── nested-float-nullable-with-aggregates-filter.input.ts │ ├── nested-int-filter.input.ts │ ├── nested-int-nullable-filter.input.ts │ ├── nested-int-nullable-with-aggregates-filter.input.ts │ ├── nested-int-with-aggregates-filter.input.ts │ ├── nested-json-nullable-filter.input.ts │ ├── nested-string-filter.input.ts │ ├── nested-string-nullable-filter.input.ts │ ├── nested-string-nullable-with-aggregates-filter.input.ts │ ├── nested-string-with-aggregates-filter.input.ts │ ├── nullable-big-int-field-update-operations.input.ts │ ├── nullable-bool-field-update-operations.input.ts │ ├── nullable-bytes-field-update-operations.input.ts │ ├── nullable-date-time-field-update-operations.input.ts │ ├── nullable-decimal-field-update-operations.input.ts │ ├── nullable-enum-role-field-update-operations.input.ts │ ├── nullable-float-field-update-operations.input.ts │ ├── nullable-int-field-update-operations.input.ts │ ├── nullable-json-null-value-input.enum.ts │ ├── nullable-string-field-update-operations.input.ts │ ├── query-mode.enum.ts │ ├── role.enum.ts │ ├── sort-order.enum.ts │ ├── string-field-update-operations.input.ts │ ├── string-filter.input.ts │ ├── string-nullable-filter.input.ts │ ├── string-nullable-list-filter.input.ts │ ├── string-nullable-with-aggregates-filter.input.ts │ └── string-with-aggregates-filter.input.ts ├── profile │ ├── aggregate-profile.output.ts │ ├── create-many-profile.args.ts │ ├── create-one-profile.args.ts │ ├── delete-many-profile.args.ts │ ├── delete-one-profile.args.ts │ ├── find-first-profile.args.ts │ ├── find-many-profile.args.ts │ ├── find-unique-profile.args.ts │ ├── profile-aggregate.args.ts │ ├── profile-avg-aggregate.input.ts │ ├── profile-avg-aggregate.output.ts │ ├── profile-avg-order-by-aggregate.input.ts │ ├── profile-count-aggregate.input.ts │ ├── profile-count-aggregate.output.ts │ ├── profile-count-order-by-aggregate.input.ts │ ├── profile-create-many.input.ts │ ├── profile-create-nested-one-without-user.input.ts │ ├── profile-create-or-connect-without-user.input.ts │ ├── profile-create-without-user.input.ts │ ├── profile-create.input.ts │ ├── profile-group-by.args.ts │ ├── profile-group-by.output.ts │ ├── profile-max-aggregate.input.ts │ ├── profile-max-aggregate.output.ts │ ├── profile-max-order-by-aggregate.input.ts │ ├── profile-min-aggregate.input.ts │ ├── profile-min-aggregate.output.ts │ ├── profile-min-order-by-aggregate.input.ts │ ├── profile-order-by-relevance-field.enum.ts │ ├── profile-order-by-relevance.input.ts │ ├── profile-order-by-with-aggregation.input.ts │ ├── profile-order-by-with-relation-and-search-relevance.input.ts │ ├── profile-relation-filter.input.ts │ ├── profile-scalar-field.enum.ts │ ├── profile-scalar-where-with-aggregates.input.ts │ ├── profile-sum-aggregate.input.ts │ ├── profile-sum-aggregate.output.ts │ ├── profile-sum-order-by-aggregate.input.ts │ ├── profile-unchecked-create-nested-one-without-user.input.ts │ ├── profile-unchecked-create-without-user.input.ts │ ├── profile-unchecked-create.input.ts │ ├── profile-unchecked-update-many.input.ts │ ├── profile-unchecked-update-one-without-user.input.ts │ ├── profile-unchecked-update-without-user.input.ts │ ├── profile-unchecked-update.input.ts │ ├── profile-update-many-mutation.input.ts │ ├── profile-update-one-without-user.input.ts │ ├── profile-update-without-user.input.ts │ ├── profile-update.input.ts │ ├── profile-upsert-without-user.input.ts │ ├── profile-where-unique.input.ts │ ├── profile-where.input.ts │ ├── profile.model.ts │ ├── update-many-profile.args.ts │ ├── update-one-profile.args.ts │ └── upsert-one-profile.args.ts ├── tag │ ├── aggregate-tag.output.ts │ ├── create-many-tag.args.ts │ ├── create-one-tag.args.ts │ ├── delete-many-tag.args.ts │ ├── delete-one-tag.args.ts │ ├── find-first-tag.args.ts │ ├── find-many-tag.args.ts │ ├── find-unique-tag.args.ts │ ├── tag-aggregate.args.ts │ ├── tag-count-aggregate.input.ts │ ├── tag-count-aggregate.output.ts │ ├── tag-count-order-by-aggregate.input.ts │ ├── tag-count.output.ts │ ├── tag-create-many.input.ts │ ├── tag-create-nested-many-without-articles.input.ts │ ├── tag-create-or-connect-without-articles.input.ts │ ├── tag-create-without-articles.input.ts │ ├── tag-create.input.ts │ ├── tag-group-by.args.ts │ ├── tag-group-by.output.ts │ ├── tag-list-relation-filter.input.ts │ ├── tag-max-aggregate.input.ts │ ├── tag-max-aggregate.output.ts │ ├── tag-max-order-by-aggregate.input.ts │ ├── tag-min-aggregate.input.ts │ ├── tag-min-aggregate.output.ts │ ├── tag-min-order-by-aggregate.input.ts │ ├── tag-order-by-relation-aggregate.input.ts │ ├── tag-order-by-relevance-field.enum.ts │ ├── tag-order-by-relevance.input.ts │ ├── tag-order-by-with-aggregation.input.ts │ ├── tag-order-by-with-relation-and-search-relevance.input.ts │ ├── tag-scalar-field.enum.ts │ ├── tag-scalar-where-with-aggregates.input.ts │ ├── tag-scalar-where.input.ts │ ├── tag-unchecked-create-nested-many-without-articles.input.ts │ ├── tag-unchecked-create-without-articles.input.ts │ ├── tag-unchecked-create.input.ts │ ├── tag-unchecked-update-many-without-articles.input.ts │ ├── tag-unchecked-update-many-without-tags.input.ts │ ├── tag-unchecked-update-many.input.ts │ ├── tag-unchecked-update-without-articles.input.ts │ ├── tag-unchecked-update.input.ts │ ├── tag-update-many-mutation.input.ts │ ├── tag-update-many-with-where-without-articles.input.ts │ ├── tag-update-many-without-articles.input.ts │ ├── tag-update-with-where-unique-without-articles.input.ts │ ├── tag-update-without-articles.input.ts │ ├── tag-update.input.ts │ ├── tag-upsert-with-where-unique-without-articles.input.ts │ ├── tag-where-unique.input.ts │ ├── tag-where.input.ts │ ├── tag.model.ts │ ├── update-many-tag.args.ts │ ├── update-one-tag.args.ts │ └── upsert-one-tag.args.ts └── user │ ├── aggregate-user.output.ts │ ├── create-many-user.args.ts │ ├── create-one-user.args.ts │ ├── delete-many-user.args.ts │ ├── delete-one-user.args.ts │ ├── find-first-user.args.ts │ ├── find-many-user.args.ts │ ├── find-unique-user.args.ts │ ├── update-many-user.args.ts │ ├── update-one-user.args.ts │ ├── upsert-one-user.args.ts │ ├── user-aggregate.args.ts │ ├── user-avg-aggregate.input.ts │ ├── user-avg-aggregate.output.ts │ ├── user-avg-order-by-aggregate.input.ts │ ├── user-count-aggregate.input.ts │ ├── user-count-aggregate.output.ts │ ├── user-count-order-by-aggregate.input.ts │ ├── user-count.output.ts │ ├── user-create-many.input.ts │ ├── user-create-nested-many-without-favorite-articles.input.ts │ ├── user-create-nested-many-without-followers.input.ts │ ├── user-create-nested-many-without-following.input.ts │ ├── user-create-nested-one-without-articles.input.ts │ ├── user-create-nested-one-without-comments.input.ts │ ├── user-create-nested-one-without-profile.input.ts │ ├── user-create-or-connect-without-articles.input.ts │ ├── user-create-or-connect-without-comments.input.ts │ ├── user-create-or-connect-without-favorite-articles.input.ts │ ├── user-create-or-connect-without-followers.input.ts │ ├── user-create-or-connect-without-following.input.ts │ ├── user-create-or-connect-without-profile.input.ts │ ├── user-create-without-articles.input.ts │ ├── user-create-without-comments.input.ts │ ├── user-create-without-favorite-articles.input.ts │ ├── user-create-without-followers.input.ts │ ├── user-create-without-following.input.ts │ ├── user-create-without-profile.input.ts │ ├── user-create.input.ts │ ├── user-email-name-compound-unique.input.ts │ ├── user-group-by.args.ts │ ├── user-group-by.output.ts │ ├── user-list-relation-filter.input.ts │ ├── user-max-aggregate.input.ts │ ├── user-max-aggregate.output.ts │ ├── user-max-order-by-aggregate.input.ts │ ├── user-min-aggregate.input.ts │ ├── user-min-aggregate.output.ts │ ├── user-min-order-by-aggregate.input.ts │ ├── user-order-by-relation-aggregate.input.ts │ ├── user-order-by-relevance-field.enum.ts │ ├── user-order-by-relevance.input.ts │ ├── user-order-by-with-aggregation.input.ts │ ├── user-order-by-with-relation-and-search-relevance.input.ts │ ├── user-relation-filter.input.ts │ ├── user-scalar-field.enum.ts │ ├── user-scalar-where-with-aggregates.input.ts │ ├── user-scalar-where.input.ts │ ├── user-sum-aggregate.input.ts │ ├── user-sum-aggregate.output.ts │ ├── user-sum-order-by-aggregate.input.ts │ ├── user-unchecked-create-nested-many-without-favorite-articles.input.ts │ ├── user-unchecked-create-nested-many-without-followers.input.ts │ ├── user-unchecked-create-nested-many-without-following.input.ts │ ├── user-unchecked-create-without-articles.input.ts │ ├── user-unchecked-create-without-comments.input.ts │ ├── user-unchecked-create-without-favorite-articles.input.ts │ ├── user-unchecked-create-without-followers.input.ts │ ├── user-unchecked-create-without-following.input.ts │ ├── user-unchecked-create-without-profile.input.ts │ ├── user-unchecked-create.input.ts │ ├── user-unchecked-update-many-without-favorite-articles.input.ts │ ├── user-unchecked-update-many-without-favorited-by.input.ts │ ├── user-unchecked-update-many-without-followers.input.ts │ ├── user-unchecked-update-many-without-following.input.ts │ ├── user-unchecked-update-many.input.ts │ ├── user-unchecked-update-without-articles.input.ts │ ├── user-unchecked-update-without-comments.input.ts │ ├── user-unchecked-update-without-favorite-articles.input.ts │ ├── user-unchecked-update-without-followers.input.ts │ ├── user-unchecked-update-without-following.input.ts │ ├── user-unchecked-update-without-profile.input.ts │ ├── user-unchecked-update.input.ts │ ├── user-update-many-mutation.input.ts │ ├── user-update-many-with-where-without-favorite-articles.input.ts │ ├── user-update-many-with-where-without-followers.input.ts │ ├── user-update-many-with-where-without-following.input.ts │ ├── user-update-many-without-favorite-articles.input.ts │ ├── user-update-many-without-followers.input.ts │ ├── user-update-many-without-following.input.ts │ ├── user-update-one-required-without-articles.input.ts │ ├── user-update-one-required-without-comments.input.ts │ ├── user-update-one-required-without-profile.input.ts │ ├── user-update-with-where-unique-without-favorite-articles.input.ts │ ├── user-update-with-where-unique-without-followers.input.ts │ ├── user-update-with-where-unique-without-following.input.ts │ ├── user-update-without-articles.input.ts │ ├── user-update-without-comments.input.ts │ ├── user-update-without-favorite-articles.input.ts │ ├── user-update-without-followers.input.ts │ ├── user-update-without-following.input.ts │ ├── user-update-without-profile.input.ts │ ├── user-update.input.ts │ ├── user-upsert-with-where-unique-without-favorite-articles.input.ts │ ├── user-upsert-with-where-unique-without-followers.input.ts │ ├── user-upsert-with-where-unique-without-following.input.ts │ ├── user-upsert-without-articles.input.ts │ ├── user-upsert-without-comments.input.ts │ ├── user-upsert-without-profile.input.ts │ ├── user-where-unique.input.ts │ ├── user-where.input.ts │ └── user.model.ts ├── CHANGELOG.md ├── LICENSE ├── README.md ├── Taskfile ├── example ├── app.module.ts ├── dummy │ ├── dummy.module.ts │ └── dummy.resolver.ts ├── main.ts └── user │ ├── user-date.input.ts │ ├── user.module.ts │ └── user.resolver.ts ├── package.json ├── prisma └── schema.prisma ├── src ├── bin.js ├── generate.ts ├── handlers │ ├── args-type.ts │ ├── combine-scalar-filters.ts │ ├── create-aggregate-input.ts │ ├── emit-single.ts │ ├── generate-files.ts │ ├── input-type.ts │ ├── model-data.ts │ ├── model-output-type.ts │ ├── no-atomic-operations.ts │ ├── output-type.ts │ ├── purge-output.ts │ ├── re-export.ts │ ├── register-enum.ts │ ├── require-single-fields-in-whereunique-input.ts │ └── warning.ts ├── helpers │ ├── create-comment.ts │ ├── create-config.spec.ts │ ├── create-config.ts │ ├── factory-get-source-file.ts │ ├── file-type-by-location.ts │ ├── generate-file-name.spec.ts │ ├── generate-file-name.ts │ ├── get-graphql-import.ts │ ├── get-graphql-input-type.ts │ ├── get-model-name.ts │ ├── get-output-type-name.ts │ ├── get-property-type.ts │ ├── import-declaration-map.ts │ ├── object-settings.ts │ ├── pascal-case.ts │ ├── property-structure.ts │ ├── relative-path.ts │ └── update-object-property.ts ├── index.ts ├── test │ ├── compatibility.ts │ ├── custom-decorators.spec.ts │ ├── decimal.spec.ts │ ├── generate.spec.ts │ ├── helpers.ts │ ├── hide-field.spec.ts │ ├── mongodb.spec.ts │ ├── proxy-generator.ts │ ├── test-generate.ts │ └── test.spec.ts └── types.ts └── tsconfig.json /.commitlintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | rules: { 4 | 'subject-case': [2, 'always', ['sentence-case']], 5 | 'scope-case': [2, 'always', ['lower-case', 'upper-case']], 6 | 'body-max-line-length': [1, 'never'], 7 | 'footer-max-line-length': [1, 'never'], 8 | }, 9 | }; 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock = false 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 88, 3 | "trailingComma": "all", 4 | "tabWidth": 2, 5 | "semi": true, 6 | "singleQuote": true, 7 | "arrowParens": "avoid", 8 | "overrides": [ 9 | { 10 | "files": "*.{json,yml}", 11 | "options": { 12 | "tabWidth": 2 13 | } 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /.releaserc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | [ 4 | '@semantic-release/commit-analyzer', 5 | { 6 | preset: 'conventionalcommits', 7 | }, 8 | ], 9 | [ 10 | '@semantic-release/release-notes-generator', 11 | { 12 | preset: 'conventionalcommits', 13 | }, 14 | ], 15 | '@semantic-release/changelog', 16 | [ 17 | '@semantic-release/npm', 18 | { 19 | pkgRoot: 'dist', 20 | }, 21 | ], 22 | '@semantic-release/github', 23 | '@semantic-release/git', 24 | ], 25 | }; 26 | -------------------------------------------------------------------------------- /.swcrc: -------------------------------------------------------------------------------- 1 | { 2 | "sourceMaps": false, 3 | "module": { 4 | "type": "commonjs" 5 | }, 6 | "jsc": { 7 | "externalHelpers": true, 8 | "keepClassNames": true, 9 | "target": "es2020", 10 | "parser": { 11 | "syntax": "typescript", 12 | "tsx": false, 13 | "decorators": false 14 | }, 15 | "transform": { 16 | "legacyDecorator": true, 17 | "decoratorMetadata": false 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /@generated/article/article-avg-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ArticleAvgAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | favoritesCount?: true; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/article/article-avg-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ArticleAvgAggregate { 7 | @Field(() => Float, { nullable: true }) 8 | favoritesCount?: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/article/article-avg-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ArticleAvgOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | favoritesCount?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/article/article-count.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ArticleCount { 7 | @Field(() => Int, { nullable: false }) 8 | tags?: number; 9 | 10 | @Field(() => Int, { nullable: false }) 11 | favoritedBy?: number; 12 | 13 | @Field(() => Int, { nullable: false }) 14 | comments?: number; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/article/article-create-many-author-input-envelope.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleCreateManyAuthorInput } from './article-create-many-author.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class ArticleCreateManyAuthorInputEnvelope { 8 | @Field(() => [ArticleCreateManyAuthorInput], { nullable: false }) 9 | @Type(() => ArticleCreateManyAuthorInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/article/article-create-many-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { HideField } from '@nestjs/graphql'; 4 | import { Int } from '@nestjs/graphql'; 5 | 6 | @InputType() 7 | export class ArticleCreateManyAuthorInput { 8 | @Field(() => String, { nullable: true }) 9 | id?: string; 10 | 11 | @Field(() => String, { nullable: false }) 12 | slug!: string; 13 | 14 | @Field(() => String, { nullable: false }) 15 | title!: string; 16 | 17 | @Field(() => String, { nullable: false }) 18 | description!: string; 19 | 20 | @Field(() => String, { nullable: false }) 21 | body!: string; 22 | 23 | @HideField() 24 | createdAt?: Date | string; 25 | 26 | @Field(() => Date, { nullable: true }) 27 | updatedAt?: Date | string; 28 | 29 | @Field(() => Int, { nullable: true }) 30 | favoritesCount?: number; 31 | 32 | @Field(() => Boolean, { nullable: true }) 33 | active?: boolean; 34 | } 35 | -------------------------------------------------------------------------------- /@generated/article/article-create-or-connect-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateWithoutAuthorInput } from './article-create-without-author.input'; 6 | 7 | @InputType() 8 | export class ArticleCreateOrConnectWithoutAuthorInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleCreateWithoutAuthorInput, { nullable: false }) 14 | @Type(() => ArticleCreateWithoutAuthorInput) 15 | create!: ArticleCreateWithoutAuthorInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-create-or-connect-without-comments.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateWithoutCommentsInput } from './article-create-without-comments.input'; 6 | 7 | @InputType() 8 | export class ArticleCreateOrConnectWithoutCommentsInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleCreateWithoutCommentsInput, { nullable: false }) 14 | @Type(() => ArticleCreateWithoutCommentsInput) 15 | create!: ArticleCreateWithoutCommentsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-create-or-connect-without-favorited-by.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateWithoutFavoritedByInput } from './article-create-without-favorited-by.input'; 6 | 7 | @InputType() 8 | export class ArticleCreateOrConnectWithoutFavoritedByInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleCreateWithoutFavoritedByInput, { nullable: false }) 14 | @Type(() => ArticleCreateWithoutFavoritedByInput) 15 | create!: ArticleCreateWithoutFavoritedByInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-create-or-connect-without-tags.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateWithoutTagsInput } from './article-create-without-tags.input'; 6 | 7 | @InputType() 8 | export class ArticleCreateOrConnectWithoutTagsInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleCreateWithoutTagsInput, { nullable: false }) 14 | @Type(() => ArticleCreateWithoutTagsInput) 15 | create!: ArticleCreateWithoutTagsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-list-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereInput } from './article-where.input'; 4 | 5 | @InputType() 6 | export class ArticleListRelationFilter { 7 | @Field(() => ArticleWhereInput, { nullable: true }) 8 | every?: ArticleWhereInput; 9 | 10 | @Field(() => ArticleWhereInput, { nullable: true }) 11 | some?: ArticleWhereInput; 12 | 13 | @Field(() => ArticleWhereInput, { nullable: true }) 14 | none?: ArticleWhereInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/article/article-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ArticleMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | slug?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | title?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | description?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | body?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | createdAt?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | updatedAt?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | favoritesCount?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | authorId?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | active?: true; 35 | } 36 | -------------------------------------------------------------------------------- /@generated/article/article-max-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ArticleMaxAggregate { 7 | @Field(() => String, { nullable: true }) 8 | id?: string; 9 | 10 | @Field(() => String, { nullable: true }) 11 | slug?: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | title?: string; 15 | 16 | @Field(() => String, { nullable: true }) 17 | description?: string; 18 | 19 | @Field(() => String, { nullable: true }) 20 | body?: string; 21 | 22 | @Field(() => Date, { nullable: true }) 23 | createdAt?: Date | string; 24 | 25 | @Field(() => Date, { nullable: true }) 26 | updatedAt?: Date | string; 27 | 28 | @Field(() => Int, { nullable: true }) 29 | favoritesCount?: number; 30 | 31 | @Field(() => String, { nullable: true }) 32 | authorId?: string; 33 | 34 | @Field(() => Boolean, { nullable: true }) 35 | active?: boolean; 36 | } 37 | -------------------------------------------------------------------------------- /@generated/article/article-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ArticleMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | slug?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | title?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | description?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | body?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | createdAt?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | updatedAt?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | favoritesCount?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | authorId?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | active?: true; 35 | } 36 | -------------------------------------------------------------------------------- /@generated/article/article-min-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ArticleMinAggregate { 7 | @Field(() => String, { nullable: true }) 8 | id?: string; 9 | 10 | @Field(() => String, { nullable: true }) 11 | slug?: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | title?: string; 15 | 16 | @Field(() => String, { nullable: true }) 17 | description?: string; 18 | 19 | @Field(() => String, { nullable: true }) 20 | body?: string; 21 | 22 | @Field(() => Date, { nullable: true }) 23 | createdAt?: Date | string; 24 | 25 | @Field(() => Date, { nullable: true }) 26 | updatedAt?: Date | string; 27 | 28 | @Field(() => Int, { nullable: true }) 29 | favoritesCount?: number; 30 | 31 | @Field(() => String, { nullable: true }) 32 | authorId?: string; 33 | 34 | @Field(() => Boolean, { nullable: true }) 35 | active?: boolean; 36 | } 37 | -------------------------------------------------------------------------------- /@generated/article/article-order-by-relation-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ArticleOrderByRelationAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | _count?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/article/article-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum ArticleOrderByRelevanceFieldEnum { 4 | id = 'id', 5 | slug = 'slug', 6 | title = 'title', 7 | description = 'description', 8 | body = 'body', 9 | authorId = 'authorId', 10 | } 11 | 12 | registerEnumType(ArticleOrderByRelevanceFieldEnum, { 13 | name: 'ArticleOrderByRelevanceFieldEnum', 14 | description: undefined, 15 | }); 16 | -------------------------------------------------------------------------------- /@generated/article/article-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleOrderByRelevanceFieldEnum } from './article-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class ArticleOrderByRelevanceInput { 8 | @Field(() => [ArticleOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereInput } from './article-where.input'; 4 | 5 | @InputType() 6 | export class ArticleRelationFilter { 7 | @Field(() => ArticleWhereInput, { nullable: true }) 8 | is?: ArticleWhereInput; 9 | 10 | @Field(() => ArticleWhereInput, { nullable: true }) 11 | isNot?: ArticleWhereInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/article/article-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum ArticleScalarFieldEnum { 4 | id = 'id', 5 | slug = 'slug', 6 | title = 'title', 7 | description = 'description', 8 | body = 'body', 9 | createdAt = 'createdAt', 10 | updatedAt = 'updatedAt', 11 | favoritesCount = 'favoritesCount', 12 | authorId = 'authorId', 13 | active = 'active', 14 | } 15 | 16 | registerEnumType(ArticleScalarFieldEnum, { 17 | name: 'ArticleScalarFieldEnum', 18 | description: undefined, 19 | }); 20 | -------------------------------------------------------------------------------- /@generated/article/article-sum-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ArticleSumAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | favoritesCount?: true; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/article/article-sum-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ArticleSumAggregate { 7 | @Field(() => Int, { nullable: true }) 8 | favoritesCount?: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/article/article-sum-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ArticleSumOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | favoritesCount?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/article/article-update-many-with-where-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleScalarWhereInput } from './article-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateManyWithWhereWithoutAuthorInput { 9 | @Field(() => ArticleScalarWhereInput, { nullable: false }) 10 | @Type(() => ArticleScalarWhereInput) 11 | where!: ArticleScalarWhereInput; 12 | 13 | @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => ArticleUpdateManyMutationInput) 15 | data!: ArticleUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-update-many-with-where-without-favorited-by.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleScalarWhereInput } from './article-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateManyWithWhereWithoutFavoritedByInput { 9 | @Field(() => ArticleScalarWhereInput, { nullable: false }) 10 | @Type(() => ArticleScalarWhereInput) 11 | where!: ArticleScalarWhereInput; 12 | 13 | @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => ArticleUpdateManyMutationInput) 15 | data!: ArticleUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-update-many-with-where-without-tags.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleScalarWhereInput } from './article-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateManyWithWhereWithoutTagsInput { 9 | @Field(() => ArticleScalarWhereInput, { nullable: false }) 10 | @Type(() => ArticleScalarWhereInput) 11 | where!: ArticleScalarWhereInput; 12 | 13 | @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => ArticleUpdateManyMutationInput) 15 | data!: ArticleUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-update-with-where-unique-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateWithoutAuthorInput } from './article-update-without-author.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateWithWhereUniqueWithoutAuthorInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleUpdateWithoutAuthorInput, { nullable: false }) 14 | @Type(() => ArticleUpdateWithoutAuthorInput) 15 | data!: ArticleUpdateWithoutAuthorInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-update-with-where-unique-without-favorited-by.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateWithoutFavoritedByInput } from './article-update-without-favorited-by.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateWithWhereUniqueWithoutFavoritedByInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleUpdateWithoutFavoritedByInput, { nullable: false }) 14 | @Type(() => ArticleUpdateWithoutFavoritedByInput) 15 | data!: ArticleUpdateWithoutFavoritedByInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-update-with-where-unique-without-tags.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateWithoutTagsInput } from './article-update-without-tags.input'; 6 | 7 | @InputType() 8 | export class ArticleUpdateWithWhereUniqueWithoutTagsInput { 9 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 10 | @Type(() => ArticleWhereUniqueInput) 11 | where!: ArticleWhereUniqueInput; 12 | 13 | @Field(() => ArticleUpdateWithoutTagsInput, { nullable: false }) 14 | @Type(() => ArticleUpdateWithoutTagsInput) 15 | data!: ArticleUpdateWithoutTagsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-upsert-with-where-unique-without-tags.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleUpdateWithoutTagsInput } from './article-update-without-tags.input'; 6 | import { ArticleCreateWithoutTagsInput } from './article-create-without-tags.input'; 7 | 8 | @InputType() 9 | export class ArticleUpsertWithWhereUniqueWithoutTagsInput { 10 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 11 | @Type(() => ArticleWhereUniqueInput) 12 | where!: ArticleWhereUniqueInput; 13 | 14 | @Field(() => ArticleUpdateWithoutTagsInput, { nullable: false }) 15 | @Type(() => ArticleUpdateWithoutTagsInput) 16 | update!: ArticleUpdateWithoutTagsInput; 17 | 18 | @Field(() => ArticleCreateWithoutTagsInput, { nullable: false }) 19 | @Type(() => ArticleCreateWithoutTagsInput) 20 | create!: ArticleCreateWithoutTagsInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/article/article-upsert-without-comments.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleUpdateWithoutCommentsInput } from './article-update-without-comments.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateWithoutCommentsInput } from './article-create-without-comments.input'; 6 | 7 | @InputType() 8 | export class ArticleUpsertWithoutCommentsInput { 9 | @Field(() => ArticleUpdateWithoutCommentsInput, { nullable: false }) 10 | @Type(() => ArticleUpdateWithoutCommentsInput) 11 | update!: ArticleUpdateWithoutCommentsInput; 12 | 13 | @Field(() => ArticleCreateWithoutCommentsInput, { nullable: false }) 14 | @Type(() => ArticleCreateWithoutCommentsInput) 15 | create!: ArticleCreateWithoutCommentsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/article-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ArticleWhereUniqueInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: true }) 10 | slug?: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/article/create-many-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleCreateManyInput } from './article-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateManyArticleArgs { 8 | @Field(() => [ArticleCreateManyInput], { nullable: false }) 9 | @Type(() => ArticleCreateManyInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/article/create-one-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleCreateInput } from './article-create.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateOneArticleArgs { 8 | @Field(() => ArticleCreateInput, { nullable: false }) 9 | @Type(() => ArticleCreateInput) 10 | data!: ArticleCreateInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/article/delete-many-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleWhereInput } from './article-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyArticleArgs { 8 | @Field(() => ArticleWhereInput, { nullable: true }) 9 | @Type(() => ArticleWhereInput) 10 | where?: ArticleWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/article/delete-one-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneArticleArgs { 8 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 9 | @Type(() => ArticleWhereUniqueInput) 10 | where!: ArticleWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/article/find-unique-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueArticleArgs { 8 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 9 | @Type(() => ArticleWhereUniqueInput) 10 | where!: ArticleWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/article/update-many-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleUpdateManyMutationInput } from './article-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleWhereInput } from './article-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyArticleArgs { 9 | @Field(() => ArticleUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => ArticleUpdateManyMutationInput) 11 | data!: ArticleUpdateManyMutationInput; 12 | 13 | @Field(() => ArticleWhereInput, { nullable: true }) 14 | @Type(() => ArticleWhereInput) 15 | where?: ArticleWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/update-one-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleUpdateInput } from './article-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneArticleArgs { 9 | @Field(() => ArticleUpdateInput, { nullable: false }) 10 | @Type(() => ArticleUpdateInput) 11 | data!: ArticleUpdateInput; 12 | 13 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 14 | @Type(() => ArticleWhereUniqueInput) 15 | where!: ArticleWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/article/upsert-one-article.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ArticleWhereUniqueInput } from './article-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ArticleCreateInput } from './article-create.input'; 6 | import { ArticleUpdateInput } from './article-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneArticleArgs { 10 | @Field(() => ArticleWhereUniqueInput, { nullable: false }) 11 | @Type(() => ArticleWhereUniqueInput) 12 | where!: ArticleWhereUniqueInput; 13 | 14 | @Field(() => ArticleCreateInput, { nullable: false }) 15 | @Type(() => ArticleCreateInput) 16 | create!: ArticleCreateInput; 17 | 18 | @Field(() => ArticleUpdateInput, { nullable: false }) 19 | @Type(() => ArticleUpdateInput) 20 | update!: ArticleUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/comment/aggregate-comment.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { CommentCountAggregate } from './comment-count-aggregate.output'; 4 | import { CommentMinAggregate } from './comment-min-aggregate.output'; 5 | import { CommentMaxAggregate } from './comment-max-aggregate.output'; 6 | 7 | @ObjectType() 8 | export class AggregateComment { 9 | @Field(() => CommentCountAggregate, { nullable: true }) 10 | _count?: CommentCountAggregate; 11 | 12 | @Field(() => CommentMinAggregate, { nullable: true }) 13 | _min?: CommentMinAggregate; 14 | 15 | @Field(() => CommentMaxAggregate, { nullable: true }) 16 | _max?: CommentMaxAggregate; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/comment/comment-count-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentCountAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | createdAt?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | updatedAt?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | body?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | authorId?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | articleId?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | _all?: true; 26 | } 27 | -------------------------------------------------------------------------------- /@generated/comment/comment-count-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class CommentCountAggregate { 7 | @Field(() => Int, { nullable: false }) 8 | id!: number; 9 | 10 | @Field(() => Int, { nullable: false }) 11 | createdAt!: number; 12 | 13 | @Field(() => Int, { nullable: false }) 14 | updatedAt!: number; 15 | 16 | @Field(() => Int, { nullable: false }) 17 | body!: number; 18 | 19 | @Field(() => Int, { nullable: false }) 20 | authorId!: number; 21 | 22 | @Field(() => Int, { nullable: false }) 23 | articleId!: number; 24 | 25 | @Field(() => Int, { nullable: false }) 26 | _all!: number; 27 | } 28 | -------------------------------------------------------------------------------- /@generated/comment/comment-count-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class CommentCountOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | createdAt?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | updatedAt?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | body?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | authorId?: keyof typeof SortOrder; 21 | 22 | @Field(() => SortOrder, { nullable: true }) 23 | articleId?: keyof typeof SortOrder; 24 | } 25 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-many-article-input-envelope.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentCreateManyArticleInput } from './comment-create-many-article.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class CommentCreateManyArticleInputEnvelope { 8 | @Field(() => [CommentCreateManyArticleInput], { nullable: false }) 9 | @Type(() => CommentCreateManyArticleInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-many-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentCreateManyArticleInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: false }) 19 | authorId!: string; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-many-author-input-envelope.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentCreateManyAuthorInput } from './comment-create-many-author.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class CommentCreateManyAuthorInputEnvelope { 8 | @Field(() => [CommentCreateManyAuthorInput], { nullable: false }) 9 | @Type(() => CommentCreateManyAuthorInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-many-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentCreateManyAuthorInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: true }) 19 | articleId?: string; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-many.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentCreateManyInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: false }) 19 | authorId!: string; 20 | 21 | @Field(() => String, { nullable: true }) 22 | articleId?: string; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-or-connect-without-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentCreateWithoutArticleInput } from './comment-create-without-article.input'; 6 | 7 | @InputType() 8 | export class CommentCreateOrConnectWithoutArticleInput { 9 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 10 | @Type(() => CommentWhereUniqueInput) 11 | where!: CommentWhereUniqueInput; 12 | 13 | @Field(() => CommentCreateWithoutArticleInput, { nullable: false }) 14 | @Type(() => CommentCreateWithoutArticleInput) 15 | create!: CommentCreateWithoutArticleInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-or-connect-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; 6 | 7 | @InputType() 8 | export class CommentCreateOrConnectWithoutAuthorInput { 9 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 10 | @Type(() => CommentWhereUniqueInput) 11 | where!: CommentWhereUniqueInput; 12 | 13 | @Field(() => CommentCreateWithoutAuthorInput, { nullable: false }) 14 | @Type(() => CommentCreateWithoutAuthorInput) 15 | create!: CommentCreateWithoutAuthorInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-without-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class CommentCreateWithoutArticleInput { 8 | @Field(() => String, { nullable: true }) 9 | id?: string; 10 | 11 | @Field(() => Date, { nullable: true }) 12 | createdAt?: Date | string; 13 | 14 | @Field(() => Date, { nullable: true }) 15 | updatedAt?: Date | string; 16 | 17 | @Field(() => String, { nullable: false }) 18 | body!: string; 19 | 20 | @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) 21 | @Type(() => UserCreateNestedOneWithoutCommentsInput) 22 | author!: UserCreateNestedOneWithoutCommentsInput; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-create-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleCreateNestedOneWithoutCommentsInput } from '../article/article-create-nested-one-without-comments.input'; 4 | 5 | @InputType() 6 | export class CommentCreateWithoutAuthorInput { 7 | @Field(() => String, { nullable: true }) 8 | id?: string; 9 | 10 | @Field(() => Date, { nullable: true }) 11 | createdAt?: Date | string; 12 | 13 | @Field(() => Date, { nullable: true }) 14 | updatedAt?: Date | string; 15 | 16 | @Field(() => String, { nullable: false }) 17 | body!: string; 18 | 19 | @Field(() => ArticleCreateNestedOneWithoutCommentsInput, { nullable: true }) 20 | article?: ArticleCreateNestedOneWithoutCommentsInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/comment/comment-list-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentWhereInput } from './comment-where.input'; 4 | 5 | @InputType() 6 | export class CommentListRelationFilter { 7 | @Field(() => CommentWhereInput, { nullable: true }) 8 | every?: CommentWhereInput; 9 | 10 | @Field(() => CommentWhereInput, { nullable: true }) 11 | some?: CommentWhereInput; 12 | 13 | @Field(() => CommentWhereInput, { nullable: true }) 14 | none?: CommentWhereInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/comment/comment-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | createdAt?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | updatedAt?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | body?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | authorId?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | articleId?: true; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-max-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | 4 | @ObjectType() 5 | export class CommentMaxAggregate { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: true }) 16 | body?: string; 17 | 18 | @Field(() => String, { nullable: true }) 19 | authorId?: string; 20 | 21 | @Field(() => String, { nullable: true }) 22 | articleId?: string; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-max-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class CommentMaxOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | createdAt?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | updatedAt?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | body?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | authorId?: keyof typeof SortOrder; 21 | 22 | @Field(() => SortOrder, { nullable: true }) 23 | articleId?: keyof typeof SortOrder; 24 | } 25 | -------------------------------------------------------------------------------- /@generated/comment/comment-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | createdAt?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | updatedAt?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | body?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | authorId?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | articleId?: true; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-min-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | 4 | @ObjectType() 5 | export class CommentMinAggregate { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: true }) 16 | body?: string; 17 | 18 | @Field(() => String, { nullable: true }) 19 | authorId?: string; 20 | 21 | @Field(() => String, { nullable: true }) 22 | articleId?: string; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-min-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class CommentMinOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | createdAt?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | updatedAt?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | body?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | authorId?: keyof typeof SortOrder; 21 | 22 | @Field(() => SortOrder, { nullable: true }) 23 | articleId?: keyof typeof SortOrder; 24 | } 25 | -------------------------------------------------------------------------------- /@generated/comment/comment-order-by-relation-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class CommentOrderByRelationAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | _count?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/comment/comment-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum CommentOrderByRelevanceFieldEnum { 4 | id = 'id', 5 | body = 'body', 6 | authorId = 'authorId', 7 | articleId = 'articleId', 8 | } 9 | 10 | registerEnumType(CommentOrderByRelevanceFieldEnum, { 11 | name: 'CommentOrderByRelevanceFieldEnum', 12 | description: undefined, 13 | }); 14 | -------------------------------------------------------------------------------- /@generated/comment/comment-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentOrderByRelevanceFieldEnum } from './comment-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class CommentOrderByRelevanceInput { 8 | @Field(() => [CommentOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum CommentScalarFieldEnum { 4 | id = 'id', 5 | createdAt = 'createdAt', 6 | updatedAt = 'updatedAt', 7 | body = 'body', 8 | authorId = 'authorId', 9 | articleId = 'articleId', 10 | } 11 | 12 | registerEnumType(CommentScalarFieldEnum, { 13 | name: 'CommentScalarFieldEnum', 14 | description: undefined, 15 | }); 16 | -------------------------------------------------------------------------------- /@generated/comment/comment-unchecked-create-without-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentUncheckedCreateWithoutArticleInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: false }) 19 | authorId!: string; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/comment/comment-unchecked-create-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentUncheckedCreateWithoutAuthorInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: true }) 19 | articleId?: string; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/comment/comment-unchecked-create.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentUncheckedCreateInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => Date, { nullable: true }) 10 | createdAt?: Date | string; 11 | 12 | @Field(() => Date, { nullable: true }) 13 | updatedAt?: Date | string; 14 | 15 | @Field(() => String, { nullable: false }) 16 | body!: string; 17 | 18 | @Field(() => String, { nullable: false }) 19 | authorId!: string; 20 | 21 | @Field(() => String, { nullable: true }) 22 | articleId?: string; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/comment/comment-update-many-mutation.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 5 | import { HideField } from '@nestjs/graphql'; 6 | 7 | @InputType() 8 | export class CommentUpdateManyMutationInput { 9 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 10 | id?: StringFieldUpdateOperationsInput; 11 | 12 | @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) 13 | createdAt?: DateTimeFieldUpdateOperationsInput; 14 | 15 | @HideField() 16 | updatedAt?: DateTimeFieldUpdateOperationsInput; 17 | 18 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 19 | body?: StringFieldUpdateOperationsInput; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/comment/comment-update-many-with-where-without-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentScalarWhereInput } from './comment-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class CommentUpdateManyWithWhereWithoutArticleInput { 9 | @Field(() => CommentScalarWhereInput, { nullable: false }) 10 | @Type(() => CommentScalarWhereInput) 11 | where!: CommentScalarWhereInput; 12 | 13 | @Field(() => CommentUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => CommentUpdateManyMutationInput) 15 | data!: CommentUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-update-many-with-where-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentScalarWhereInput } from './comment-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class CommentUpdateManyWithWhereWithoutAuthorInput { 9 | @Field(() => CommentScalarWhereInput, { nullable: false }) 10 | @Type(() => CommentScalarWhereInput) 11 | where!: CommentScalarWhereInput; 12 | 13 | @Field(() => CommentUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => CommentUpdateManyMutationInput) 15 | data!: CommentUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-update-with-where-unique-without-article.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentUpdateWithoutArticleInput } from './comment-update-without-article.input'; 6 | 7 | @InputType() 8 | export class CommentUpdateWithWhereUniqueWithoutArticleInput { 9 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 10 | @Type(() => CommentWhereUniqueInput) 11 | where!: CommentWhereUniqueInput; 12 | 13 | @Field(() => CommentUpdateWithoutArticleInput, { nullable: false }) 14 | @Type(() => CommentUpdateWithoutArticleInput) 15 | data!: CommentUpdateWithoutArticleInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-update-with-where-unique-without-author.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author.input'; 6 | 7 | @InputType() 8 | export class CommentUpdateWithWhereUniqueWithoutAuthorInput { 9 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 10 | @Type(() => CommentWhereUniqueInput) 11 | where!: CommentWhereUniqueInput; 12 | 13 | @Field(() => CommentUpdateWithoutAuthorInput, { nullable: false }) 14 | @Type(() => CommentUpdateWithoutAuthorInput) 15 | data!: CommentUpdateWithoutAuthorInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/comment-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class CommentWhereUniqueInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/comment/comment.model.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { ID } from '@nestjs/graphql'; 4 | import { User } from '../user/user.model'; 5 | import { Article } from '../article/article.model'; 6 | 7 | @ObjectType() 8 | export class Comment { 9 | @Field(() => ID, { nullable: false }) 10 | id!: string; 11 | 12 | @Field(() => Date, { nullable: false }) 13 | createdAt!: Date; 14 | 15 | @Field(() => Date, { nullable: false }) 16 | updatedAt!: Date; 17 | 18 | @Field(() => String, { nullable: false }) 19 | body!: string; 20 | 21 | @Field(() => User, { nullable: false }) 22 | author?: User; 23 | 24 | @Field(() => String, { nullable: false }) 25 | authorId!: string; 26 | 27 | @Field(() => Article, { nullable: true }) 28 | article?: Article | null; 29 | 30 | @Field(() => String, { nullable: true }) 31 | articleId!: string | null; 32 | } 33 | -------------------------------------------------------------------------------- /@generated/comment/create-many-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentCreateManyInput } from './comment-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateManyCommentArgs { 8 | @Field(() => [CommentCreateManyInput], { nullable: false }) 9 | @Type(() => CommentCreateManyInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/comment/create-one-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentCreateInput } from './comment-create.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateOneCommentArgs { 8 | @Field(() => CommentCreateInput, { nullable: false }) 9 | @Type(() => CommentCreateInput) 10 | data!: CommentCreateInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/comment/delete-many-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentWhereInput } from './comment-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyCommentArgs { 8 | @Field(() => CommentWhereInput, { nullable: true }) 9 | @Type(() => CommentWhereInput) 10 | where?: CommentWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/comment/delete-one-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneCommentArgs { 8 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 9 | @Type(() => CommentWhereUniqueInput) 10 | where!: CommentWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/comment/find-unique-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueCommentArgs { 8 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 9 | @Type(() => CommentWhereUniqueInput) 10 | where!: CommentWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/comment/update-many-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentWhereInput } from './comment-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyCommentArgs { 9 | @Field(() => CommentUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => CommentUpdateManyMutationInput) 11 | data!: CommentUpdateManyMutationInput; 12 | 13 | @Field(() => CommentWhereInput, { nullable: true }) 14 | @Type(() => CommentWhereInput) 15 | where?: CommentWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/update-one-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentUpdateInput } from './comment-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneCommentArgs { 9 | @Field(() => CommentUpdateInput, { nullable: false }) 10 | @Type(() => CommentUpdateInput) 11 | data!: CommentUpdateInput; 12 | 13 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 14 | @Type(() => CommentWhereUniqueInput) 15 | where!: CommentWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/comment/upsert-one-comment.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { CommentWhereUniqueInput } from './comment-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { CommentCreateInput } from './comment-create.input'; 6 | import { CommentUpdateInput } from './comment-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneCommentArgs { 10 | @Field(() => CommentWhereUniqueInput, { nullable: false }) 11 | @Type(() => CommentWhereUniqueInput) 12 | where!: CommentWhereUniqueInput; 13 | 14 | @Field(() => CommentCreateInput, { nullable: false }) 15 | @Type(() => CommentCreateInput) 16 | create!: CommentCreateInput; 17 | 18 | @Field(() => CommentUpdateInput, { nullable: false }) 19 | @Type(() => CommentUpdateInput) 20 | update!: CommentUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/dummy/aggregate-dummy.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { DummyCountAggregate } from './dummy-count-aggregate.output'; 4 | import { DummyAvgAggregate } from './dummy-avg-aggregate.output'; 5 | import { DummySumAggregate } from './dummy-sum-aggregate.output'; 6 | import { DummyMinAggregate } from './dummy-min-aggregate.output'; 7 | import { DummyMaxAggregate } from './dummy-max-aggregate.output'; 8 | 9 | @ObjectType() 10 | export class AggregateDummy { 11 | @Field(() => DummyCountAggregate, { nullable: true }) 12 | _count?: DummyCountAggregate; 13 | 14 | @Field(() => DummyAvgAggregate, { nullable: true }) 15 | _avg?: DummyAvgAggregate; 16 | 17 | @Field(() => DummySumAggregate, { nullable: true }) 18 | _sum?: DummySumAggregate; 19 | 20 | @Field(() => DummyMinAggregate, { nullable: true }) 21 | _min?: DummyMinAggregate; 22 | 23 | @Field(() => DummyMaxAggregate, { nullable: true }) 24 | _max?: DummyMaxAggregate; 25 | } 26 | -------------------------------------------------------------------------------- /@generated/dummy/create-many-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyCreateManyInput } from './dummy-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateManyDummyArgs { 8 | @Field(() => [DummyCreateManyInput], { nullable: false }) 9 | @Type(() => DummyCreateManyInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/dummy/create-one-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyCreateInput } from './dummy-create.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateOneDummyArgs { 8 | @Field(() => DummyCreateInput, { nullable: false }) 9 | @Type(() => DummyCreateInput) 10 | data!: DummyCreateInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/dummy/delete-many-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyWhereInput } from './dummy-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyDummyArgs { 8 | @Field(() => DummyWhereInput, { nullable: true }) 9 | @Type(() => DummyWhereInput) 10 | where?: DummyWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/dummy/delete-one-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyWhereUniqueInput } from './dummy-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneDummyArgs { 8 | @Field(() => DummyWhereUniqueInput, { nullable: false }) 9 | @Type(() => DummyWhereUniqueInput) 10 | where!: DummyWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-avg-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyAvgAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | int?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | float?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | decimal?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | decimals?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bigInt?: true; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-avg-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | import { Decimal } from '@prisma/client/runtime'; 5 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 6 | 7 | @ObjectType() 8 | export class DummyAvgAggregate { 9 | @Field(() => Float, { nullable: true }) 10 | int?: number; 11 | 12 | @Field(() => Float, { nullable: true }) 13 | float?: number; 14 | 15 | @Field(() => GraphQLDecimal, { nullable: true }) 16 | decimal?: Decimal; 17 | 18 | @Field(() => GraphQLDecimal, { nullable: true }) 19 | decimals?: Decimal; 20 | 21 | @Field(() => Float, { nullable: true }) 22 | bigInt?: number; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-avg-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class DummyAvgOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | int?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | float?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | decimal?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | decimals?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | bigInt?: keyof typeof SortOrder; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-count-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyCountAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | date?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | int?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | float?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bytes?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | decimal?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | decimals?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | bigInt?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | json?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | friends?: true; 35 | 36 | @Field(() => Boolean, { nullable: true }) 37 | _all?: true; 38 | } 39 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-createdecimals.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Decimal } from '@prisma/client/runtime'; 4 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 5 | import { transformToDecimal } from 'prisma-graphql-type-decimal'; 6 | import { Transform } from 'class-transformer'; 7 | import { Type } from 'class-transformer'; 8 | 9 | @InputType() 10 | export class DummyCreatedecimalsInput { 11 | @Field(() => [GraphQLDecimal], { nullable: false }) 12 | @Type(() => Object) 13 | @Transform(transformToDecimal) 14 | set!: Array; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-createfriends.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyCreatefriendsInput { 6 | @Field(() => [String], { nullable: false }) 7 | set!: Array; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | date?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | int?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | float?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bytes?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | decimal?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | bigInt?: true; 26 | } 27 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-max-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { Float } from '@nestjs/graphql'; 5 | import { Decimal } from '@prisma/client/runtime'; 6 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 7 | 8 | @ObjectType() 9 | export class DummyMaxAggregate { 10 | @Field(() => String, { nullable: true }) 11 | id?: string; 12 | 13 | @Field(() => Date, { nullable: true }) 14 | date?: Date | string; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | int?: number; 18 | 19 | @Field(() => Float, { nullable: true }) 20 | float?: number; 21 | 22 | @Field(() => String, { nullable: true }) 23 | bytes?: Buffer; 24 | 25 | @Field(() => GraphQLDecimal, { nullable: true }) 26 | decimal?: Decimal; 27 | 28 | @Field(() => String, { nullable: true }) 29 | bigInt?: bigint | number; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-max-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class DummyMaxOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | date?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | int?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | float?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | bytes?: keyof typeof SortOrder; 21 | 22 | @Field(() => SortOrder, { nullable: true }) 23 | decimal?: keyof typeof SortOrder; 24 | 25 | @Field(() => SortOrder, { nullable: true }) 26 | bigInt?: keyof typeof SortOrder; 27 | } 28 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | date?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | int?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | float?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bytes?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | decimal?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | bigInt?: true; 26 | } 27 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-min-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { Float } from '@nestjs/graphql'; 5 | import { Decimal } from '@prisma/client/runtime'; 6 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 7 | 8 | @ObjectType() 9 | export class DummyMinAggregate { 10 | @Field(() => String, { nullable: true }) 11 | id?: string; 12 | 13 | @Field(() => Date, { nullable: true }) 14 | date?: Date | string; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | int?: number; 18 | 19 | @Field(() => Float, { nullable: true }) 20 | float?: number; 21 | 22 | @Field(() => String, { nullable: true }) 23 | bytes?: Buffer; 24 | 25 | @Field(() => GraphQLDecimal, { nullable: true }) 26 | decimal?: Decimal; 27 | 28 | @Field(() => String, { nullable: true }) 29 | bigInt?: bigint | number; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-min-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class DummyMinOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | date?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | int?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | float?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | bytes?: keyof typeof SortOrder; 21 | 22 | @Field(() => SortOrder, { nullable: true }) 23 | decimal?: keyof typeof SortOrder; 24 | 25 | @Field(() => SortOrder, { nullable: true }) 26 | bigInt?: keyof typeof SortOrder; 27 | } 28 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum DummyOrderByRelevanceFieldEnum { 4 | id = 'id', 5 | friends = 'friends', 6 | } 7 | 8 | registerEnumType(DummyOrderByRelevanceFieldEnum, { 9 | name: 'DummyOrderByRelevanceFieldEnum', 10 | description: undefined, 11 | }); 12 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { DummyOrderByRelevanceFieldEnum } from './dummy-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class DummyOrderByRelevanceInput { 8 | @Field(() => [DummyOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum DummyScalarFieldEnum { 4 | id = 'id', 5 | date = 'date', 6 | int = 'int', 7 | float = 'float', 8 | bytes = 'bytes', 9 | decimal = 'decimal', 10 | decimals = 'decimals', 11 | bigInt = 'bigInt', 12 | json = 'json', 13 | friends = 'friends', 14 | } 15 | 16 | registerEnumType(DummyScalarFieldEnum, { 17 | name: 'DummyScalarFieldEnum', 18 | description: undefined, 19 | }); 20 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-sum-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummySumAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | int?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | float?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | decimal?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | decimals?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bigInt?: true; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-sum-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { Float } from '@nestjs/graphql'; 5 | import { Decimal } from '@prisma/client/runtime'; 6 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 7 | 8 | @ObjectType() 9 | export class DummySumAggregate { 10 | @Field(() => Int, { nullable: true }) 11 | int?: number; 12 | 13 | @Field(() => Float, { nullable: true }) 14 | float?: number; 15 | 16 | @Field(() => GraphQLDecimal, { nullable: true }) 17 | decimal?: Decimal; 18 | 19 | @Field(() => [GraphQLDecimal], { nullable: true }) 20 | decimals?: Array; 21 | 22 | @Field(() => String, { nullable: true }) 23 | bigInt?: bigint | number; 24 | } 25 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-sum-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class DummySumOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | int?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | float?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | decimal?: keyof typeof SortOrder; 15 | 16 | @Field(() => SortOrder, { nullable: true }) 17 | decimals?: keyof typeof SortOrder; 18 | 19 | @Field(() => SortOrder, { nullable: true }) 20 | bigInt?: keyof typeof SortOrder; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-updatedecimals.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Decimal } from '@prisma/client/runtime'; 4 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 5 | import { transformToDecimal } from 'prisma-graphql-type-decimal'; 6 | import { Transform } from 'class-transformer'; 7 | import { Type } from 'class-transformer'; 8 | 9 | @InputType() 10 | export class DummyUpdatedecimalsInput { 11 | @Field(() => [GraphQLDecimal], { nullable: true }) 12 | @Type(() => Object) 13 | @Transform(transformToDecimal) 14 | set?: Array; 15 | 16 | @Field(() => [GraphQLDecimal], { nullable: true }) 17 | @Type(() => Object) 18 | @Transform(transformToDecimal) 19 | push?: Array; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-updatefriends.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyUpdatefriendsInput { 6 | @Field(() => [String], { nullable: true }) 7 | set?: Array; 8 | 9 | @Field(() => [String], { nullable: true }) 10 | push?: Array; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/dummy/dummy-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DummyWhereUniqueInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/dummy/find-unique-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyWhereUniqueInput } from './dummy-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueDummyArgs { 8 | @Field(() => DummyWhereUniqueInput, { nullable: false }) 9 | @Type(() => DummyWhereUniqueInput) 10 | where!: DummyWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/dummy/update-many-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyUpdateManyMutationInput } from './dummy-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { DummyWhereInput } from './dummy-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyDummyArgs { 9 | @Field(() => DummyUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => DummyUpdateManyMutationInput) 11 | data!: DummyUpdateManyMutationInput; 12 | 13 | @Field(() => DummyWhereInput, { nullable: true }) 14 | @Type(() => DummyWhereInput) 15 | where?: DummyWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/dummy/update-one-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyUpdateInput } from './dummy-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { DummyWhereUniqueInput } from './dummy-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneDummyArgs { 9 | @Field(() => DummyUpdateInput, { nullable: false }) 10 | @Type(() => DummyUpdateInput) 11 | data!: DummyUpdateInput; 12 | 13 | @Field(() => DummyWhereUniqueInput, { nullable: false }) 14 | @Type(() => DummyWhereUniqueInput) 15 | where!: DummyWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/dummy/upsert-one-dummy.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { DummyWhereUniqueInput } from './dummy-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { DummyCreateInput } from './dummy-create.input'; 6 | import { DummyUpdateInput } from './dummy-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneDummyArgs { 10 | @Field(() => DummyWhereUniqueInput, { nullable: false }) 11 | @Type(() => DummyWhereUniqueInput) 12 | where!: DummyWhereUniqueInput; 13 | 14 | @Field(() => DummyCreateInput, { nullable: false }) 15 | @Type(() => DummyCreateInput) 16 | create!: DummyCreateInput; 17 | 18 | @Field(() => DummyUpdateInput, { nullable: false }) 19 | @Type(() => DummyUpdateInput) 20 | update!: DummyUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/prisma/affected-rows.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class AffectedRows { 7 | @Field(() => Int, { nullable: false }) 8 | count!: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/prisma/big-int-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedBigIntNullableFilter } from './nested-big-int-nullable-filter.input'; 4 | 5 | @InputType() 6 | export class BigIntNullableFilter { 7 | @Field(() => String, { nullable: true }) 8 | equals?: bigint | number; 9 | 10 | @Field(() => [String], { nullable: true }) 11 | in?: Array | Array; 12 | 13 | @Field(() => [String], { nullable: true }) 14 | notIn?: Array | Array; 15 | 16 | @Field(() => String, { nullable: true }) 17 | lt?: bigint | number; 18 | 19 | @Field(() => String, { nullable: true }) 20 | lte?: bigint | number; 21 | 22 | @Field(() => String, { nullable: true }) 23 | gt?: bigint | number; 24 | 25 | @Field(() => String, { nullable: true }) 26 | gte?: bigint | number; 27 | 28 | @Field(() => NestedBigIntNullableFilter, { nullable: true }) 29 | not?: NestedBigIntNullableFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/bool-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedBoolNullableFilter } from './nested-bool-nullable-filter.input'; 4 | 5 | @InputType() 6 | export class BoolNullableFilter { 7 | @Field(() => Boolean, { nullable: true }) 8 | equals?: boolean; 9 | 10 | @Field(() => NestedBoolNullableFilter, { nullable: true }) 11 | not?: NestedBoolNullableFilter; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/prisma/bytes-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedBytesNullableFilter } from './nested-bytes-nullable-filter.input'; 4 | 5 | @InputType() 6 | export class BytesNullableFilter { 7 | @Field(() => String, { nullable: true }) 8 | equals?: Buffer; 9 | 10 | @Field(() => [String], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [String], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => NestedBytesNullableFilter, { nullable: true }) 17 | not?: NestedBytesNullableFilter; 18 | } 19 | -------------------------------------------------------------------------------- /@generated/prisma/date-time-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class DateTimeFieldUpdateOperationsInput { 6 | @Field(() => Date, { nullable: true }) 7 | set?: Date | string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/date-time-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedDateTimeFilter } from './nested-date-time-filter.input'; 4 | 5 | @InputType() 6 | export class DateTimeFilter { 7 | @Field(() => Date, { nullable: true }) 8 | equals?: Date | string; 9 | 10 | @Field(() => [Date], { nullable: true }) 11 | in?: Array | Array; 12 | 13 | @Field(() => [Date], { nullable: true }) 14 | notIn?: Array | Array; 15 | 16 | @Field(() => Date, { nullable: true }) 17 | lt?: Date | string; 18 | 19 | @Field(() => Date, { nullable: true }) 20 | lte?: Date | string; 21 | 22 | @Field(() => Date, { nullable: true }) 23 | gt?: Date | string; 24 | 25 | @Field(() => Date, { nullable: true }) 26 | gte?: Date | string; 27 | 28 | @Field(() => NestedDateTimeFilter, { nullable: true }) 29 | not?: NestedDateTimeFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/date-time-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedDateTimeNullableFilter } from './nested-date-time-nullable-filter.input'; 4 | 5 | @InputType() 6 | export class DateTimeNullableFilter { 7 | @Field(() => Date, { nullable: true }) 8 | equals?: Date | string; 9 | 10 | @Field(() => [Date], { nullable: true }) 11 | in?: Array | Array; 12 | 13 | @Field(() => [Date], { nullable: true }) 14 | notIn?: Array | Array; 15 | 16 | @Field(() => Date, { nullable: true }) 17 | lt?: Date | string; 18 | 19 | @Field(() => Date, { nullable: true }) 20 | lte?: Date | string; 21 | 22 | @Field(() => Date, { nullable: true }) 23 | gt?: Date | string; 24 | 25 | @Field(() => Date, { nullable: true }) 26 | gte?: Date | string; 27 | 28 | @Field(() => NestedDateTimeNullableFilter, { nullable: true }) 29 | not?: NestedDateTimeNullableFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/enum-role-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Role } from './role.enum'; 4 | import { NestedEnumRoleNullableFilter } from './nested-enum-role-nullable-filter.input'; 5 | 6 | @InputType() 7 | export class EnumRoleNullableFilter { 8 | @Field(() => Role, { nullable: true }) 9 | equals?: keyof typeof Role; 10 | 11 | @Field(() => [Role], { nullable: true }) 12 | in?: Array; 13 | 14 | @Field(() => [Role], { nullable: true }) 15 | notIn?: Array; 16 | 17 | @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) 18 | not?: NestedEnumRoleNullableFilter; 19 | } 20 | -------------------------------------------------------------------------------- /@generated/prisma/float-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | import { NestedFloatNullableFilter } from './nested-float-nullable-filter.input'; 5 | 6 | @InputType() 7 | export class FloatNullableFilter { 8 | @Field(() => Float, { nullable: true }) 9 | equals?: number; 10 | 11 | @Field(() => [Float], { nullable: true }) 12 | in?: Array; 13 | 14 | @Field(() => [Float], { nullable: true }) 15 | notIn?: Array; 16 | 17 | @Field(() => Float, { nullable: true }) 18 | lt?: number; 19 | 20 | @Field(() => Float, { nullable: true }) 21 | lte?: number; 22 | 23 | @Field(() => Float, { nullable: true }) 24 | gt?: number; 25 | 26 | @Field(() => Float, { nullable: true }) 27 | gte?: number; 28 | 29 | @Field(() => NestedFloatNullableFilter, { nullable: true }) 30 | not?: NestedFloatNullableFilter; 31 | } 32 | -------------------------------------------------------------------------------- /@generated/prisma/int-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class IntFieldUpdateOperationsInput { 7 | @Field(() => Int, { nullable: true }) 8 | set?: number; 9 | 10 | @Field(() => Int, { nullable: true }) 11 | increment?: number; 12 | 13 | @Field(() => Int, { nullable: true }) 14 | decrement?: number; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | multiply?: number; 18 | 19 | @Field(() => Int, { nullable: true }) 20 | divide?: number; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/prisma/int-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { NestedIntFilter } from './nested-int-filter.input'; 5 | 6 | @InputType() 7 | export class IntFilter { 8 | @Field(() => Int, { nullable: true }) 9 | equals?: number; 10 | 11 | @Field(() => [Int], { nullable: true }) 12 | in?: Array; 13 | 14 | @Field(() => [Int], { nullable: true }) 15 | notIn?: Array; 16 | 17 | @Field(() => Int, { nullable: true }) 18 | lt?: number; 19 | 20 | @Field(() => Int, { nullable: true }) 21 | lte?: number; 22 | 23 | @Field(() => Int, { nullable: true }) 24 | gt?: number; 25 | 26 | @Field(() => Int, { nullable: true }) 27 | gte?: number; 28 | 29 | @Field(() => NestedIntFilter, { nullable: true }) 30 | not?: NestedIntFilter; 31 | } 32 | -------------------------------------------------------------------------------- /@generated/prisma/int-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { NestedIntNullableFilter } from './nested-int-nullable-filter.input'; 5 | 6 | @InputType() 7 | export class IntNullableFilter { 8 | @Field(() => Int, { nullable: true }) 9 | equals?: number; 10 | 11 | @Field(() => [Int], { nullable: true }) 12 | in?: Array; 13 | 14 | @Field(() => [Int], { nullable: true }) 15 | notIn?: Array; 16 | 17 | @Field(() => Int, { nullable: true }) 18 | lt?: number; 19 | 20 | @Field(() => Int, { nullable: true }) 21 | lte?: number; 22 | 23 | @Field(() => Int, { nullable: true }) 24 | gt?: number; 25 | 26 | @Field(() => Int, { nullable: true }) 27 | gte?: number; 28 | 29 | @Field(() => NestedIntNullableFilter, { nullable: true }) 30 | not?: NestedIntNullableFilter; 31 | } 32 | -------------------------------------------------------------------------------- /@generated/prisma/json-null-value-filter.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum JsonNullValueFilter { 4 | DbNull = 'DbNull', 5 | JsonNull = 'JsonNull', 6 | AnyNull = 'AnyNull', 7 | } 8 | 9 | registerEnumType(JsonNullValueFilter, { 10 | name: 'JsonNullValueFilter', 11 | description: undefined, 12 | }); 13 | -------------------------------------------------------------------------------- /@generated/prisma/nested-big-int-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NestedBigIntNullableFilter { 6 | @Field(() => String, { nullable: true }) 7 | equals?: bigint | number; 8 | 9 | @Field(() => [String], { nullable: true }) 10 | in?: Array | Array; 11 | 12 | @Field(() => [String], { nullable: true }) 13 | notIn?: Array | Array; 14 | 15 | @Field(() => String, { nullable: true }) 16 | lt?: bigint | number; 17 | 18 | @Field(() => String, { nullable: true }) 19 | lte?: bigint | number; 20 | 21 | @Field(() => String, { nullable: true }) 22 | gt?: bigint | number; 23 | 24 | @Field(() => String, { nullable: true }) 25 | gte?: bigint | number; 26 | 27 | @Field(() => NestedBigIntNullableFilter, { nullable: true }) 28 | not?: NestedBigIntNullableFilter; 29 | } 30 | -------------------------------------------------------------------------------- /@generated/prisma/nested-bool-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NestedBoolNullableFilter { 6 | @Field(() => Boolean, { nullable: true }) 7 | equals?: boolean; 8 | 9 | @Field(() => NestedBoolNullableFilter, { nullable: true }) 10 | not?: NestedBoolNullableFilter; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/prisma/nested-bool-nullable-with-aggregates-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NestedIntNullableFilter } from './nested-int-nullable-filter.input'; 4 | import { NestedBoolNullableFilter } from './nested-bool-nullable-filter.input'; 5 | 6 | @InputType() 7 | export class NestedBoolNullableWithAggregatesFilter { 8 | @Field(() => Boolean, { nullable: true }) 9 | equals?: boolean; 10 | 11 | @Field(() => NestedBoolNullableWithAggregatesFilter, { nullable: true }) 12 | not?: NestedBoolNullableWithAggregatesFilter; 13 | 14 | @Field(() => NestedIntNullableFilter, { nullable: true }) 15 | _count?: NestedIntNullableFilter; 16 | 17 | @Field(() => NestedBoolNullableFilter, { nullable: true }) 18 | _min?: NestedBoolNullableFilter; 19 | 20 | @Field(() => NestedBoolNullableFilter, { nullable: true }) 21 | _max?: NestedBoolNullableFilter; 22 | } 23 | -------------------------------------------------------------------------------- /@generated/prisma/nested-bytes-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NestedBytesNullableFilter { 6 | @Field(() => String, { nullable: true }) 7 | equals?: Buffer; 8 | 9 | @Field(() => [String], { nullable: true }) 10 | in?: Array; 11 | 12 | @Field(() => [String], { nullable: true }) 13 | notIn?: Array; 14 | 15 | @Field(() => NestedBytesNullableFilter, { nullable: true }) 16 | not?: NestedBytesNullableFilter; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/prisma/nested-date-time-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NestedDateTimeFilter { 6 | @Field(() => Date, { nullable: true }) 7 | equals?: Date | string; 8 | 9 | @Field(() => [Date], { nullable: true }) 10 | in?: Array | Array; 11 | 12 | @Field(() => [Date], { nullable: true }) 13 | notIn?: Array | Array; 14 | 15 | @Field(() => Date, { nullable: true }) 16 | lt?: Date | string; 17 | 18 | @Field(() => Date, { nullable: true }) 19 | lte?: Date | string; 20 | 21 | @Field(() => Date, { nullable: true }) 22 | gt?: Date | string; 23 | 24 | @Field(() => Date, { nullable: true }) 25 | gte?: Date | string; 26 | 27 | @Field(() => NestedDateTimeFilter, { nullable: true }) 28 | not?: NestedDateTimeFilter; 29 | } 30 | -------------------------------------------------------------------------------- /@generated/prisma/nested-date-time-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NestedDateTimeNullableFilter { 6 | @Field(() => Date, { nullable: true }) 7 | equals?: Date | string; 8 | 9 | @Field(() => [Date], { nullable: true }) 10 | in?: Array | Array; 11 | 12 | @Field(() => [Date], { nullable: true }) 13 | notIn?: Array | Array; 14 | 15 | @Field(() => Date, { nullable: true }) 16 | lt?: Date | string; 17 | 18 | @Field(() => Date, { nullable: true }) 19 | lte?: Date | string; 20 | 21 | @Field(() => Date, { nullable: true }) 22 | gt?: Date | string; 23 | 24 | @Field(() => Date, { nullable: true }) 25 | gte?: Date | string; 26 | 27 | @Field(() => NestedDateTimeNullableFilter, { nullable: true }) 28 | not?: NestedDateTimeNullableFilter; 29 | } 30 | -------------------------------------------------------------------------------- /@generated/prisma/nested-enum-role-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Role } from './role.enum'; 4 | 5 | @InputType() 6 | export class NestedEnumRoleNullableFilter { 7 | @Field(() => Role, { nullable: true }) 8 | equals?: keyof typeof Role; 9 | 10 | @Field(() => [Role], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [Role], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => NestedEnumRoleNullableFilter, { nullable: true }) 17 | not?: NestedEnumRoleNullableFilter; 18 | } 19 | -------------------------------------------------------------------------------- /@generated/prisma/nested-float-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NestedFloatFilter { 7 | @Field(() => Float, { nullable: true }) 8 | equals?: number; 9 | 10 | @Field(() => [Float], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [Float], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => Float, { nullable: true }) 17 | lt?: number; 18 | 19 | @Field(() => Float, { nullable: true }) 20 | lte?: number; 21 | 22 | @Field(() => Float, { nullable: true }) 23 | gt?: number; 24 | 25 | @Field(() => Float, { nullable: true }) 26 | gte?: number; 27 | 28 | @Field(() => NestedFloatFilter, { nullable: true }) 29 | not?: NestedFloatFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/nested-float-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NestedFloatNullableFilter { 7 | @Field(() => Float, { nullable: true }) 8 | equals?: number; 9 | 10 | @Field(() => [Float], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [Float], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => Float, { nullable: true }) 17 | lt?: number; 18 | 19 | @Field(() => Float, { nullable: true }) 20 | lte?: number; 21 | 22 | @Field(() => Float, { nullable: true }) 23 | gt?: number; 24 | 25 | @Field(() => Float, { nullable: true }) 26 | gte?: number; 27 | 28 | @Field(() => NestedFloatNullableFilter, { nullable: true }) 29 | not?: NestedFloatNullableFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/nested-int-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NestedIntFilter { 7 | @Field(() => Int, { nullable: true }) 8 | equals?: number; 9 | 10 | @Field(() => [Int], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [Int], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | lt?: number; 18 | 19 | @Field(() => Int, { nullable: true }) 20 | lte?: number; 21 | 22 | @Field(() => Int, { nullable: true }) 23 | gt?: number; 24 | 25 | @Field(() => Int, { nullable: true }) 26 | gte?: number; 27 | 28 | @Field(() => NestedIntFilter, { nullable: true }) 29 | not?: NestedIntFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/nested-int-nullable-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NestedIntNullableFilter { 7 | @Field(() => Int, { nullable: true }) 8 | equals?: number; 9 | 10 | @Field(() => [Int], { nullable: true }) 11 | in?: Array; 12 | 13 | @Field(() => [Int], { nullable: true }) 14 | notIn?: Array; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | lt?: number; 18 | 19 | @Field(() => Int, { nullable: true }) 20 | lte?: number; 21 | 22 | @Field(() => Int, { nullable: true }) 23 | gt?: number; 24 | 25 | @Field(() => Int, { nullable: true }) 26 | gte?: number; 27 | 28 | @Field(() => NestedIntNullableFilter, { nullable: true }) 29 | not?: NestedIntNullableFilter; 30 | } 31 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-big-int-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NullableBigIntFieldUpdateOperationsInput { 6 | @Field(() => String, { nullable: true }) 7 | set?: bigint | number; 8 | 9 | @Field(() => String, { nullable: true }) 10 | increment?: bigint | number; 11 | 12 | @Field(() => String, { nullable: true }) 13 | decrement?: bigint | number; 14 | 15 | @Field(() => String, { nullable: true }) 16 | multiply?: bigint | number; 17 | 18 | @Field(() => String, { nullable: true }) 19 | divide?: bigint | number; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-bool-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NullableBoolFieldUpdateOperationsInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | set?: boolean; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-bytes-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NullableBytesFieldUpdateOperationsInput { 6 | @Field(() => String, { nullable: true }) 7 | set?: Buffer; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-date-time-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NullableDateTimeFieldUpdateOperationsInput { 6 | @Field(() => Date, { nullable: true }) 7 | set?: Date | string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-enum-role-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Role } from './role.enum'; 4 | 5 | @InputType() 6 | export class NullableEnumRoleFieldUpdateOperationsInput { 7 | @Field(() => Role, { nullable: true }) 8 | set?: keyof typeof Role; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-float-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NullableFloatFieldUpdateOperationsInput { 7 | @Field(() => Float, { nullable: true }) 8 | set?: number; 9 | 10 | @Field(() => Float, { nullable: true }) 11 | increment?: number; 12 | 13 | @Field(() => Float, { nullable: true }) 14 | decrement?: number; 15 | 16 | @Field(() => Float, { nullable: true }) 17 | multiply?: number; 18 | 19 | @Field(() => Float, { nullable: true }) 20 | divide?: number; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-int-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class NullableIntFieldUpdateOperationsInput { 7 | @Field(() => Int, { nullable: true }) 8 | set?: number; 9 | 10 | @Field(() => Int, { nullable: true }) 11 | increment?: number; 12 | 13 | @Field(() => Int, { nullable: true }) 14 | decrement?: number; 15 | 16 | @Field(() => Int, { nullable: true }) 17 | multiply?: number; 18 | 19 | @Field(() => Int, { nullable: true }) 20 | divide?: number; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-json-null-value-input.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum NullableJsonNullValueInput { 4 | DbNull = 'DbNull', 5 | JsonNull = 'JsonNull', 6 | } 7 | 8 | registerEnumType(NullableJsonNullValueInput, { 9 | name: 'NullableJsonNullValueInput', 10 | description: undefined, 11 | }); 12 | -------------------------------------------------------------------------------- /@generated/prisma/nullable-string-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class NullableStringFieldUpdateOperationsInput { 6 | @Field(() => String, { nullable: true }) 7 | set?: string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/query-mode.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum QueryMode { 4 | 'default' = 'default', 5 | insensitive = 'insensitive', 6 | } 7 | 8 | registerEnumType(QueryMode, { name: 'QueryMode', description: undefined }); 9 | -------------------------------------------------------------------------------- /@generated/prisma/role.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum Role { 4 | USER = 'USER', 5 | } 6 | 7 | registerEnumType(Role, { name: 'Role', description: undefined }); 8 | -------------------------------------------------------------------------------- /@generated/prisma/sort-order.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum SortOrder { 4 | asc = 'asc', 5 | desc = 'desc', 6 | } 7 | 8 | registerEnumType(SortOrder, { name: 'SortOrder', description: undefined }); 9 | -------------------------------------------------------------------------------- /@generated/prisma/string-field-update-operations.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class StringFieldUpdateOperationsInput { 6 | @Field(() => String, { nullable: true }) 7 | set?: string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/prisma/string-nullable-list-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class StringNullableListFilter { 6 | @Field(() => [String], { nullable: true }) 7 | equals?: Array; 8 | 9 | @Field(() => String, { nullable: true }) 10 | has?: string; 11 | 12 | @Field(() => [String], { nullable: true }) 13 | hasEvery?: Array; 14 | 15 | @Field(() => [String], { nullable: true }) 16 | hasSome?: Array; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | isEmpty?: boolean; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/profile/create-many-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileCreateManyInput } from './profile-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateManyProfileArgs { 8 | @Field(() => [ProfileCreateManyInput], { nullable: false }) 9 | @Type(() => ProfileCreateManyInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/profile/create-one-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileCreateInput } from './profile-create.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateOneProfileArgs { 8 | @Field(() => ProfileCreateInput, { nullable: false }) 9 | @Type(() => ProfileCreateInput) 10 | data!: ProfileCreateInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/profile/delete-many-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileWhereInput } from './profile-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyProfileArgs { 8 | @Field(() => ProfileWhereInput, { nullable: true }) 9 | @Type(() => ProfileWhereInput) 10 | where?: ProfileWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/profile/delete-one-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneProfileArgs { 8 | @Field(() => ProfileWhereUniqueInput, { nullable: false }) 9 | @Type(() => ProfileWhereUniqueInput) 10 | where!: ProfileWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/profile/find-unique-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueProfileArgs { 8 | @Field(() => ProfileWhereUniqueInput, { nullable: false }) 9 | @Type(() => ProfileWhereUniqueInput) 10 | where!: ProfileWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/profile/profile-avg-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileAvgAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/profile/profile-avg-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ProfileAvgAggregate { 7 | @Field(() => Float, { nullable: true }) 8 | id?: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-avg-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ProfileAvgOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-count-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileCountAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | userId?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | dummy?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | _all?: true; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/profile/profile-count-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ProfileCountAggregate { 7 | @Field(() => Int, { nullable: false }) 8 | id!: number; 9 | 10 | @Field(() => Int, { nullable: false }) 11 | userId!: number; 12 | 13 | @Field(() => Int, { nullable: false }) 14 | dummy!: number; 15 | 16 | @Field(() => Int, { nullable: false }) 17 | _all!: number; 18 | } 19 | -------------------------------------------------------------------------------- /@generated/profile/profile-count-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ProfileCountOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | userId?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | dummy?: keyof typeof SortOrder; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-create-many.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class ProfileCreateManyInput { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: false }) 11 | userId!: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | dummy?: string; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-create-or-connect-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileCreateWithoutUserInput } from './profile-create-without-user.input'; 6 | 7 | @InputType() 8 | export class ProfileCreateOrConnectWithoutUserInput { 9 | @Field(() => ProfileWhereUniqueInput, { nullable: false }) 10 | @Type(() => ProfileWhereUniqueInput) 11 | where!: ProfileWhereUniqueInput; 12 | 13 | @Field(() => ProfileCreateWithoutUserInput, { nullable: false }) 14 | @Type(() => ProfileCreateWithoutUserInput) 15 | create!: ProfileCreateWithoutUserInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/profile/profile-create-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileCreateWithoutUserInput { 6 | @Field(() => String, { nullable: true }) 7 | dummy?: string; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/profile/profile-create.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserCreateNestedOneWithoutProfileInput } from '../user/user-create-nested-one-without-profile.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class ProfileCreateInput { 8 | @Field(() => UserCreateNestedOneWithoutProfileInput, { nullable: false }) 9 | @Type(() => UserCreateNestedOneWithoutProfileInput) 10 | user!: UserCreateNestedOneWithoutProfileInput; 11 | 12 | @Field(() => String, { nullable: true }) 13 | dummy?: string; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/profile/profile-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | userId?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | dummy?: true; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/profile/profile-max-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ProfileMaxAggregate { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: true }) 11 | userId?: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | dummy?: string; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-max-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ProfileMaxOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | userId?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | dummy?: keyof typeof SortOrder; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | userId?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | dummy?: true; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/profile/profile-min-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ProfileMinAggregate { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: true }) 11 | userId?: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | dummy?: string; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-min-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ProfileMinOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | userId?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | dummy?: keyof typeof SortOrder; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum ProfileOrderByRelevanceFieldEnum { 4 | userId = 'userId', 5 | dummy = 'dummy', 6 | } 7 | 8 | registerEnumType(ProfileOrderByRelevanceFieldEnum, { 9 | name: 'ProfileOrderByRelevanceFieldEnum', 10 | description: undefined, 11 | }); 12 | -------------------------------------------------------------------------------- /@generated/profile/profile-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ProfileOrderByRelevanceFieldEnum } from './profile-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class ProfileOrderByRelevanceInput { 8 | @Field(() => [ProfileOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/profile/profile-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ProfileWhereInput } from './profile-where.input'; 4 | 5 | @InputType() 6 | export class ProfileRelationFilter { 7 | @Field(() => ProfileWhereInput, { nullable: true }) 8 | is?: ProfileWhereInput; 9 | 10 | @Field(() => ProfileWhereInput, { nullable: true }) 11 | isNot?: ProfileWhereInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/profile/profile-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum ProfileScalarFieldEnum { 4 | id = 'id', 5 | userId = 'userId', 6 | dummy = 'dummy', 7 | } 8 | 9 | registerEnumType(ProfileScalarFieldEnum, { 10 | name: 'ProfileScalarFieldEnum', 11 | description: undefined, 12 | }); 13 | -------------------------------------------------------------------------------- /@generated/profile/profile-sum-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class ProfileSumAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | } 9 | -------------------------------------------------------------------------------- /@generated/profile/profile-sum-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class ProfileSumAggregate { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-sum-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class ProfileSumOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-create-nested-one-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ProfileCreateWithoutUserInput } from './profile-create-without-user.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileCreateOrConnectWithoutUserInput } from './profile-create-or-connect-without-user.input'; 6 | import { HideField } from '@nestjs/graphql'; 7 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 8 | 9 | @InputType() 10 | export class ProfileUncheckedCreateNestedOneWithoutUserInput { 11 | @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) 12 | @Type(() => ProfileCreateWithoutUserInput) 13 | create?: ProfileCreateWithoutUserInput; 14 | 15 | @HideField() 16 | connectOrCreate?: ProfileCreateOrConnectWithoutUserInput; 17 | 18 | @HideField() 19 | connect?: ProfileWhereUniqueInput; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-create-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class ProfileUncheckedCreateWithoutUserInput { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: true }) 11 | dummy?: string; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-create.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class ProfileUncheckedCreateInput { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: false }) 11 | userId!: string; 12 | 13 | @Field(() => String, { nullable: true }) 14 | dummy?: string; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-update-many.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; 4 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 5 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 6 | 7 | @InputType() 8 | export class ProfileUncheckedUpdateManyInput { 9 | @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) 10 | id?: IntFieldUpdateOperationsInput; 11 | 12 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 13 | userId?: StringFieldUpdateOperationsInput; 14 | 15 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 16 | dummy?: NullableStringFieldUpdateOperationsInput; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-update-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; 4 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 5 | 6 | @InputType() 7 | export class ProfileUncheckedUpdateWithoutUserInput { 8 | @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) 9 | id?: IntFieldUpdateOperationsInput; 10 | 11 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 12 | dummy?: NullableStringFieldUpdateOperationsInput; 13 | } 14 | -------------------------------------------------------------------------------- /@generated/profile/profile-unchecked-update.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; 4 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 5 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 6 | 7 | @InputType() 8 | export class ProfileUncheckedUpdateInput { 9 | @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) 10 | id?: IntFieldUpdateOperationsInput; 11 | 12 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 13 | userId?: StringFieldUpdateOperationsInput; 14 | 15 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 16 | dummy?: NullableStringFieldUpdateOperationsInput; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/profile/profile-update-many-mutation.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class ProfileUpdateManyMutationInput { 7 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 8 | dummy?: NullableStringFieldUpdateOperationsInput; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-update-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class ProfileUpdateWithoutUserInput { 7 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 8 | dummy?: NullableStringFieldUpdateOperationsInput; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/profile/profile-update.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserUpdateOneRequiredWithoutProfileInput } from '../user/user-update-one-required-without-profile.input'; 4 | import { Type } from 'class-transformer'; 5 | import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; 6 | 7 | @InputType() 8 | export class ProfileUpdateInput { 9 | @Field(() => UserUpdateOneRequiredWithoutProfileInput, { nullable: true }) 10 | @Type(() => UserUpdateOneRequiredWithoutProfileInput) 11 | user?: UserUpdateOneRequiredWithoutProfileInput; 12 | 13 | @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) 14 | dummy?: NullableStringFieldUpdateOperationsInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/profile/profile-upsert-without-user.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ProfileUpdateWithoutUserInput } from './profile-update-without-user.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileCreateWithoutUserInput } from './profile-create-without-user.input'; 6 | 7 | @InputType() 8 | export class ProfileUpsertWithoutUserInput { 9 | @Field(() => ProfileUpdateWithoutUserInput, { nullable: false }) 10 | @Type(() => ProfileUpdateWithoutUserInput) 11 | update!: ProfileUpdateWithoutUserInput; 12 | 13 | @Field(() => ProfileCreateWithoutUserInput, { nullable: false }) 14 | @Type(() => ProfileCreateWithoutUserInput) 15 | create!: ProfileCreateWithoutUserInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/profile/profile-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @InputType() 6 | export class ProfileWhereUniqueInput { 7 | @Field(() => Int, { nullable: true }) 8 | id?: number; 9 | 10 | @Field(() => String, { nullable: true }) 11 | userId?: string; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/profile/profile.model.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { ID } from '@nestjs/graphql'; 4 | import { User } from '../user/user.model'; 5 | 6 | @ObjectType() 7 | export class Profile { 8 | @Field(() => ID, { nullable: false }) 9 | id!: number; 10 | 11 | @Field(() => User, { nullable: false }) 12 | user?: User; 13 | 14 | @Field(() => String, { nullable: false }) 15 | userId!: string; 16 | 17 | @Field(() => String, { nullable: true }) 18 | dummy!: string | null; 19 | } 20 | -------------------------------------------------------------------------------- /@generated/profile/update-many-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileUpdateManyMutationInput } from './profile-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileWhereInput } from './profile-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyProfileArgs { 9 | @Field(() => ProfileUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => ProfileUpdateManyMutationInput) 11 | data!: ProfileUpdateManyMutationInput; 12 | 13 | @Field(() => ProfileWhereInput, { nullable: true }) 14 | @Type(() => ProfileWhereInput) 15 | where?: ProfileWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/profile/update-one-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileUpdateInput } from './profile-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneProfileArgs { 9 | @Field(() => ProfileUpdateInput, { nullable: false }) 10 | @Type(() => ProfileUpdateInput) 11 | data!: ProfileUpdateInput; 12 | 13 | @Field(() => ProfileWhereUniqueInput, { nullable: false }) 14 | @Type(() => ProfileWhereUniqueInput) 15 | where!: ProfileWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/profile/upsert-one-profile.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { ProfileWhereUniqueInput } from './profile-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ProfileCreateInput } from './profile-create.input'; 6 | import { ProfileUpdateInput } from './profile-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneProfileArgs { 10 | @Field(() => ProfileWhereUniqueInput, { nullable: false }) 11 | @Type(() => ProfileWhereUniqueInput) 12 | where!: ProfileWhereUniqueInput; 13 | 14 | @Field(() => ProfileCreateInput, { nullable: false }) 15 | @Type(() => ProfileCreateInput) 16 | create!: ProfileCreateInput; 17 | 18 | @Field(() => ProfileUpdateInput, { nullable: false }) 19 | @Type(() => ProfileUpdateInput) 20 | update!: ProfileUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/tag/aggregate-tag.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { TagCountAggregate } from './tag-count-aggregate.output'; 4 | import { TagMinAggregate } from './tag-min-aggregate.output'; 5 | import { TagMaxAggregate } from './tag-max-aggregate.output'; 6 | 7 | @ObjectType() 8 | export class AggregateTag { 9 | @Field(() => TagCountAggregate, { nullable: true }) 10 | _count?: TagCountAggregate; 11 | 12 | @Field(() => TagMinAggregate, { nullable: true }) 13 | _min?: TagMinAggregate; 14 | 15 | @Field(() => TagMaxAggregate, { nullable: true }) 16 | _max?: TagMaxAggregate; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/tag/create-many-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagCreateManyInput } from './tag-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateManyTagArgs { 8 | @Field(() => [TagCreateManyInput], { nullable: false }) 9 | @Type(() => TagCreateManyInput) 10 | data!: Array; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | skipDuplicates?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/tag/create-one-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagCreateInput } from './tag-create.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class CreateOneTagArgs { 8 | @Field(() => TagCreateInput, { nullable: false }) 9 | @Type(() => TagCreateInput) 10 | data!: TagCreateInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/delete-many-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagWhereInput } from './tag-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyTagArgs { 8 | @Field(() => TagWhereInput, { nullable: true }) 9 | @Type(() => TagWhereInput) 10 | where?: TagWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/delete-one-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneTagArgs { 8 | @Field(() => TagWhereUniqueInput, { nullable: false }) 9 | @Type(() => TagWhereUniqueInput) 10 | where!: TagWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/find-unique-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueTagArgs { 8 | @Field(() => TagWhereUniqueInput, { nullable: false }) 9 | @Type(() => TagWhereUniqueInput) 10 | where!: TagWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-count-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagCountAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | name?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | _all?: true; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/tag/tag-count-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class TagCountAggregate { 7 | @Field(() => Int, { nullable: false }) 8 | id!: number; 9 | 10 | @Field(() => Int, { nullable: false }) 11 | name!: number; 12 | 13 | @Field(() => Int, { nullable: false }) 14 | _all!: number; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/tag/tag-count-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class TagCountOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | name?: keyof typeof SortOrder; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-count.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class TagCount { 7 | @Field(() => Int, { nullable: false }) 8 | articles?: number; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/tag/tag-create-many.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagCreateManyInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: false }) 10 | name!: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-create-or-connect-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagCreateWithoutArticlesInput } from './tag-create-without-articles.input'; 6 | 7 | @InputType() 8 | export class TagCreateOrConnectWithoutArticlesInput { 9 | @Field(() => TagWhereUniqueInput, { nullable: false }) 10 | @Type(() => TagWhereUniqueInput) 11 | where!: TagWhereUniqueInput; 12 | 13 | @Field(() => TagCreateWithoutArticlesInput, { nullable: false }) 14 | @Type(() => TagCreateWithoutArticlesInput) 15 | create!: TagCreateWithoutArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-create-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagCreateWithoutArticlesInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: false }) 10 | name!: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-create.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleCreateNestedManyWithoutTagsInput } from '../article/article-create-nested-many-without-tags.input'; 4 | 5 | @InputType() 6 | export class TagCreateInput { 7 | @Field(() => String, { nullable: true }) 8 | id?: string; 9 | 10 | @Field(() => String, { nullable: false }) 11 | name!: string; 12 | 13 | @Field(() => ArticleCreateNestedManyWithoutTagsInput, { nullable: true }) 14 | articles?: ArticleCreateNestedManyWithoutTagsInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/tag/tag-group-by.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { TagCountAggregate } from './tag-count-aggregate.output'; 4 | import { TagMinAggregate } from './tag-min-aggregate.output'; 5 | import { TagMaxAggregate } from './tag-max-aggregate.output'; 6 | 7 | @ObjectType() 8 | export class TagGroupBy { 9 | @Field(() => String, { nullable: false }) 10 | id!: string; 11 | 12 | @Field(() => String, { nullable: false }) 13 | name!: string; 14 | 15 | @Field(() => TagCountAggregate, { nullable: true }) 16 | _count?: TagCountAggregate; 17 | 18 | @Field(() => TagMinAggregate, { nullable: true }) 19 | _min?: TagMinAggregate; 20 | 21 | @Field(() => TagMaxAggregate, { nullable: true }) 22 | _max?: TagMaxAggregate; 23 | } 24 | -------------------------------------------------------------------------------- /@generated/tag/tag-list-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagWhereInput } from './tag-where.input'; 4 | 5 | @InputType() 6 | export class TagListRelationFilter { 7 | @Field(() => TagWhereInput, { nullable: true }) 8 | every?: TagWhereInput; 9 | 10 | @Field(() => TagWhereInput, { nullable: true }) 11 | some?: TagWhereInput; 12 | 13 | @Field(() => TagWhereInput, { nullable: true }) 14 | none?: TagWhereInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/tag/tag-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | name?: true; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-max-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | 4 | @ObjectType() 5 | export class TagMaxAggregate { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: true }) 10 | name?: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-max-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class TagMaxOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | name?: keyof typeof SortOrder; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | name?: true; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-min-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | 4 | @ObjectType() 5 | export class TagMinAggregate { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: true }) 10 | name?: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-min-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class TagMinOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | id?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | name?: keyof typeof SortOrder; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-order-by-relation-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class TagOrderByRelationAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | _count?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/tag/tag-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum TagOrderByRelevanceFieldEnum { 4 | id = 'id', 5 | name = 'name', 6 | } 7 | 8 | registerEnumType(TagOrderByRelevanceFieldEnum, { 9 | name: 'TagOrderByRelevanceFieldEnum', 10 | description: undefined, 11 | }); 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagOrderByRelevanceFieldEnum } from './tag-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class TagOrderByRelevanceInput { 8 | @Field(() => [TagOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-order-by-with-relation-and-search-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | import { ArticleOrderByRelationAggregateInput } from '../article/article-order-by-relation-aggregate.input'; 5 | import { TagOrderByRelevanceInput } from './tag-order-by-relevance.input'; 6 | 7 | @InputType() 8 | export class TagOrderByWithRelationAndSearchRelevanceInput { 9 | @Field(() => SortOrder, { nullable: true }) 10 | id?: keyof typeof SortOrder; 11 | 12 | @Field(() => SortOrder, { nullable: true }) 13 | name?: keyof typeof SortOrder; 14 | 15 | @Field(() => ArticleOrderByRelationAggregateInput, { nullable: true }) 16 | articles?: ArticleOrderByRelationAggregateInput; 17 | 18 | @Field(() => TagOrderByRelevanceInput, { nullable: true }) 19 | _relevance?: TagOrderByRelevanceInput; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/tag/tag-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum TagScalarFieldEnum { 4 | id = 'id', 5 | name = 'name', 6 | } 7 | 8 | registerEnumType(TagScalarFieldEnum, { 9 | name: 'TagScalarFieldEnum', 10 | description: undefined, 11 | }); 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-scalar-where-with-aggregates.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; 4 | 5 | @InputType() 6 | export class TagScalarWhereWithAggregatesInput { 7 | @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) 8 | AND?: Array; 9 | 10 | @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) 11 | OR?: Array; 12 | 13 | @Field(() => [TagScalarWhereWithAggregatesInput], { nullable: true }) 14 | NOT?: Array; 15 | 16 | @Field(() => StringWithAggregatesFilter, { nullable: true }) 17 | id?: StringWithAggregatesFilter; 18 | 19 | @Field(() => StringWithAggregatesFilter, { nullable: true }) 20 | name?: StringWithAggregatesFilter; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/tag/tag-scalar-where.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFilter } from '../prisma/string-filter.input'; 4 | 5 | @InputType() 6 | export class TagScalarWhereInput { 7 | @Field(() => [TagScalarWhereInput], { nullable: true }) 8 | AND?: Array; 9 | 10 | @Field(() => [TagScalarWhereInput], { nullable: true }) 11 | OR?: Array; 12 | 13 | @Field(() => [TagScalarWhereInput], { nullable: true }) 14 | NOT?: Array; 15 | 16 | @Field(() => StringFilter, { nullable: true }) 17 | id?: StringFilter; 18 | 19 | @Field(() => StringFilter, { nullable: true }) 20 | name?: StringFilter; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-create-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagUncheckedCreateWithoutArticlesInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: false }) 10 | name!: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-create.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { ArticleUncheckedCreateNestedManyWithoutTagsInput } from '../article/article-unchecked-create-nested-many-without-tags.input'; 4 | 5 | @InputType() 6 | export class TagUncheckedCreateInput { 7 | @Field(() => String, { nullable: true }) 8 | id?: string; 9 | 10 | @Field(() => String, { nullable: false }) 11 | name!: string; 12 | 13 | @Field(() => ArticleUncheckedCreateNestedManyWithoutTagsInput, { nullable: true }) 14 | articles?: ArticleUncheckedCreateNestedManyWithoutTagsInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-update-many-without-tags.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class TagUncheckedUpdateManyWithoutTagsInput { 7 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 8 | id?: StringFieldUpdateOperationsInput; 9 | 10 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 11 | name?: StringFieldUpdateOperationsInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-update-many.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class TagUncheckedUpdateManyInput { 7 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 8 | id?: StringFieldUpdateOperationsInput; 9 | 10 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 11 | name?: StringFieldUpdateOperationsInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-update-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class TagUncheckedUpdateWithoutArticlesInput { 7 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 8 | id?: StringFieldUpdateOperationsInput; 9 | 10 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 11 | name?: StringFieldUpdateOperationsInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-unchecked-update.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | import { ArticleUncheckedUpdateManyWithoutTagsInput } from '../article/article-unchecked-update-many-without-tags.input'; 5 | 6 | @InputType() 7 | export class TagUncheckedUpdateInput { 8 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 9 | id?: StringFieldUpdateOperationsInput; 10 | 11 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 12 | name?: StringFieldUpdateOperationsInput; 13 | 14 | @Field(() => ArticleUncheckedUpdateManyWithoutTagsInput, { nullable: true }) 15 | articles?: ArticleUncheckedUpdateManyWithoutTagsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-update-many-mutation.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class TagUpdateManyMutationInput { 7 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 8 | id?: StringFieldUpdateOperationsInput; 9 | 10 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 11 | name?: StringFieldUpdateOperationsInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-update-many-with-where-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagScalarWhereInput } from './tag-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagUpdateManyMutationInput } from './tag-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class TagUpdateManyWithWhereWithoutArticlesInput { 9 | @Field(() => TagScalarWhereInput, { nullable: false }) 10 | @Type(() => TagScalarWhereInput) 11 | where!: TagScalarWhereInput; 12 | 13 | @Field(() => TagUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => TagUpdateManyMutationInput) 15 | data!: TagUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-update-with-where-unique-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagUpdateWithoutArticlesInput } from './tag-update-without-articles.input'; 6 | 7 | @InputType() 8 | export class TagUpdateWithWhereUniqueWithoutArticlesInput { 9 | @Field(() => TagWhereUniqueInput, { nullable: false }) 10 | @Type(() => TagWhereUniqueInput) 11 | where!: TagWhereUniqueInput; 12 | 13 | @Field(() => TagUpdateWithoutArticlesInput, { nullable: false }) 14 | @Type(() => TagUpdateWithoutArticlesInput) 15 | data!: TagUpdateWithoutArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-update-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | 5 | @InputType() 6 | export class TagUpdateWithoutArticlesInput { 7 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 8 | id?: StringFieldUpdateOperationsInput; 9 | 10 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 11 | name?: StringFieldUpdateOperationsInput; 12 | } 13 | -------------------------------------------------------------------------------- /@generated/tag/tag-update.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; 4 | import { ArticleUpdateManyWithoutTagsInput } from '../article/article-update-many-without-tags.input'; 5 | 6 | @InputType() 7 | export class TagUpdateInput { 8 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 9 | id?: StringFieldUpdateOperationsInput; 10 | 11 | @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) 12 | name?: StringFieldUpdateOperationsInput; 13 | 14 | @Field(() => ArticleUpdateManyWithoutTagsInput, { nullable: true }) 15 | articles?: ArticleUpdateManyWithoutTagsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/tag-upsert-with-where-unique-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagUpdateWithoutArticlesInput } from './tag-update-without-articles.input'; 6 | import { TagCreateWithoutArticlesInput } from './tag-create-without-articles.input'; 7 | 8 | @InputType() 9 | export class TagUpsertWithWhereUniqueWithoutArticlesInput { 10 | @Field(() => TagWhereUniqueInput, { nullable: false }) 11 | @Type(() => TagWhereUniqueInput) 12 | where!: TagWhereUniqueInput; 13 | 14 | @Field(() => TagUpdateWithoutArticlesInput, { nullable: false }) 15 | @Type(() => TagUpdateWithoutArticlesInput) 16 | update!: TagUpdateWithoutArticlesInput; 17 | 18 | @Field(() => TagCreateWithoutArticlesInput, { nullable: false }) 19 | @Type(() => TagCreateWithoutArticlesInput) 20 | create!: TagCreateWithoutArticlesInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/tag/tag-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class TagWhereUniqueInput { 6 | @Field(() => String, { nullable: true }) 7 | id?: string; 8 | 9 | @Field(() => String, { nullable: true }) 10 | name?: string; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/tag/tag-where.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { StringFilter } from '../prisma/string-filter.input'; 4 | import { ArticleListRelationFilter } from '../article/article-list-relation-filter.input'; 5 | 6 | @InputType() 7 | export class TagWhereInput { 8 | @Field(() => [TagWhereInput], { nullable: true }) 9 | AND?: Array; 10 | 11 | @Field(() => [TagWhereInput], { nullable: true }) 12 | OR?: Array; 13 | 14 | @Field(() => [TagWhereInput], { nullable: true }) 15 | NOT?: Array; 16 | 17 | @Field(() => StringFilter, { nullable: true }) 18 | id?: StringFilter; 19 | 20 | @Field(() => StringFilter, { nullable: true }) 21 | name?: StringFilter; 22 | 23 | @Field(() => ArticleListRelationFilter, { nullable: true }) 24 | articles?: ArticleListRelationFilter; 25 | } 26 | -------------------------------------------------------------------------------- /@generated/tag/tag.model.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { ID } from '@nestjs/graphql'; 4 | import { Article } from '../article/article.model'; 5 | import { TagCount } from './tag-count.output'; 6 | 7 | @ObjectType() 8 | export class Tag { 9 | @Field(() => ID, { nullable: false }) 10 | id!: string; 11 | 12 | @Field(() => String, { nullable: false }) 13 | name!: string; 14 | 15 | @Field(() => [Article], { nullable: true }) 16 | articles?: Array
; 17 | 18 | @Field(() => TagCount, { nullable: false }) 19 | _count?: TagCount; 20 | } 21 | -------------------------------------------------------------------------------- /@generated/tag/update-many-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagUpdateManyMutationInput } from './tag-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagWhereInput } from './tag-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyTagArgs { 9 | @Field(() => TagUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => TagUpdateManyMutationInput) 11 | data!: TagUpdateManyMutationInput; 12 | 13 | @Field(() => TagWhereInput, { nullable: true }) 14 | @Type(() => TagWhereInput) 15 | where?: TagWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/update-one-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagUpdateInput } from './tag-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneTagArgs { 9 | @Field(() => TagUpdateInput, { nullable: false }) 10 | @Type(() => TagUpdateInput) 11 | data!: TagUpdateInput; 12 | 13 | @Field(() => TagWhereUniqueInput, { nullable: false }) 14 | @Type(() => TagWhereUniqueInput) 15 | where!: TagWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/tag/upsert-one-tag.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { TagWhereUniqueInput } from './tag-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { TagCreateInput } from './tag-create.input'; 6 | import { TagUpdateInput } from './tag-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneTagArgs { 10 | @Field(() => TagWhereUniqueInput, { nullable: false }) 11 | @Type(() => TagWhereUniqueInput) 12 | where!: TagWhereUniqueInput; 13 | 14 | @Field(() => TagCreateInput, { nullable: false }) 15 | @Type(() => TagCreateInput) 16 | create!: TagCreateInput; 17 | 18 | @Field(() => TagUpdateInput, { nullable: false }) 19 | @Type(() => TagUpdateInput) 20 | update!: TagUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/user/aggregate-user.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { UserCountAggregate } from './user-count-aggregate.output'; 4 | import { UserAvgAggregate } from './user-avg-aggregate.output'; 5 | import { UserSumAggregate } from './user-sum-aggregate.output'; 6 | import { UserMinAggregate } from './user-min-aggregate.output'; 7 | import { UserMaxAggregate } from './user-max-aggregate.output'; 8 | 9 | @ObjectType() 10 | export class AggregateUser { 11 | @Field(() => UserCountAggregate, { nullable: true }) 12 | _count?: UserCountAggregate; 13 | 14 | @Field(() => UserAvgAggregate, { nullable: true }) 15 | _avg?: UserAvgAggregate; 16 | 17 | @Field(() => UserSumAggregate, { nullable: true }) 18 | _sum?: UserSumAggregate; 19 | 20 | @Field(() => UserMinAggregate, { nullable: true }) 21 | _min?: UserMinAggregate; 22 | 23 | @Field(() => UserMaxAggregate, { nullable: true }) 24 | _max?: UserMaxAggregate; 25 | } 26 | -------------------------------------------------------------------------------- /@generated/user/create-many-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserCreateManyInput } from './user-create-many.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ValidateNested } from 'class-validator'; 6 | 7 | @ArgsType() 8 | export class CreateManyUserArgs { 9 | @Field(() => [UserCreateManyInput], { nullable: false }) 10 | @Type(() => UserCreateManyInput) 11 | @ValidateNested() 12 | @Type(() => UserCreateManyInput) 13 | data!: Array; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | skipDuplicates?: boolean; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/user/create-one-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserCreateInput } from './user-create.input'; 4 | import { Type } from 'class-transformer'; 5 | import { ValidateNested } from 'class-validator'; 6 | 7 | @ArgsType() 8 | export class CreateOneUserArgs { 9 | @Field(() => UserCreateInput, { nullable: false }) 10 | @Type(() => UserCreateInput) 11 | @ValidateNested() 12 | @Type(() => UserCreateInput) 13 | data!: UserCreateInput; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/user/delete-many-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserWhereInput } from './user-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteManyUserArgs { 8 | @Field(() => UserWhereInput, { nullable: true }) 9 | @Type(() => UserWhereInput) 10 | where?: UserWhereInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/user/delete-one-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class DeleteOneUserArgs { 8 | @Field(() => UserWhereUniqueInput, { nullable: false }) 9 | @Type(() => UserWhereUniqueInput) 10 | where!: UserWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/user/find-unique-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @ArgsType() 7 | export class FindUniqueUserArgs { 8 | @Field(() => UserWhereUniqueInput, { nullable: false }) 9 | @Type(() => UserWhereUniqueInput) 10 | where!: UserWhereUniqueInput; 11 | } 12 | -------------------------------------------------------------------------------- /@generated/user/update-many-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserWhereInput } from './user-where.input'; 6 | 7 | @ArgsType() 8 | export class UpdateManyUserArgs { 9 | @Field(() => UserUpdateManyMutationInput, { nullable: false }) 10 | @Type(() => UserUpdateManyMutationInput) 11 | data!: UserUpdateManyMutationInput; 12 | 13 | @Field(() => UserWhereInput, { nullable: true }) 14 | @Type(() => UserWhereInput) 15 | where?: UserWhereInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/update-one-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserUpdateInput } from './user-update.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserWhereUniqueInput } from './user-where-unique.input'; 6 | 7 | @ArgsType() 8 | export class UpdateOneUserArgs { 9 | @Field(() => UserUpdateInput, { nullable: false }) 10 | @Type(() => UserUpdateInput) 11 | data!: UserUpdateInput; 12 | 13 | @Field(() => UserWhereUniqueInput, { nullable: false }) 14 | @Type(() => UserWhereUniqueInput) 15 | where!: UserWhereUniqueInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/upsert-one-user.args.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ArgsType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateInput } from './user-create.input'; 6 | import { UserUpdateInput } from './user-update.input'; 7 | 8 | @ArgsType() 9 | export class UpsertOneUserArgs { 10 | @Field(() => UserWhereUniqueInput, { nullable: false }) 11 | @Type(() => UserWhereUniqueInput) 12 | where!: UserWhereUniqueInput; 13 | 14 | @Field(() => UserCreateInput, { nullable: false }) 15 | @Type(() => UserCreateInput) 16 | create!: UserCreateInput; 17 | 18 | @Field(() => UserUpdateInput, { nullable: false }) 19 | @Type(() => UserUpdateInput) 20 | update!: UserUpdateInput; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/user/user-avg-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class UserAvgAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | countComments?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | rating?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | money?: true; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/user/user-avg-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Float } from '@nestjs/graphql'; 4 | import { Decimal } from '@prisma/client/runtime'; 5 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 6 | 7 | @ObjectType() 8 | export class UserAvgAggregate { 9 | @Field(() => Float, { nullable: true }) 10 | countComments?: number; 11 | 12 | @Field(() => Float, { nullable: true }) 13 | rating?: number; 14 | 15 | @Field(() => GraphQLDecimal, { nullable: true }) 16 | money?: Decimal; 17 | } 18 | -------------------------------------------------------------------------------- /@generated/user/user-avg-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class UserAvgOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | countComments?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | rating?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | money?: keyof typeof SortOrder; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/user/user-count-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class UserCountAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | email?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | name?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | password?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bio?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | image?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | countComments?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | rating?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | money?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | role?: true; 35 | 36 | @Field(() => Boolean, { nullable: true }) 37 | _all?: true; 38 | } 39 | -------------------------------------------------------------------------------- /@generated/user/user-count.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | 5 | @ObjectType() 6 | export class UserCount { 7 | @Field(() => Int, { nullable: false }) 8 | following?: number; 9 | 10 | @Field(() => Int, { nullable: false }) 11 | followers?: number; 12 | 13 | @Field(() => Int, { nullable: false }) 14 | favoriteArticles?: number; 15 | 16 | @Field(() => Int, { nullable: false }) 17 | articles?: number; 18 | 19 | @Field(() => Int, { nullable: false }) 20 | comments?: number; 21 | } 22 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutArticlesInput } from './user-create-without-articles.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutArticlesInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutArticlesInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutArticlesInput) 15 | create!: UserCreateWithoutArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-comments.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutCommentsInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutCommentsInput) 15 | create!: UserCreateWithoutCommentsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-favorite-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutFavoriteArticlesInput } from './user-create-without-favorite-articles.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutFavoriteArticlesInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutFavoriteArticlesInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutFavoriteArticlesInput) 15 | create!: UserCreateWithoutFavoriteArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-followers.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutFollowersInput } from './user-create-without-followers.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutFollowersInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutFollowersInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutFollowersInput) 15 | create!: UserCreateWithoutFollowersInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-following.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutFollowingInput } from './user-create-without-following.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutFollowingInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutFollowingInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutFollowingInput) 15 | create!: UserCreateWithoutFollowingInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-create-or-connect-without-profile.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutProfileInput } from './user-create-without-profile.input'; 6 | 7 | @InputType() 8 | export class UserCreateOrConnectWithoutProfileInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserCreateWithoutProfileInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutProfileInput) 15 | create!: UserCreateWithoutProfileInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-email-name-compound-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import * as Scalars from 'graphql-scalars'; 4 | import * as Validator from 'class-validator'; 5 | 6 | @InputType() 7 | export class UserEmailNameCompoundUniqueInput { 8 | @Field(() => Scalars.GraphQLEmailAddress, { nullable: false }) 9 | email!: string; 10 | 11 | @Field(() => String, { nullable: false }) 12 | @Validator.MinLength(3) 13 | @Validator.MaxLength(50) 14 | name!: string; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/user/user-list-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereInput } from './user-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class UserListRelationFilter { 8 | @Field(() => UserWhereInput, { nullable: true }) 9 | @Type(() => UserWhereInput) 10 | every?: UserWhereInput; 11 | 12 | @Field(() => UserWhereInput, { nullable: true }) 13 | @Type(() => UserWhereInput) 14 | some?: UserWhereInput; 15 | 16 | @Field(() => UserWhereInput, { nullable: true }) 17 | @Type(() => UserWhereInput) 18 | none?: UserWhereInput; 19 | } 20 | -------------------------------------------------------------------------------- /@generated/user/user-max-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class UserMaxAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | email?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | name?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | password?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bio?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | image?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | countComments?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | rating?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | money?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | role?: true; 35 | } 36 | -------------------------------------------------------------------------------- /@generated/user/user-min-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class UserMinAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | id?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | email?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | name?: true; 14 | 15 | @Field(() => Boolean, { nullable: true }) 16 | password?: true; 17 | 18 | @Field(() => Boolean, { nullable: true }) 19 | bio?: true; 20 | 21 | @Field(() => Boolean, { nullable: true }) 22 | image?: true; 23 | 24 | @Field(() => Boolean, { nullable: true }) 25 | countComments?: true; 26 | 27 | @Field(() => Boolean, { nullable: true }) 28 | rating?: true; 29 | 30 | @Field(() => Boolean, { nullable: true }) 31 | money?: true; 32 | 33 | @Field(() => Boolean, { nullable: true }) 34 | role?: true; 35 | } 36 | -------------------------------------------------------------------------------- /@generated/user/user-order-by-relation-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class UserOrderByRelationAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | _count?: keyof typeof SortOrder; 9 | } 10 | -------------------------------------------------------------------------------- /@generated/user/user-order-by-relevance-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum UserOrderByRelevanceFieldEnum { 4 | id = 'id', 5 | email = 'email', 6 | name = 'name', 7 | password = 'password', 8 | bio = 'bio', 9 | image = 'image', 10 | } 11 | 12 | registerEnumType(UserOrderByRelevanceFieldEnum, { 13 | name: 'UserOrderByRelevanceFieldEnum', 14 | description: undefined, 15 | }); 16 | -------------------------------------------------------------------------------- /@generated/user/user-order-by-relevance.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserOrderByRelevanceFieldEnum } from './user-order-by-relevance-field.enum'; 4 | import { SortOrder } from '../prisma/sort-order.enum'; 5 | 6 | @InputType() 7 | export class UserOrderByRelevanceInput { 8 | @Field(() => [UserOrderByRelevanceFieldEnum], { nullable: false }) 9 | fields!: Array; 10 | 11 | @Field(() => SortOrder, { nullable: false }) 12 | sort!: keyof typeof SortOrder; 13 | 14 | @Field(() => String, { nullable: false }) 15 | search!: string; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-relation-filter.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereInput } from './user-where.input'; 4 | import { Type } from 'class-transformer'; 5 | 6 | @InputType() 7 | export class UserRelationFilter { 8 | @Field(() => UserWhereInput, { nullable: true }) 9 | @Type(() => UserWhereInput) 10 | is?: UserWhereInput; 11 | 12 | @Field(() => UserWhereInput, { nullable: true }) 13 | @Type(() => UserWhereInput) 14 | isNot?: UserWhereInput; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/user/user-scalar-field.enum.ts: -------------------------------------------------------------------------------- 1 | import { registerEnumType } from '@nestjs/graphql'; 2 | 3 | export enum UserScalarFieldEnum { 4 | id = 'id', 5 | email = 'email', 6 | name = 'name', 7 | password = 'password', 8 | bio = 'bio', 9 | image = 'image', 10 | countComments = 'countComments', 11 | rating = 'rating', 12 | money = 'money', 13 | role = 'role', 14 | } 15 | 16 | registerEnumType(UserScalarFieldEnum, { 17 | name: 'UserScalarFieldEnum', 18 | description: undefined, 19 | }); 20 | -------------------------------------------------------------------------------- /@generated/user/user-sum-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | 4 | @InputType() 5 | export class UserSumAggregateInput { 6 | @Field(() => Boolean, { nullable: true }) 7 | countComments?: true; 8 | 9 | @Field(() => Boolean, { nullable: true }) 10 | rating?: true; 11 | 12 | @Field(() => Boolean, { nullable: true }) 13 | money?: true; 14 | } 15 | -------------------------------------------------------------------------------- /@generated/user/user-sum-aggregate.output.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { ObjectType } from '@nestjs/graphql'; 3 | import { Int } from '@nestjs/graphql'; 4 | import { Float } from '@nestjs/graphql'; 5 | import { Decimal } from '@prisma/client/runtime'; 6 | import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; 7 | 8 | @ObjectType() 9 | export class UserSumAggregate { 10 | @Field(() => Int, { nullable: true }) 11 | countComments?: number; 12 | 13 | @Field(() => Float, { nullable: true }) 14 | rating?: number; 15 | 16 | @Field(() => GraphQLDecimal, { nullable: true }) 17 | money?: Decimal; 18 | } 19 | -------------------------------------------------------------------------------- /@generated/user/user-sum-order-by-aggregate.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { SortOrder } from '../prisma/sort-order.enum'; 4 | 5 | @InputType() 6 | export class UserSumOrderByAggregateInput { 7 | @Field(() => SortOrder, { nullable: true }) 8 | countComments?: keyof typeof SortOrder; 9 | 10 | @Field(() => SortOrder, { nullable: true }) 11 | rating?: keyof typeof SortOrder; 12 | 13 | @Field(() => SortOrder, { nullable: true }) 14 | money?: keyof typeof SortOrder; 15 | } 16 | -------------------------------------------------------------------------------- /@generated/user/user-update-many-with-where-without-favorite-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserScalarWhereInput } from './user-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class UserUpdateManyWithWhereWithoutFavoriteArticlesInput { 9 | @Field(() => UserScalarWhereInput, { nullable: false }) 10 | @Type(() => UserScalarWhereInput) 11 | where!: UserScalarWhereInput; 12 | 13 | @Field(() => UserUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => UserUpdateManyMutationInput) 15 | data!: UserUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-update-many-with-where-without-followers.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserScalarWhereInput } from './user-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class UserUpdateManyWithWhereWithoutFollowersInput { 9 | @Field(() => UserScalarWhereInput, { nullable: false }) 10 | @Type(() => UserScalarWhereInput) 11 | where!: UserScalarWhereInput; 12 | 13 | @Field(() => UserUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => UserUpdateManyMutationInput) 15 | data!: UserUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-update-many-with-where-without-following.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserScalarWhereInput } from './user-scalar-where.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; 6 | 7 | @InputType() 8 | export class UserUpdateManyWithWhereWithoutFollowingInput { 9 | @Field(() => UserScalarWhereInput, { nullable: false }) 10 | @Type(() => UserScalarWhereInput) 11 | where!: UserScalarWhereInput; 12 | 13 | @Field(() => UserUpdateManyMutationInput, { nullable: false }) 14 | @Type(() => UserUpdateManyMutationInput) 15 | data!: UserUpdateManyMutationInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-update-with-where-unique-without-favorite-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateWithoutFavoriteArticlesInput } from './user-update-without-favorite-articles.input'; 6 | 7 | @InputType() 8 | export class UserUpdateWithWhereUniqueWithoutFavoriteArticlesInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserUpdateWithoutFavoriteArticlesInput, { nullable: false }) 14 | @Type(() => UserUpdateWithoutFavoriteArticlesInput) 15 | data!: UserUpdateWithoutFavoriteArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-update-with-where-unique-without-followers.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateWithoutFollowersInput } from './user-update-without-followers.input'; 6 | 7 | @InputType() 8 | export class UserUpdateWithWhereUniqueWithoutFollowersInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserUpdateWithoutFollowersInput, { nullable: false }) 14 | @Type(() => UserUpdateWithoutFollowersInput) 15 | data!: UserUpdateWithoutFollowersInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-update-with-where-unique-without-following.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserWhereUniqueInput } from './user-where-unique.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserUpdateWithoutFollowingInput } from './user-update-without-following.input'; 6 | 7 | @InputType() 8 | export class UserUpdateWithWhereUniqueWithoutFollowingInput { 9 | @Field(() => UserWhereUniqueInput, { nullable: false }) 10 | @Type(() => UserWhereUniqueInput) 11 | where!: UserWhereUniqueInput; 12 | 13 | @Field(() => UserUpdateWithoutFollowingInput, { nullable: false }) 14 | @Type(() => UserUpdateWithoutFollowingInput) 15 | data!: UserUpdateWithoutFollowingInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-upsert-without-articles.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserUpdateWithoutArticlesInput } from './user-update-without-articles.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutArticlesInput } from './user-create-without-articles.input'; 6 | 7 | @InputType() 8 | export class UserUpsertWithoutArticlesInput { 9 | @Field(() => UserUpdateWithoutArticlesInput, { nullable: false }) 10 | @Type(() => UserUpdateWithoutArticlesInput) 11 | update!: UserUpdateWithoutArticlesInput; 12 | 13 | @Field(() => UserCreateWithoutArticlesInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutArticlesInput) 15 | create!: UserCreateWithoutArticlesInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-upsert-without-comments.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; 6 | 7 | @InputType() 8 | export class UserUpsertWithoutCommentsInput { 9 | @Field(() => UserUpdateWithoutCommentsInput, { nullable: false }) 10 | @Type(() => UserUpdateWithoutCommentsInput) 11 | update!: UserUpdateWithoutCommentsInput; 12 | 13 | @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutCommentsInput) 15 | create!: UserCreateWithoutCommentsInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-upsert-without-profile.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import { UserUpdateWithoutProfileInput } from './user-update-without-profile.input'; 4 | import { Type } from 'class-transformer'; 5 | import { UserCreateWithoutProfileInput } from './user-create-without-profile.input'; 6 | 7 | @InputType() 8 | export class UserUpsertWithoutProfileInput { 9 | @Field(() => UserUpdateWithoutProfileInput, { nullable: false }) 10 | @Type(() => UserUpdateWithoutProfileInput) 11 | update!: UserUpdateWithoutProfileInput; 12 | 13 | @Field(() => UserCreateWithoutProfileInput, { nullable: false }) 14 | @Type(() => UserCreateWithoutProfileInput) 15 | create!: UserCreateWithoutProfileInput; 16 | } 17 | -------------------------------------------------------------------------------- /@generated/user/user-where-unique.input.ts: -------------------------------------------------------------------------------- 1 | import { Field } from '@nestjs/graphql'; 2 | import { InputType } from '@nestjs/graphql'; 3 | import * as Scalars from 'graphql-scalars'; 4 | import * as Validator from 'class-validator'; 5 | import { UserEmailNameCompoundUniqueInput } from './user-email-name-compound-unique.input'; 6 | import { Type } from 'class-transformer'; 7 | 8 | @InputType() 9 | export class UserWhereUniqueInput { 10 | @Field(() => String, { nullable: true }) 11 | id?: string; 12 | 13 | @Field(() => Scalars.GraphQLEmailAddress, { nullable: true }) 14 | email?: string; 15 | 16 | @Field(() => String, { nullable: true }) 17 | @Validator.MinLength(3) 18 | @Validator.MaxLength(50) 19 | name?: string; 20 | 21 | @Field(() => UserEmailNameCompoundUniqueInput, { nullable: true }) 22 | @Type(() => UserEmailNameCompoundUniqueInput) 23 | email_name?: UserEmailNameCompoundUniqueInput; 24 | } 25 | -------------------------------------------------------------------------------- /example/app.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | import { GraphQLModule } from '@nestjs/graphql'; 3 | import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; 4 | 5 | import { DummyModule } from './dummy/dummy.module'; 6 | import { UserModule } from './user/user.module'; 7 | 8 | @Module({ 9 | imports: [ 10 | UserModule, 11 | DummyModule, 12 | GraphQLModule.forRoot({ 13 | driver: ApolloDriver, 14 | installSubscriptionHandlers: true, 15 | autoSchemaFile: '~schema.gql', 16 | }), 17 | ], 18 | }) 19 | export class AppModule {} 20 | -------------------------------------------------------------------------------- /example/dummy/dummy.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | 3 | import { DummyResolver } from './dummy.resolver'; 4 | 5 | @Module({ 6 | imports: [], 7 | providers: [DummyResolver], 8 | }) 9 | export class DummyModule {} 10 | -------------------------------------------------------------------------------- /example/main.ts: -------------------------------------------------------------------------------- 1 | import { ValidationPipe } from '@nestjs/common'; 2 | import { NestFactory } from '@nestjs/core'; 3 | 4 | import { AppModule } from './app.module'; 5 | 6 | async function bootstrap() { 7 | const app = await NestFactory.create(AppModule); 8 | app.useGlobalPipes(new ValidationPipe()); 9 | 10 | await app.listen(3000); 11 | console.log(`Application is running on: ${await app.getUrl()}`); 12 | } 13 | void bootstrap(); 14 | -------------------------------------------------------------------------------- /example/user/user-date.input.ts: -------------------------------------------------------------------------------- 1 | import { Field, GraphQLISODateTime, InputType } from '@nestjs/graphql'; 2 | 3 | @InputType() 4 | export class UserDateInput { 5 | @Field(() => GraphQLISODateTime, { 6 | nullable: true, 7 | }) 8 | date?: Date; 9 | } 10 | -------------------------------------------------------------------------------- /example/user/user.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | 3 | import { UserResolver } from './user.resolver'; 4 | 5 | @Module({ 6 | imports: [], 7 | providers: [UserResolver], 8 | }) 9 | export class UserModule {} 10 | -------------------------------------------------------------------------------- /src/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('./index.js'); 3 | -------------------------------------------------------------------------------- /src/handlers/emit-single.ts: -------------------------------------------------------------------------------- 1 | import AwaitEventEmitter from 'await-event-emitter'; 2 | import { PropertyDeclarationStructure } from 'ts-morph'; 3 | 4 | import { DMMF } from '../types'; 5 | 6 | export function emitSingle(emitter: AwaitEventEmitter) { 7 | emitter.on('ClassProperty', classProperty); 8 | } 9 | 10 | function classProperty( 11 | property: PropertyDeclarationStructure, 12 | eventArguments: { 13 | location: DMMF.FieldLocation; 14 | isList: boolean; 15 | propertyType: string[]; 16 | }, 17 | ) { 18 | const { location, isList, propertyType } = eventArguments; 19 | if (['inputObjectTypes', 'outputObjectTypes'].includes(location) && !isList) { 20 | const types = propertyType.filter(t => t !== 'null'); 21 | property.type = types.map(t => `InstanceType`).join(' | '); 22 | if (types.length !== propertyType.length) { 23 | // If null was removed 24 | property.type += ' | null'; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/handlers/require-single-fields-in-whereunique-input.ts: -------------------------------------------------------------------------------- 1 | import AwaitEventEmitter from 'await-event-emitter'; 2 | 3 | import { EventArguments, InputType } from '../types'; 4 | 5 | export function requireSingleFieldsInWhereUniqueInput(eventEmitter: AwaitEventEmitter) { 6 | eventEmitter.on('BeforeInputType', beforeInputType); 7 | } 8 | 9 | function beforeInputType(args: EventArguments & { inputType: InputType }) { 10 | const { inputType } = args; 11 | 12 | if (!isWhereUniqueInputType(inputType.name) || inputType.fields.length !== 1) { 13 | return; 14 | } 15 | 16 | for (const field of inputType.fields) { 17 | field.isRequired = true; 18 | field.isNullable = false; 19 | } 20 | } 21 | 22 | function isWhereUniqueInputType(name: string) { 23 | return name.endsWith('WhereUniqueInput'); 24 | } 25 | -------------------------------------------------------------------------------- /src/handlers/warning.ts: -------------------------------------------------------------------------------- 1 | export function warning(messages: string[]): void; 2 | export function warning(message: string | string[]): void { 3 | if (Array.isArray(message)) { 4 | console.log('prisma-nestjs-graphql:'); 5 | console.log(message.join('\n')); 6 | } else { 7 | console.log('prisma-nestjs-graphql:', message); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/helpers/create-comment.ts: -------------------------------------------------------------------------------- 1 | import { ObjectSettings } from '../types'; 2 | 3 | export function createComment(documentation: string, settings?: ObjectSettings) { 4 | const documentationLines = documentation.split('\n'); 5 | const commentLines = ['/**']; 6 | 7 | for (const line of documentationLines) { 8 | commentLines.push(` * ${line}`); 9 | } 10 | 11 | const deprecationReason = settings?.fieldArguments()?.deprecationReason as string; 12 | 13 | if (deprecationReason) { 14 | commentLines.push(` * @deprecated ${deprecationReason}`); 15 | } 16 | 17 | commentLines.push(' */\n'); 18 | 19 | return commentLines.join('\n'); 20 | } 21 | -------------------------------------------------------------------------------- /src/helpers/factory-get-source-file.ts: -------------------------------------------------------------------------------- 1 | import AwaitEventEmitter from 'await-event-emitter/types'; 2 | import { Project } from 'ts-morph'; 3 | 4 | import { generateFileName } from './generate-file-name'; 5 | 6 | export function factoryGetSourceFile(args: { 7 | output: string; 8 | outputFilePattern: string; 9 | project: Project; 10 | getModelName(name: string): string | undefined; 11 | eventEmitter: AwaitEventEmitter; 12 | }) { 13 | const { outputFilePattern, output, getModelName, project } = args; 14 | 15 | return function getSourceFile(args: { type: string; name: string }) { 16 | const { name, type } = args; 17 | let filePath = generateFileName({ 18 | getModelName, 19 | name, 20 | type, 21 | template: outputFilePattern, 22 | }); 23 | filePath = `${output}/${filePath}`; 24 | 25 | return ( 26 | project.getSourceFile(filePath) || 27 | project.createSourceFile(filePath, undefined, { overwrite: true }) 28 | ); 29 | }; 30 | } 31 | -------------------------------------------------------------------------------- /src/helpers/file-type-by-location.ts: -------------------------------------------------------------------------------- 1 | import { FieldLocation } from '../types'; 2 | 3 | export function fileTypeByLocation(fieldLocation: FieldLocation) { 4 | switch (fieldLocation) { 5 | case 'inputObjectTypes': 6 | return 'input'; 7 | case 'outputObjectTypes': 8 | return 'output'; 9 | case 'enumTypes': 10 | return 'enum'; 11 | } 12 | return 'object'; 13 | } 14 | -------------------------------------------------------------------------------- /src/helpers/generate-file-name.ts: -------------------------------------------------------------------------------- 1 | import { kebabCase } from 'lodash'; 2 | import pluralize from 'pluralize'; 3 | import pupa from 'pupa'; 4 | 5 | export function generateFileName(args: { 6 | type: string; 7 | name: string; 8 | getModelName(name: string): string | undefined; 9 | template: string; 10 | }) { 11 | const { template, type, name, getModelName } = args; 12 | 13 | return pupa(template, { 14 | type, 15 | get model() { 16 | const result = getModelName(name) || 'prisma'; 17 | return kebabCase(result); 18 | }, 19 | get name() { 20 | let result = kebabCase(name); 21 | for (const suffix of ['input', 'args', 'enum']) { 22 | const ending = `-${suffix}`; 23 | if (type === suffix && result.endsWith(ending)) { 24 | result = result.slice(0, -ending.length); 25 | } 26 | } 27 | return result; 28 | }, 29 | plural: { 30 | get type() { 31 | return pluralize(type); 32 | }, 33 | }, 34 | }); 35 | } 36 | -------------------------------------------------------------------------------- /src/helpers/get-output-type-name.ts: -------------------------------------------------------------------------------- 1 | export function getOutputTypeName(name: string) { 2 | return name.replace(/(?:OutputType|Output)$/, ''); 3 | } 4 | -------------------------------------------------------------------------------- /src/helpers/pascal-case.ts: -------------------------------------------------------------------------------- 1 | import { camelCase, startCase } from 'lodash'; 2 | 3 | export function pascalCase(string: string) { 4 | return startCase(camelCase(string)).replace(/ /g, ''); 5 | } 6 | -------------------------------------------------------------------------------- /src/helpers/property-structure.ts: -------------------------------------------------------------------------------- 1 | import { PropertyDeclarationStructure, StructureKind } from 'ts-morph'; 2 | 3 | /** 4 | * Get property structure (field) for class. 5 | */ 6 | export function propertyStructure(args: { 7 | propertyType: string[]; 8 | isList: boolean; 9 | name: string; 10 | isNullable?: boolean; 11 | hasQuestionToken?: boolean; 12 | hasExclamationToken?: boolean; 13 | }): PropertyDeclarationStructure { 14 | const { 15 | isNullable, 16 | propertyType, 17 | name, 18 | isList, 19 | hasQuestionToken, 20 | hasExclamationToken, 21 | } = args; 22 | const type = propertyType.map(type => (isList ? `Array<${type}>` : type)).join(' | '); 23 | 24 | return { 25 | kind: StructureKind.Property, 26 | name, 27 | type, 28 | hasQuestionToken: hasQuestionToken ?? isNullable, 29 | hasExclamationToken: hasExclamationToken ?? !isNullable, 30 | decorators: [], 31 | leadingTrivia: '\n', 32 | }; 33 | } 34 | -------------------------------------------------------------------------------- /src/helpers/relative-path.ts: -------------------------------------------------------------------------------- 1 | import getRelativePath from 'get-relative-path'; 2 | 3 | export function relativePath(from: string, to: string) { 4 | if (!from.startsWith('/')) { 5 | from = `/${from}`; 6 | } 7 | if (!to.startsWith('/')) { 8 | to = `/${to}`; 9 | } 10 | let result = getRelativePath(from, to); 11 | if (!result.startsWith('.')) { 12 | result = `./${result}`; 13 | } 14 | if (result.endsWith('.ts')) { 15 | result = result.slice(0, -3); 16 | } 17 | return result; 18 | } 19 | -------------------------------------------------------------------------------- /src/helpers/update-object-property.ts: -------------------------------------------------------------------------------- 1 | import { ObjectLiteralExpression, PropertyAssignment, StructureKind } from 'ts-morph'; 2 | 3 | export function updateObjectProperty(args: { 4 | expression: ObjectLiteralExpression; 5 | name: string; 6 | value: string | number | boolean | undefined; 7 | }) { 8 | const { expression, name, value } = args; 9 | let propertyAssignment = expression.getProperty(name) as 10 | | PropertyAssignment 11 | | undefined; 12 | 13 | if (value === undefined) { 14 | if (propertyAssignment) { 15 | propertyAssignment.remove(); 16 | } 17 | return; 18 | } 19 | 20 | if (!propertyAssignment) { 21 | propertyAssignment = expression.addProperty({ 22 | name, 23 | kind: StructureKind.PropertyAssignment, 24 | initializer: 'undefined', 25 | }) as PropertyAssignment; 26 | } 27 | 28 | propertyAssignment.setInitializer(JSON.stringify(value)); 29 | } 30 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { generatorHandler, GeneratorOptions } from '@prisma/generator-helper'; 2 | 3 | import { generate } from './generate'; 4 | 5 | generatorHandler({ 6 | async onGenerate(options: GeneratorOptions) { 7 | await generate(options); 8 | }, 9 | onManifest() { 10 | return { 11 | defaultOutput: '.', 12 | prettyName: 'Prisma NestJS/GraphQL', 13 | }; 14 | }, 15 | }); 16 | -------------------------------------------------------------------------------- /src/test/proxy-generator.ts: -------------------------------------------------------------------------------- 1 | import { generatorHandler } from '@prisma/generator-helper'; 2 | import { ok } from 'assert'; 3 | import { promises as fs } from 'fs'; 4 | 5 | generatorHandler({ 6 | async onGenerate(options) { 7 | const generatorOutput = options.generator.output?.value; 8 | ok(generatorOutput, 'Missing generator configuration: output'); 9 | await fs.writeFile( 10 | `${generatorOutput}/options-${options.generator.config.hash}.js`, 11 | `module.exports = ${JSON.stringify(options, undefined, 2)}`, 12 | ); 13 | }, 14 | onManifest() { 15 | return { 16 | defaultOutput: '.', 17 | prettyName: 'proxy generator', 18 | }; 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "ts-node": { 3 | "transpileOnly": true, 4 | "swc": true, 5 | "compilerOptions": { 6 | "module": "commonjs" 7 | } 8 | }, 9 | "compilerOptions": { 10 | "target": "es2019", 11 | "module": "commonjs", 12 | "moduleResolution": "node", 13 | "importHelpers": true, 14 | "strict": true, 15 | "noImplicitAny": false, 16 | "experimentalDecorators": true, 17 | "emitDecoratorMetadata": true, 18 | "outDir": "dist", 19 | "pretty": true, 20 | "esModuleInterop": true, 21 | "removeComments": false, 22 | "sourceMap": false, 23 | "declaration": false, 24 | "declarationMap": false, 25 | "skipLibCheck": true, 26 | "lib": ["esnext"] 27 | }, 28 | "include": ["src", "example"] 29 | } 30 | --------------------------------------------------------------------------------