From 2c09376d30bec93d853e0a0680c4414a14043cff Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:06:09 -0600 Subject: [PATCH] remove title from TopBlock, use default Docusaurus title and style. Resolves DA-267 --- content/100-getting-started/01-quickstart.mdx | 2 +- ...-relational-databases-node-cockroachdb.mdx | 2 +- .../110-relational-databases-node-mysql.mdx | 2 +- ...-relational-databases-node-planetscale.mdx | 2 +- ...0-relational-databases-node-postgresql.mdx | 2 +- ...10-relational-databases-node-sqlserver.mdx | 2 +- ...ional-databases-typescript-cockroachdb.mdx | 2 +- ...-relational-databases-typescript-mysql.mdx | 2 +- ...ional-databases-typescript-planetscale.mdx | 2 +- ...tional-databases-typescript-postgresql.mdx | 2 +- ...ational-databases-typescript-sqlserver.mdx | 2 +- ...connect-your-database-node-cockroachdb.mdx | 2 +- .../100-connect-your-database-node-mysql.mdx | 2 +- ...connect-your-database-node-planetscale.mdx | 2 +- ...-connect-your-database-node-postgresql.mdx | 2 +- ...0-connect-your-database-node-sqlserver.mdx | 2 +- ...t-your-database-typescript-cockroachdb.mdx | 2 +- ...connect-your-database-typescript-mysql.mdx | 2 +- ...t-your-database-typescript-planetscale.mdx | 2 +- ...ct-your-database-typescript-postgresql.mdx | 2 +- ...ect-your-database-typescript-sqlserver.mdx | 2 +- ...-using-prisma-migrate-node-cockroachdb.mdx | 2 +- .../150-using-prisma-migrate-node-mysql.mdx | 2 +- ...-using-prisma-migrate-node-planetscale.mdx | 2 +- ...0-using-prisma-migrate-node-postgresql.mdx | 2 +- ...50-using-prisma-migrate-node-sqlserver.mdx | 2 +- ...-prisma-migrate-typescript-cockroachdb.mdx | 2 +- ...-using-prisma-migrate-typescript-mysql.mdx | 2 +- ...-prisma-migrate-typescript-planetscale.mdx | 2 +- ...g-prisma-migrate-typescript-postgresql.mdx | 2 +- ...ng-prisma-migrate-typescript-sqlserver.mdx | 2 +- ...install-prisma-client-node-cockroachdb.mdx | 2 +- .../200-install-prisma-client-node-mysql.mdx | 2 +- ...install-prisma-client-node-planetscale.mdx | 2 +- ...-install-prisma-client-node-postgresql.mdx | 2 +- ...0-install-prisma-client-node-sqlserver.mdx | 2 +- ...l-prisma-client-typescript-cockroachdb.mdx | 2 +- ...install-prisma-client-typescript-mysql.mdx | 2 +- ...l-prisma-client-typescript-planetscale.mdx | 2 +- ...ll-prisma-client-typescript-postgresql.mdx | 2 +- ...all-prisma-client-typescript-sqlserver.mdx | 2 +- ...querying-the-database-node-cockroachdb.mdx | 2 +- .../250-querying-the-database-node-mysql.mdx | 2 +- ...querying-the-database-node-planetscale.mdx | 2 +- ...-querying-the-database-node-postgresql.mdx | 2 +- ...0-querying-the-database-node-sqlserver.mdx | 2 +- ...ng-the-database-typescript-cockroachdb.mdx | 2 +- ...querying-the-database-typescript-mysql.mdx | 2 +- ...ng-the-database-typescript-planetscale.mdx | 2 +- ...ing-the-database-typescript-postgresql.mdx | 2 +- ...ying-the-database-typescript-sqlserver.mdx | 2 +- .../120-mongodb-node-mongodb.mdx | 2 +- .../120-mongodb-typescript-mongodb.mdx | 2 +- ...100-connect-your-database-node-mongodb.mdx | 2 +- ...nnect-your-database-typescript-mongodb.mdx | 2 +- ...reating-the-prisma-schema-node-mongodb.mdx | 2 +- ...g-the-prisma-schema-typescript-mongodb.mdx | 2 +- ...200-install-prisma-client-node-mongodb.mdx | 2 +- ...stall-prisma-client-typescript-mongodb.mdx | 2 +- ...250-querying-the-database-node-mongodb.mdx | 2 +- ...erying-the-database-typescript-mongodb.mdx | 2 +- .../100-start-from-scratch/index.mdx | 2 +- ...-relational-databases-node-cockroachdb.mdx | 2 +- .../110-relational-databases-node-mysql.mdx | 2 +- ...-relational-databases-node-planetscale.mdx | 2 +- ...0-relational-databases-node-postgresql.mdx | 2 +- ...10-relational-databases-node-sqlserver.mdx | 2 +- ...ional-databases-typescript-cockroachdb.mdx | 2 +- ...-relational-databases-typescript-mysql.mdx | 2 +- ...ional-databases-typescript-planetscale.mdx | 2 +- ...tional-databases-typescript-postgresql.mdx | 2 +- ...ational-databases-typescript-sqlserver.mdx | 2 +- ...connect-your-database-node-cockroachdb.mdx | 2 +- .../100-connect-your-database-node-mysql.mdx | 2 +- ...connect-your-database-node-planetscale.mdx | 2 +- ...-connect-your-database-node-postgresql.mdx | 2 +- ...0-connect-your-database-node-sqlserver.mdx | 2 +- ...t-your-database-typescript-cockroachdb.mdx | 2 +- ...connect-your-database-typescript-mysql.mdx | 2 +- ...t-your-database-typescript-planetscale.mdx | 2 +- ...ct-your-database-typescript-postgresql.mdx | 2 +- ...ect-your-database-typescript-sqlserver.mdx | 2 +- .../150-introspection-node-cockroachdb.mdx | 2 +- .../150-introspection-node-mysql.mdx | 2 +- .../150-introspection-node-planetscale.mdx | 2 +- .../150-introspection-node-postgresql.mdx | 2 +- .../150-introspection-node-sqlserver.mdx | 2 +- ...0-introspection-typescript-cockroachdb.mdx | 2 +- .../150-introspection-typescript-mysql.mdx | 2 +- ...0-introspection-typescript-planetscale.mdx | 2 +- ...50-introspection-typescript-postgresql.mdx | 2 +- ...150-introspection-typescript-sqlserver.mdx | 2 +- ...aseline-your-database-node-cockroachdb.mdx | 2 +- .../170-baseline-your-database-node-mysql.mdx | 2 +- ...baseline-your-database-node-postgresql.mdx | 2 +- ...-baseline-your-database-node-sqlserver.mdx | 2 +- ...e-your-database-typescript-cockroachdb.mdx | 2 +- ...aseline-your-database-typescript-mysql.mdx | 2 +- ...ne-your-database-typescript-postgresql.mdx | 2 +- ...ine-your-database-typescript-sqlserver.mdx | 2 +- ...install-prisma-client-node-cockroachdb.mdx | 2 +- .../200-install-prisma-client-node-mysql.mdx | 2 +- ...install-prisma-client-node-planetscale.mdx | 2 +- ...-install-prisma-client-node-postgresql.mdx | 2 +- ...0-install-prisma-client-node-sqlserver.mdx | 2 +- ...l-prisma-client-typescript-cockroachdb.mdx | 2 +- ...install-prisma-client-typescript-mysql.mdx | 2 +- ...l-prisma-client-typescript-planetscale.mdx | 2 +- ...ll-prisma-client-typescript-postgresql.mdx | 2 +- ...all-prisma-client-typescript-sqlserver.mdx | 2 +- ...querying-the-database-node-cockroachdb.mdx | 2 +- .../250-querying-the-database-node-mysql.mdx | 2 +- ...querying-the-database-node-planetscale.mdx | 2 +- ...-querying-the-database-node-postgresql.mdx | 2 +- ...0-querying-the-database-node-sqlserver.mdx | 2 +- ...ng-the-database-typescript-cockroachdb.mdx | 2 +- ...querying-the-database-typescript-mysql.mdx | 2 +- ...ng-the-database-typescript-planetscale.mdx | 2 +- ...ing-the-database-typescript-postgresql.mdx | 2 +- ...ying-the-database-typescript-sqlserver.mdx | 2 +- ...75-evolve-your-schema-node-cockroachdb.mdx | 2 +- .../275-evolve-your-schema-node-mysql.mdx | 2 +- ...275-evolve-your-schema-node-postgresql.mdx | 2 +- .../275-evolve-your-schema-node-sqlserver.mdx | 2 +- ...lve-your-schema-typescript-cockroachdb.mdx | 2 +- ...75-evolve-your-schema-typescript-mysql.mdx | 2 +- ...olve-your-schema-typescript-postgresql.mdx | 2 +- ...volve-your-schema-typescript-sqlserver.mdx | 2 +- .../120-mongodb-node-mongodb.mdx | 2 +- .../120-mongodb-typescript-mongodb.mdx | 2 +- ...100-connect-your-database-node-mongodb.mdx | 2 +- ...nnect-your-database-typescript-mongodb.mdx | 2 +- .../125-introspection-node-mongodb.mdx | 2 +- .../125-introspection-typescript-mongodb.mdx | 2 +- ...200-install-prisma-client-node-mongodb.mdx | 2 +- ...stall-prisma-client-typescript-mongodb.mdx | 2 +- ...250-querying-the-database-node-mongodb.mdx | 2 +- ...erying-the-database-typescript-mongodb.mdx | 2 +- .../200-add-to-existing-project/index.mdx | 2 +- .../02-setup-prisma/index.mdx | 2 +- .../100-introduction/100-what-is-prisma.mdx | 2 +- .../100-introduction/200-why-prisma.mdx | 2 +- .../250-should-you-use-prisma.mdx | 2 +- .../100-introduction/300-data-modeling.mdx | 2 +- .../050-overview/100-introduction/index.mdx | 2 +- .../300-prisma-in-your-stack/01-rest.mdx | 2 +- .../300-prisma-in-your-stack/02-graphql.mdx | 2 +- .../300-prisma-in-your-stack/03-fullstack.mdx | 2 +- .../04-is-prisma-an-orm.mdx | 2 +- .../300-prisma-in-your-stack/index.mdx | 2 +- .../500-databases/300-postgresql.mdx | 2 +- .../050-overview/500-databases/400-mysql.mdx | 2 +- .../050-overview/500-databases/500-sqlite.mdx | 2 +- .../500-databases/600-mongodb.mdx | 2 +- .../800-sql-server/020-sql-server-local.mdx | 2 +- .../800-sql-server/030-sql-server-docker.mdx | 2 +- .../500-databases/800-sql-server/index.mdx | 2 +- .../500-databases/840-cockroachdb.mdx | 2 +- .../500-databases/850-planetscale.mdx | 2 +- .../500-databases/880-supabase.mdx | 2 +- .../050-overview/500-databases/890-neon.mdx | 2 +- .../050-overview/500-databases/900-turso.mdx | 2 +- .../050-overview/500-databases/index.mdx | 2 +- .../10-overview/02-data-sources.mdx | 2 +- .../10-overview/03-generators.mdx | 2 +- .../100-prisma-schema/10-overview/index.mdx | 2 +- .../20-data-model/10-models.mdx | 2 +- .../20-relations/100-one-to-one-relations.mdx | 2 +- .../200-one-to-many-relations.mdx | 2 +- .../300-many-to-many-relations.mdx | 2 +- .../20-relations/400-self-relations.mdx | 2 +- ...-special-rules-for-referential-actions.mdx | 2 +- .../410-referential-actions/index.mdx | 2 +- .../20-relations/420-relation-mode.mdx | 2 +- .../500-troubleshooting-relations.mdx | 2 +- .../20-data-model/20-relations/index.mdx | 2 +- .../20-data-model/30-indexes.mdx | 2 +- .../20-data-model/40-views.mdx | 2 +- .../20-data-model/50-database-mapping.mdx | 2 +- .../20-data-model/60-multi-schema.mdx | 2 +- .../70-unsupported-database-features.mdx | 2 +- .../20-data-model/80-table-inheritance.mdx | 2 +- .../100-prisma-schema/20-data-model/index.mdx | 2 +- .../100-prisma-schema/50-introspection.mdx | 2 +- .../80-postgresql-extensions.mdx | 2 +- .../005-introduction.mdx | 2 +- .../010-generating-prisma-client.mdx | 2 +- .../015-instantiate-prisma-client.mdx | 2 +- .../100-connection-management.mdx | 2 +- .../115-connection-pool.mdx | 2 +- .../200-pgbouncer.mdx | 2 +- .../050-databases-connections/index.mdx | 2 +- .../100-custom-model-and-field-names.mdx | 2 +- .../150-error-formatting.mdx | 2 +- .../200-read-replicas.mdx | 2 +- .../220-database-polyfills.mdx | 2 +- .../000-setup-and-configuration/index.mdx | 2 +- .../100-queries/030-crud.mdx | 2 +- .../100-queries/035-select-fields.mdx | 2 +- .../100-queries/037-relation-queries.mdx | 2 +- .../100-queries/050-filtering-and-sorting.mdx | 2 +- .../100-queries/055-pagination.mdx | 2 +- .../056-aggregation-grouping-summarizing.mdx | 2 +- .../100-queries/058-transactions.mdx | 2 +- .../100-queries/060-full-text-search.mdx | 2 +- .../100-queries/061-custom-validation.mdx | 2 +- .../100-queries/062-computed-fields.mdx | 2 +- .../100-queries/063-excluding-fields.mdx | 2 +- .../100-queries/064-custom-models.mdx | 2 +- .../100-queries/070-case-sensitivity.mdx | 2 +- .../050-raw-queries.mdx | 2 +- .../100-custom-and-type-safe-queries.mdx | 2 -- .../090-raw-database-access/index.mdx | 2 +- .../100-query-optimization-performance.mdx | 2 +- .../057-composite-types.mdx | 2 +- .../080-null-and-undefined.mdx | 2 +- .../100-working-with-json-fields.mdx | 2 +- .../200-working-with-scalar-lists-arrays.mdx | 2 +- ...ing-with-composite-ids-and-constraints.mdx | 2 +- .../200-special-fields-and-types/index.mdx | 2 +- .../300-client-extensions/100-model.mdx | 2 +- .../300-client-extensions/110-client.mdx | 2 +- .../300-client-extensions/120-query.mdx | 2 +- .../300-client-extensions/130-result.mdx | 2 +- .../140-shared-extensions.mdx | 2 +- .../150-type-utilities.mdx | 2 +- .../200-extension-examples.mdx | 2 +- .../100-soft-delete-middleware.mdx | 2 +- .../500-middleware/200-logging-middleware.mdx | 2 +- .../300-session-data-middleware.mdx | 2 +- .../500-middleware/index.mdx | 2 +- .../300-client-extensions/index.mdx | 2 +- .../400-type-safety/050-prisma-validator.mdx | 2 +- ...inst-partial-structures-of-model-types.mdx | 2 +- .../830-prisma-type-system.mdx | 2 +- .../400-type-safety/index.mdx | 2 +- .../450-testing/100-unit-testing.mdx | 2 +- .../450-testing/150-integration-testing.mdx | 2 +- .../200-prisma-client/450-testing/index.mdx | 2 +- .../500-deployment/001-deploy-prisma.mdx | 2 +- .../101-traditional/200-deploy-to-heroku.mdx | 2 +- .../101-traditional/250-deploy-to-koyeb.mdx | 2 +- .../500-deployment/101-traditional/index.mdx | 2 +- .../150-deploy-to-azure-functions.mdx | 2 +- .../201-serverless/300-deploy-to-vercel.mdx | 2 +- .../400-deploy-to-aws-lambda.mdx | 2 +- .../201-serverless/500-deploy-to-netlify.mdx | 2 +- .../500-deployment/201-serverless/index.mdx | 2 +- .../500-deployment/301-edge/100-overview.mdx | 2 +- .../301-edge/450-deploy-to-cloudflare.mdx | 2 +- .../301-edge/485-deploy-to-vercel.mdx | 2 +- .../301-edge/550-deploy-to-deno-deploy.mdx | 2 +- .../500-deployment/301-edge/index.mdx | 2 +- .../500-deployment/400-module-bundlers.mdx | 2 +- ...y-database-changes-with-prisma-migrate.mdx | 2 +- ...oy-migrations-from-a-local-environment.mdx | 2 +- ...aveats-when-deploying-to-aws-platforms.mdx | 2 +- .../700-deploy-to-a-different-os.mdx | 2 +- .../500-deployment/index.mdx | 2 +- .../130-logging.mdx | 2 +- .../240-metrics.mdx | 2 +- .../250-opentelemetry-tracing.mdx | 2 +- .../600-observability-and-logging/index.mdx | 2 +- .../140-debugging.mdx | 2 +- .../230-handling-exceptions-and-errors.mdx | 2 +- .../index.mdx | 2 +- .../050-getting-started.mdx | 2 +- .../005-overview.mdx | 2 +- .../010-mental-model.mdx | 2 +- .../070-migration-histories.mdx | 2 +- .../200-shadow-database.mdx | 2 +- .../300-limitations-and-known-issues.mdx | 2 +- .../600-legacy-migrate.mdx | 2 +- .../index.mdx | 2 +- .../300-workflows/10-seeding.mdx | 2 +- .../300-workflows/100-team-development.mdx | 2 +- .../110-native-database-types.mdx | 2 +- .../120-native-database-functions.mdx | 2 +- .../20-prototyping-your-schema.mdx | 2 +- .../300-workflows/200-troubleshooting.mdx | 2 +- .../300-workflows/30-baselining.mdx | 2 +- .../40-customizing-migrations.mdx | 2 +- .../300-workflows/45-data-migration.mdx | 2 +- .../300-workflows/50-squashing-migrations.mdx | 2 +- .../60-generating-down-migrations.mdx | 2 +- .../70-patching-and-hotfixing.mdx | 2 +- .../80-unsupported-database-features.mdx | 2 +- .../90-development-and-production.mdx | 2 +- .../300-workflows/index.mdx | 2 +- content/200-orm/400-tools/05-prisma-cli.mdx | 2 +- .../200-orm/400-tools/06-prisma-studio.mdx | 2 +- .../050-prisma-client-reference.mdx | 2 +- .../100-prisma-schema-reference.mdx | 2 +- .../200-prisma-cli-reference.mdx | 2 +- .../500-reference/250-error-reference.mdx | 2 +- .../300-environment-variables-reference.mdx | 2 +- .../500-reference/350-database-features.mdx | 2 +- .../500-reference/375-supported-databases.mdx | 2 +- .../500-reference/380-connection-urls.mdx | 2 +- .../500-reference/400-system-requirements.mdx | 2 +- .../050-client-preview-features.mdx | 2 +- .../080-cli-preview-features.mdx | 2 +- .../500-preview-features/index.mdx | 2 +- content/200-orm/500-reference/index.mdx | 2 +- .../100-under-the-hood/100-engines.mdx | 2 +- .../800-more/100-under-the-hood/index.mdx | 2 +- .../001-rejectonnotfound-changes.mdx | 2 +- .../101-jsonprotocol-changes.mdx | 2 +- .../600-upgrading-to-prisma-5/index.mdx | 2 +- .../700-upgrading-to-prisma-4.mdx | 2 +- .../100-named-constraints.mdx | 2 +- .../150-referential-actions.mdx | 2 +- .../800-upgrading-to-prisma-3/index.mdx | 2 +- .../200-upgrading-versions/900-codemods.mdx | 2 +- .../200-upgrading-versions/index.mdx | 2 +- .../250-upgrading-to-use-preview-features.mdx | 2 +- .../01-how-to-upgrade.mdx | 2 +- .../02-schema-incompatibilities-mysql.mdx | 2 +- ...02-schema-incompatibilities-postgresql.mdx | 2 +- .../03-upgrading-the-prisma-layer-mysql.mdx | 2 +- ...-upgrading-the-prisma-layer-postgresql.mdx | 2 +- .../04-upgrading-nexus-prisma-to-nexus.mdx | 2 +- .../05-upgrading-prisma-binding-to-nexus.mdx | 2 +- ...-upgrading-prisma-binding-to-sdl-first.mdx | 2 +- .../07-upgrading-a-rest-api.mdx | 2 +- .../08-upgrade-from-mongodb-beta.mdx | 2 +- .../800-upgrade-from-prisma-1/index.mdx | 2 +- .../800-more/300-upgrade-guides/index.mdx | 2 +- .../400-comparisons/01-prisma-and-typeorm.mdx | 2 +- .../02-prisma-and-sequelize.mdx | 2 +- .../03-prisma-and-mongoose.mdx | 2 +- .../400-comparisons/04-prisma-and-drizzle.mdx | 2 +- .../800-more/400-comparisons/index.mdx | 2 +- .../01-migrate-from-typeorm.mdx | 2 +- .../02-migrate-from-sequelize.mdx | 2 +- .../03-migrate-from-mongoose.mdx | 2 +- .../450-migrating-to-prisma/index.mdx | 2 +- .../040-env-files.mdx | 2 +- ...naging-env-files-and-setting-variables.mdx | 2 +- .../200-using-multiple-env-files.mdx | 2 +- .../050-environment-variables/index.mdx | 2 +- .../100-editor-setup.mdx | 2 +- .../500-development-environment/index.mdx | 2 +- .../050-creating-bug-reports.mdx | 2 +- ...ompletion-in-graphql-resolvers-with-js.mdx | 2 +- ...00-working-with-many-to-many-relations.mdx | 2 +- ...400-nextjs-prisma-client-dev-practices.mdx | 2 +- .../425-nextjs-prisma-client-monorepo.mdx | 2 +- .../100-help-articles/450-pkg-issue.mdx | 2 +- ...-comparing-columns-through-raw-queries.mdx | 2 +- .../600-vercel-caching-issue.mdx | 2 +- .../700-netlify-caching-issue.mdx | 2 +- .../100-help-articles/index.mdx | 2 +- .../600-help-and-troubleshooting/index.mdx | 2 +- content/200-orm/800-more/700-releases.mdx | 2 +- content/200-orm/index.mdx | 2 +- .../300-accelerate/100-what-is-accelerate.mdx | 2 +- .../300-accelerate/200-getting-started.mdx | 2 +- .../300-accelerate/250-connection-pooling.mdx | 2 +- content/300-accelerate/300-caching.mdx | 2 +- content/300-accelerate/400-api-reference.mdx | 2 +- content/300-accelerate/500-limitations.mdx | 2 +- content/300-accelerate/550-evaluating.mdx | 2 +- .../300-accelerate/580-local-development.mdx | 2 +- content/300-accelerate/600-faq.mdx | 2 +- content/300-accelerate/650-troubleshoot.mdx | 2 +- content/300-accelerate/700-feedback.mdx | 2 +- content/300-accelerate/index.mdx | 2 +- content/400-pulse/100-what-is-pulse.mdx | 2 +- content/400-pulse/200-getting-started.mdx | 2 +- .../100-general-database-instructions.mdx | 2 +- .../250-database-setup/200-aws-rds.mdx | 2 +- .../250-database-setup/300-railway.mdx | 2 +- .../400-pulse/250-database-setup/400-neon.mdx | 2 +- .../250-database-setup/500-supabase.mdx | 2 +- .../400-pulse/250-database-setup/index.mdx | 8 +++--- content/400-pulse/300-concepts.mdx | 2 +- content/400-pulse/400-api-reference.mdx | 8 +++--- content/400-pulse/500-known-limitations.mdx | 2 +- content/400-pulse/600-faq.mdx | 2 +- content/400-pulse/700-feedback.mdx | 2 +- content/400-pulse/index.mdx | 2 +- content/500-platform/10-about.mdx | 2 +- .../20-concepts/10-workspaces.mdx | 2 +- .../500-platform/20-concepts/20-projects.mdx | 2 +- .../20-concepts/30-environments.mdx | 2 +- content/500-platform/20-concepts/index.mdx | 2 +- content/500-platform/30-maturity-levels.mdx | 2 +- content/500-platform/40-limits.mdx | 2 +- content/500-platform/50-support.mdx | 2 +- .../500-platform/60-platform-cli/10-about.mdx | 2 +- .../60-platform-cli/20-commands.mdx | 2 +- .../500-platform/60-platform-cli/index.mdx | 2 +- content/500-platform/index.mdx | 2 +- .../200-prisma-docs/10-about-the-docs.mdx | 2 +- .../20-style-guide/04-schema-models.mdx | 2 +- .../20-style-guide/10-boilerplate-content.mdx | 2 +- .../200-prisma-docs/20-style-guide/index.mdx | 2 +- .../30-docs-components/01-mdx-examples.mdx | 4 +-- .../30-docs-components/03-frontmatter.mdx | 2 +- .../600-about/200-prisma-docs/40-template.mdx | 2 +- content/600-about/index.mdx | 2 +- src/css/custom.css | 25 ++++++++----------- src/theme/MDXComponents.tsx | 11 ++++---- 404 files changed, 426 insertions(+), 428 deletions(-) diff --git a/content/100-getting-started/01-quickstart.mdx b/content/100-getting-started/01-quickstart.mdx index 7237e3f03c..234d207f98 100644 --- a/content/100-getting-started/01-quickstart.mdx +++ b/content/100-getting-started/01-quickstart.mdx @@ -6,7 +6,7 @@ search: true sidebar_custom_props: { badge: '5 min' } --- - + In this Quickstart guide, you'll learn how to get started with Prisma ORM from scratch using a plain **TypeScript** project and a local **SQLite** database file. It covers **data modeling**, **migrations** and **querying** a database. diff --git a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases-node-cockroachdb.mdx b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases-node-cockroachdb.mdx index a6be85322f..45407c7801 100644 --- a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases-node-cockroachdb.mdx +++ b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases-node-cockroachdb.mdx @@ -11,7 +11,7 @@ pagination_next: getting-started/setup-prisma/start-from-scratch/relational-data --- diff --git a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/100-connect-your-database-typescript-mysql.mdx b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/100-connect-your-database-typescript-mysql.mdx index 18e7043e9f..09ac96ee68 100644 --- a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/100-connect-your-database-typescript-mysql.mdx +++ b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/100-connect-your-database-typescript-mysql.mdx @@ -11,7 +11,7 @@ pagination_next: getting-started/setup-prisma/start-from-scratch/relational-data + Start a fresh project from scratch with the following tutorials as they introduce you to the [Prisma CLI](/orm/tools/prisma-cli), [Prisma Client](/orm/prisma-client), and [Prisma Migrate](/orm/prisma-migrate). diff --git a/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases-node-cockroachdb.mdx b/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases-node-cockroachdb.mdx index 2b887377ac..8b25ab7054 100644 --- a/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases-node-cockroachdb.mdx +++ b/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases-node-cockroachdb.mdx @@ -11,7 +11,7 @@ pagination_next: getting-started/setup-prisma/add-to-existing-project/relational --- diff --git a/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/100-connect-your-database-typescript-mysql.mdx b/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/100-connect-your-database-typescript-mysql.mdx index 3063eee83a..acf175bc31 100644 --- a/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/100-connect-your-database-typescript-mysql.mdx +++ b/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/100-connect-your-database-typescript-mysql.mdx @@ -12,7 +12,7 @@ pagination_next: getting-started/setup-prisma/add-to-existing-project/relational + Include Prisma ORM in an existing project with the following documentation, which explains some core concepts as it guides you through integrating Prisma ORM into your workflow. diff --git a/content/100-getting-started/02-setup-prisma/index.mdx b/content/100-getting-started/02-setup-prisma/index.mdx index 590351c4c6..3592cee830 100644 --- a/content/100-getting-started/02-setup-prisma/index.mdx +++ b/content/100-getting-started/02-setup-prisma/index.mdx @@ -6,7 +6,7 @@ hide_table_of_contents: true staticLink: true --- - + Start from scratch or add Prisma ORM to an existing project. The following tutorials introduce you to the [Prisma CLI](/orm/tools/prisma-cli), [Prisma Client](/orm/prisma-client), and [Prisma Migrate](/orm/prisma-migrate). diff --git a/content/200-orm/050-overview/100-introduction/100-what-is-prisma.mdx b/content/200-orm/050-overview/100-introduction/100-what-is-prisma.mdx index 6770b89829..c93256fb75 100644 --- a/content/200-orm/050-overview/100-introduction/100-what-is-prisma.mdx +++ b/content/200-orm/050-overview/100-introduction/100-what-is-prisma.mdx @@ -4,7 +4,7 @@ metaTitle: 'What is Prisma ORM? (Overview)' description: "This page gives a high-level overview of what Prisma ORM is and how it works. It's a great starting point for Prisma newcomers!" --- - + Prisma ORM is an [open-source](https://github.com/prisma/prisma) next-generation ORM. It consists of the following parts: diff --git a/content/200-orm/050-overview/100-introduction/200-why-prisma.mdx b/content/200-orm/050-overview/100-introduction/200-why-prisma.mdx index 325e1f20f2..4f4f9c5041 100644 --- a/content/200-orm/050-overview/100-introduction/200-why-prisma.mdx +++ b/content/200-orm/050-overview/100-introduction/200-why-prisma.mdx @@ -4,7 +4,7 @@ metaTitle: 'Why Prisma ORM? Comparison with SQL query builders & ORMs' description: 'Learn about the motivation for Prisma ORM and how it compares to other Node.js and TypeScript database tools like ORMs and SQL query builders.' --- - + On this page, you'll learn about the motivation for Prisma ORM and how it compares to other database tools like traditional ORMs and SQL query builders. diff --git a/content/200-orm/050-overview/100-introduction/250-should-you-use-prisma.mdx b/content/200-orm/050-overview/100-introduction/250-should-you-use-prisma.mdx index d1df670ee5..7276b45f5d 100644 --- a/content/200-orm/050-overview/100-introduction/250-should-you-use-prisma.mdx +++ b/content/200-orm/050-overview/100-introduction/250-should-you-use-prisma.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma ORM is a new kind of ORM that - like any other tool - comes with its own tradeoffs. This page explains when Prisma ORM would be a good fit, and provides alternatives for other scenarios. diff --git a/content/200-orm/050-overview/100-introduction/300-data-modeling.mdx b/content/200-orm/050-overview/100-introduction/300-data-modeling.mdx index 2ec45ceed2..65df218525 100644 --- a/content/200-orm/050-overview/100-introduction/300-data-modeling.mdx +++ b/content/200-orm/050-overview/100-introduction/300-data-modeling.mdx @@ -4,7 +4,7 @@ metaTitle: 'Data modeling with Prisma' description: 'Learn how data modeling with Prisma differs from data modeling with SQL or ORMs. Prisma uses a declarative data modeling language to describe a database schema.' --- - + ## What is data modeling? diff --git a/content/200-orm/050-overview/100-introduction/index.mdx b/content/200-orm/050-overview/100-introduction/index.mdx index 0c17045882..97550f003a 100644 --- a/content/200-orm/050-overview/100-introduction/index.mdx +++ b/content/200-orm/050-overview/100-introduction/index.mdx @@ -5,7 +5,7 @@ description: "This section gives a high-level overview of what Prisma is and how hide_table_of_contents: true --- - + This page gives a high-level overview of what Prisma ORM is and how it works. diff --git a/content/200-orm/050-overview/300-prisma-in-your-stack/01-rest.mdx b/content/200-orm/050-overview/300-prisma-in-your-stack/01-rest.mdx index 07a23e0981..36f41e808a 100644 --- a/content/200-orm/050-overview/300-prisma-in-your-stack/01-rest.mdx +++ b/content/200-orm/050-overview/300-prisma-in-your-stack/01-rest.mdx @@ -4,7 +4,7 @@ metaTitle: 'Building REST APIs with Prisma ORM' description: 'This page gives an overview of the most important things when building REST APIs with Prisma. It shows practical examples and the supported libraries.' --- - + When building REST APIs, Prisma Client can be used inside your _route controllers_ to send databases queries. diff --git a/content/200-orm/050-overview/300-prisma-in-your-stack/02-graphql.mdx b/content/200-orm/050-overview/300-prisma-in-your-stack/02-graphql.mdx index 390d6f69cb..2819583fce 100644 --- a/content/200-orm/050-overview/300-prisma-in-your-stack/02-graphql.mdx +++ b/content/200-orm/050-overview/300-prisma-in-your-stack/02-graphql.mdx @@ -4,7 +4,7 @@ metaTitle: 'Building GraphQL servers with Prisma ORM' description: 'This page gives explains how to build GraphQL servers with Prisma ORM. It shows how Prisma ORM fits into the GraphQL ecosystem and provides practical examples.' --- - + [GraphQL](https://graphql.org/) is a query language for APIs. It is often used as an alternative to RESTful APIs, but can also be used as an additional "gateway" layer on top of existing RESTful services. diff --git a/content/200-orm/050-overview/300-prisma-in-your-stack/03-fullstack.mdx b/content/200-orm/050-overview/300-prisma-in-your-stack/03-fullstack.mdx index b2b3b292d6..4b8646cda7 100644 --- a/content/200-orm/050-overview/300-prisma-in-your-stack/03-fullstack.mdx +++ b/content/200-orm/050-overview/300-prisma-in-your-stack/03-fullstack.mdx @@ -4,7 +4,7 @@ metaTitle: 'Building fullstack applications with Prisma ORM' description: 'This page gives explains how to build fullstack applications with Prisma. It shows how Prisma fits in with fullstack frameworks and provides practical examples' --- - + Fullstack frameworks, such as Next.js, Remix or SvelteKit, blur the lines between the server and the client. These frameworks also provide different patterns for fetching and mutating data on the server. diff --git a/content/200-orm/050-overview/300-prisma-in-your-stack/04-is-prisma-an-orm.mdx b/content/200-orm/050-overview/300-prisma-in-your-stack/04-is-prisma-an-orm.mdx index d06201d3de..6d16745de8 100644 --- a/content/200-orm/050-overview/300-prisma-in-your-stack/04-is-prisma-an-orm.mdx +++ b/content/200-orm/050-overview/300-prisma-in-your-stack/04-is-prisma-an-orm.mdx @@ -4,7 +4,7 @@ metaTitle: 'Is Prisma ORM an ORM? | What is an ORM?' description: 'Learn about how Prisma ORM implements the Data Mapper ORM pattern and how it achieves the same goal as traditional ORMs without requiring you to map classes to tables as traditional ORMs do.' --- - + To answer the question briefly: _Yes, Prisma ORM is a new kind of ORM that fundamentally differs from traditional ORMs and doesn't suffer from many of the problems commonly associated with these_. diff --git a/content/200-orm/050-overview/300-prisma-in-your-stack/index.mdx b/content/200-orm/050-overview/300-prisma-in-your-stack/index.mdx index 829dd112cc..d9d54fd99e 100644 --- a/content/200-orm/050-overview/300-prisma-in-your-stack/index.mdx +++ b/content/200-orm/050-overview/300-prisma-in-your-stack/index.mdx @@ -5,7 +5,7 @@ description: 'How Prisma ORM fits into your stack' hide_table_of_contents: true --- - + Prisma ORM provides a fully type-safe API and simplified database access. You can use Prisma ORM tools to build a GraphQL or REST API, or as part of a fullstack application - the extent to which you incorporate Prisma ORM is up to you. diff --git a/content/200-orm/050-overview/500-databases/300-postgresql.mdx b/content/200-orm/050-overview/500-databases/300-postgresql.mdx index ec25434eb6..d3e281aaf4 100644 --- a/content/200-orm/050-overview/500-databases/300-postgresql.mdx +++ b/content/200-orm/050-overview/500-databases/300-postgresql.mdx @@ -5,7 +5,7 @@ description: 'This page explains how Prisma can connect to a PostgreSQL database tocDepth: 3 --- - + The PostgreSQL data source connector connects Prisma ORM to a [PostgreSQL](https://www.postgresql.org/) database server. diff --git a/content/200-orm/050-overview/500-databases/400-mysql.mdx b/content/200-orm/050-overview/500-databases/400-mysql.mdx index 143a60202c..796ce66770 100644 --- a/content/200-orm/050-overview/500-databases/400-mysql.mdx +++ b/content/200-orm/050-overview/500-databases/400-mysql.mdx @@ -5,7 +5,7 @@ description: 'This page explains how Prisma can connect to a MySQL or MariaDB da tocDepth: 3 --- - + The MySQL data source connector connects Prisma ORM to a [MySQL](https://www.mysql.com/) or [MariaDB](https://mariadb.org/) database server. diff --git a/content/200-orm/050-overview/500-databases/500-sqlite.mdx b/content/200-orm/050-overview/500-databases/500-sqlite.mdx index 560d4028ee..b22190eefc 100644 --- a/content/200-orm/050-overview/500-databases/500-sqlite.mdx +++ b/content/200-orm/050-overview/500-databases/500-sqlite.mdx @@ -5,7 +5,7 @@ description: 'This page explains how Prisma can connect to a SQLite database usi tocDepth: 3 --- - + The SQLite data source connector connects Prisma ORM to a [SQLite](https://www.sqlite.org/) database file. These files always have the file ending `.db` (e.g.: `dev.db`). diff --git a/content/200-orm/050-overview/500-databases/600-mongodb.mdx b/content/200-orm/050-overview/500-databases/600-mongodb.mdx index fddb0606b5..92dc23b1e5 100644 --- a/content/200-orm/050-overview/500-databases/600-mongodb.mdx +++ b/content/200-orm/050-overview/500-databases/600-mongodb.mdx @@ -7,7 +7,7 @@ tocDepth: 3 codeStyle: false --- - + This guide discusses the concepts behind using Prisma ORM and MongoDB, explains the commonalities and differences between MongoDB and other database providers, and leads you through the process for configuring your application to integrate with MongoDB using Prisma ORM. diff --git a/content/200-orm/050-overview/500-databases/800-sql-server/020-sql-server-local.mdx b/content/200-orm/050-overview/500-databases/800-sql-server/020-sql-server-local.mdx index 83ebd36e5e..1c4fa8a4e3 100644 --- a/content/200-orm/050-overview/500-databases/800-sql-server/020-sql-server-local.mdx +++ b/content/200-orm/050-overview/500-databases/800-sql-server/020-sql-server-local.mdx @@ -4,7 +4,7 @@ metaTitle: 'SQL Server on Windows' description: 'Set up and configure SQL Server on Windows.' --- - + To run a Microsoft SQL Server locally on a Windows machine: diff --git a/content/200-orm/050-overview/500-databases/800-sql-server/030-sql-server-docker.mdx b/content/200-orm/050-overview/500-databases/800-sql-server/030-sql-server-docker.mdx index 1e2c2572d3..776c056a7b 100644 --- a/content/200-orm/050-overview/500-databases/800-sql-server/030-sql-server-docker.mdx +++ b/content/200-orm/050-overview/500-databases/800-sql-server/030-sql-server-docker.mdx @@ -4,7 +4,7 @@ metaTitle: 'SQL Server on Docker' description: 'Download and use the Microsoft SQL Server Docker image.' --- - + To run a Microsoft SQL Server container image with Docker: diff --git a/content/200-orm/050-overview/500-databases/800-sql-server/index.mdx b/content/200-orm/050-overview/500-databases/800-sql-server/index.mdx index 8ab3a0492e..241172b161 100644 --- a/content/200-orm/050-overview/500-databases/800-sql-server/index.mdx +++ b/content/200-orm/050-overview/500-databases/800-sql-server/index.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + The Microsoft SQL Server data source connector connects Prisma ORM to a [Microsoft SQL Server](https://docs.microsoft.com/en-us/sql/sql-server/?view=sql-server-ver15) database server. diff --git a/content/200-orm/050-overview/500-databases/840-cockroachdb.mdx b/content/200-orm/050-overview/500-databases/840-cockroachdb.mdx index f291d1325a..52df32d4d4 100644 --- a/content/200-orm/050-overview/500-databases/840-cockroachdb.mdx +++ b/content/200-orm/050-overview/500-databases/840-cockroachdb.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + This guide discusses the concepts behind using Prisma ORM and CockroachDB, explains the commonalities and differences between CockroachDB and other database providers, and leads you through the process for configuring your application to integrate with CockroachDB. diff --git a/content/200-orm/050-overview/500-databases/850-planetscale.mdx b/content/200-orm/050-overview/500-databases/850-planetscale.mdx index 793c2158c7..6a040a17aa 100644 --- a/content/200-orm/050-overview/500-databases/850-planetscale.mdx +++ b/content/200-orm/050-overview/500-databases/850-planetscale.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma and [PlanetScale](https://planetscale.com/) together provide a development arena that optimizes rapid, type-safe development of data access applications, using Prisma's ORM and PlanetScale's highly scalable MySQL-based platform. diff --git a/content/200-orm/050-overview/500-databases/880-supabase.mdx b/content/200-orm/050-overview/500-databases/880-supabase.mdx index 5419254095..52a93138df 100644 --- a/content/200-orm/050-overview/500-databases/880-supabase.mdx +++ b/content/200-orm/050-overview/500-databases/880-supabase.mdx @@ -6,7 +6,7 @@ tocDepth: 2 toc: true --- - + This guide discusses the concepts behind using Prisma ORM and Supabase, explains the commonalities and differences between Supabase and other database providers, and leads you through the process for configuring your application to integrate with Supabase. diff --git a/content/200-orm/050-overview/500-databases/890-neon.mdx b/content/200-orm/050-overview/500-databases/890-neon.mdx index 81f8f12a51..1e51dc4bd9 100644 --- a/content/200-orm/050-overview/500-databases/890-neon.mdx +++ b/content/200-orm/050-overview/500-databases/890-neon.mdx @@ -6,7 +6,7 @@ tocDepth: 2 toc: true --- - + This guide explains how to: diff --git a/content/200-orm/050-overview/500-databases/900-turso.mdx b/content/200-orm/050-overview/500-databases/900-turso.mdx index dfda877df8..d35793b9ed 100644 --- a/content/200-orm/050-overview/500-databases/900-turso.mdx +++ b/content/200-orm/050-overview/500-databases/900-turso.mdx @@ -5,7 +5,7 @@ description: 'Guide to Turso' tocDepth: 3 --- - + This guide discusses the concepts behind using Prisma ORM and Turso, explains the commonalities and differences between Turso and other database providers, and leads you through the process for configuring your application to integrate with Turso. diff --git a/content/200-orm/050-overview/500-databases/index.mdx b/content/200-orm/050-overview/500-databases/index.mdx index 935ebdb793..4e03e292b6 100644 --- a/content/200-orm/050-overview/500-databases/index.mdx +++ b/content/200-orm/050-overview/500-databases/index.mdx @@ -5,7 +5,7 @@ description: 'Databases' hide_table_of_contents: true --- - + Learn about the different databases Prisma ORM supports. diff --git a/content/200-orm/100-prisma-schema/10-overview/02-data-sources.mdx b/content/200-orm/100-prisma-schema/10-overview/02-data-sources.mdx index a828e4a8b2..9ee5b2ae53 100644 --- a/content/200-orm/100-prisma-schema/10-overview/02-data-sources.mdx +++ b/content/200-orm/100-prisma-schema/10-overview/02-data-sources.mdx @@ -4,7 +4,7 @@ metaTitle: 'Data sources (Reference)' description: 'Data sources enable Prisma to connect to your database. This page explains how to configure data sources in your Prisma schema.' --- - + A data source determines how Prisma ORM connects your database, and is represented by the [`datasource`](/orm/reference/prisma-schema-reference#datasource) block in the Prisma schema. The following data source uses the `postgresql` provider and includes a connection URL: diff --git a/content/200-orm/100-prisma-schema/10-overview/03-generators.mdx b/content/200-orm/100-prisma-schema/10-overview/03-generators.mdx index b4a0c28897..5092d34288 100644 --- a/content/200-orm/100-prisma-schema/10-overview/03-generators.mdx +++ b/content/200-orm/100-prisma-schema/10-overview/03-generators.mdx @@ -4,7 +4,7 @@ metaTitle: 'Generators (Reference)' description: 'Generators in your Prisma schema specify what assets are generated when the `prisma generate` command is invoked. This page explains how to configure generators.' --- - + A Prisma schema can have one or more generators, represented by the [`generator`](/orm/reference/prisma-schema-reference#generator) block: diff --git a/content/200-orm/100-prisma-schema/10-overview/index.mdx b/content/200-orm/100-prisma-schema/10-overview/index.mdx index 7458bea696..498796d2d3 100644 --- a/content/200-orm/100-prisma-schema/10-overview/index.mdx +++ b/content/200-orm/100-prisma-schema/10-overview/index.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma Schema Overview' description: 'The Prisma schema is the main configuration file when using Prisma. It is typically called schema.prisma and contains your database connection and data model.' --- - + The Prisma schema file (short: _schema file_, _Prisma schema_ or _schema_) is the main configuration file for your Prisma ORM setup. It is typically called `schema.prisma` and consists of the following parts: diff --git a/content/200-orm/100-prisma-schema/20-data-model/10-models.mdx b/content/200-orm/100-prisma-schema/20-data-model/10-models.mdx index 3289328b35..c98648a50a 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/10-models.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/10-models.mdx @@ -5,7 +5,7 @@ description: 'Learn about the concepts for building your data model with Prisma: tocDepth: 3 --- - + The data model definition part of the [Prisma schema](/orm/prisma-schema) defines your application models (also called **Prisma models**). Models: diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/100-one-to-one-relations.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/100-one-to-one-relations.mdx index 5631e1da94..f373d77592 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/100-one-to-one-relations.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/100-one-to-one-relations.mdx @@ -4,7 +4,7 @@ description: How to define and work with one-to-one relations in Prisma. tocDepth: 3 --- - + This page introduces one-to-one relations and explains how to use them in your Prisma schema. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/200-one-to-many-relations.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/200-one-to-many-relations.mdx index 065a9c2446..993496467c 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/200-one-to-many-relations.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/200-one-to-many-relations.mdx @@ -4,7 +4,7 @@ description: How to define and work with one-to-many relations in Prisma. tocDepth: 3 --- - + This page introduces one-to-many relations and explains how to use them in your Prisma schema. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/300-many-to-many-relations.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/300-many-to-many-relations.mdx index 8292ab42bb..4fffa4c22d 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/300-many-to-many-relations.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/300-many-to-many-relations.mdx @@ -4,7 +4,7 @@ description: How to define and work with many-to-many relations in Prisma. tocDepth: 3 --- - + Many-to-many (m-n) relations refer to relations where zero or more records on one side of the relation can be connected to zero or more records on the other side. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/400-self-relations.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/400-self-relations.mdx index c038c0fda6..adf4c121ea 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/400-self-relations.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/400-self-relations.mdx @@ -3,7 +3,7 @@ title: Self-relations description: How to define and work with self-relations in Prisma. --- - + A relation field can also reference its own model, in this case the relation is called a _self-relation_. Self-relations can be of any cardinality, 1-1, 1-n and m-n. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/100-special-rules-for-referential-actions.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/100-special-rules-for-referential-actions.mdx index 1caaecbc93..00d117e539 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/100-special-rules-for-referential-actions.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/100-special-rules-for-referential-actions.mdx @@ -5,7 +5,7 @@ description: 'Circular references or multiple cascade paths can cause validation tocDepth: 3 --- - + Some databases have specific requirements that you should consider if you are using referential actions. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx index 5281e9fa3b..5d73cf69c7 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx @@ -5,7 +5,7 @@ description: 'Referential actions let you define the update and delete behavior tocDepth: 3 --- - + Referential actions determine what happens to a record when your application deletes or updates a related record. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/420-relation-mode.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/420-relation-mode.mdx index 07479ff849..410e3d051d 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/420-relation-mode.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/420-relation-mode.mdx @@ -5,7 +5,7 @@ description: 'Manage relations between records with relation modes in Prisma' tocDepth: 3 --- - + In Prisma schema, relations between records are defined with the [`@relation`](/orm/reference/prisma-schema-reference#relation) attribute. For example, in the following schema there is a one-to-many relation between the `User` and `Post` models: diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/500-troubleshooting-relations.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/500-troubleshooting-relations.mdx index a58fa147bc..3cd92a414e 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/500-troubleshooting-relations.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/500-troubleshooting-relations.mdx @@ -3,7 +3,7 @@ title: Troubleshooting relations description: Common problems and solutions when defining relations in the Prisma schema. --- - + Modelling your schema can sometimes offer up some unexpected results. This section aims to cover the most prominent of those. diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/index.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/index.mdx index ce6a5af02b..f9cf66d9b3 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/index.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/index.mdx @@ -5,7 +5,7 @@ description: 'A relation is a connection between two models in the Prisma schema tocDepth: 3 --- - + A relation is a _connection_ between two models in the Prisma schema. For example, there is a one-to-many relation between `User` and `Post` because one user can have many blog posts. diff --git a/content/200-orm/100-prisma-schema/20-data-model/30-indexes.mdx b/content/200-orm/100-prisma-schema/20-data-model/30-indexes.mdx index df18851bfe..7f5f814f1d 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/30-indexes.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/30-indexes.mdx @@ -5,7 +5,7 @@ hidePage: false tocDepth: 3 --- - + Prisma ORM allows configuration of database indexes, unique constraints and primary key constraints. This is in General Availability in versions `4.0.0` and later. You can enable this with the `extendedIndexes` Preview feature in versions `3.5.0` and later. diff --git a/content/200-orm/100-prisma-schema/20-data-model/40-views.mdx b/content/200-orm/100-prisma-schema/20-data-model/40-views.mdx index dff2d64452..3c892dabe6 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/40-views.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/40-views.mdx @@ -7,7 +7,7 @@ sidebar_class_name: preview-badge tocDepth: 3 --- - + diff --git a/content/200-orm/100-prisma-schema/20-data-model/50-database-mapping.mdx b/content/200-orm/100-prisma-schema/20-data-model/50-database-mapping.mdx index 705430e911..cff807fade 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/50-database-mapping.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/50-database-mapping.mdx @@ -5,7 +5,7 @@ description: '' tocDepth: 3 --- - + The [Prisma schema](/orm/prisma-schema) includes mechanisms that allow you to define names of certain database objects. You can: diff --git a/content/200-orm/100-prisma-schema/20-data-model/60-multi-schema.mdx b/content/200-orm/100-prisma-schema/20-data-model/60-multi-schema.mdx index f894940802..6b8743c824 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/60-multi-schema.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/60-multi-schema.mdx @@ -5,7 +5,7 @@ description: How to use Prisma ORM with multiple database schemas tocDepth: 3 --- - + diff --git a/content/200-orm/100-prisma-schema/20-data-model/70-unsupported-database-features.mdx b/content/200-orm/100-prisma-schema/20-data-model/70-unsupported-database-features.mdx index ea4af8a359..4cf64cc887 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/70-unsupported-database-features.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/70-unsupported-database-features.mdx @@ -5,7 +5,7 @@ tocDepth: 2 toc_max_heading_level: 2 --- - + Not all database functions and features of Prisma ORM's supported databases have a Prisma Schema Language equivalent. Refer to the [database features matrix](/orm/reference/database-features) for a complete list of supported features. diff --git a/content/200-orm/100-prisma-schema/20-data-model/80-table-inheritance.mdx b/content/200-orm/100-prisma-schema/20-data-model/80-table-inheritance.mdx index b69e1cb4ae..f2d6038ce5 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/80-table-inheritance.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/80-table-inheritance.mdx @@ -5,7 +5,7 @@ description: Learn about the use cases and patterns for table inheritance in Pri tocDepth: 3 --- - + ## Overview diff --git a/content/200-orm/100-prisma-schema/20-data-model/index.mdx b/content/200-orm/100-prisma-schema/20-data-model/index.mdx index f70b560b53..029e2de86d 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/index.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/index.mdx @@ -5,7 +5,7 @@ description: 'Learn everything you need about the Prisma schema data model.' hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/100-prisma-schema/50-introspection.mdx b/content/200-orm/100-prisma-schema/50-introspection.mdx index d7d05c1798..d5d2b40f35 100644 --- a/content/200-orm/100-prisma-schema/50-introspection.mdx +++ b/content/200-orm/100-prisma-schema/50-introspection.mdx @@ -4,7 +4,7 @@ metaTitle: 'What is introspection? (Reference)' description: 'Learn how you can introspect your database to generate a data model into your Prisma schema.' --- - + You can introspect your database using the Prisma CLI in order to generate the [data model](/orm/prisma-schema/data-model) in your [Prisma schema](/orm/prisma-schema). The data model is needed to [generate Prisma Client](/orm/prisma-client/setup-and-configuration/custom-model-and-field-names). diff --git a/content/200-orm/100-prisma-schema/80-postgresql-extensions.mdx b/content/200-orm/100-prisma-schema/80-postgresql-extensions.mdx index 1cac3a2699..1319f35344 100644 --- a/content/200-orm/100-prisma-schema/80-postgresql-extensions.mdx +++ b/content/200-orm/100-prisma-schema/80-postgresql-extensions.mdx @@ -6,7 +6,7 @@ sidebar_class_name: preview-badge tocDepth: 3 --- - + This page introduces PostgreSQL extensions and describes how to represent extensions in your Prisma schema, how to introspect existing extensions in your database, and how to apply changes to your extensions to your database with Prisma Migrate. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/005-introduction.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/005-introduction.mdx index 9829950e55..2e8b92c3d9 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/005-introduction.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/005-introduction.mdx @@ -9,7 +9,7 @@ import { Icon } from '@site/src/components/Icon'; - + Prisma Client is an auto-generated and type-safe query builder that's _tailored_ to your data. The easiest way to get started with Prisma Client is by following the **[Quickstart](/getting-started/quickstart)**. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/010-generating-prisma-client.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/010-generating-prisma-client.mdx index 01fdbfd443..f0466ac4ba 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/010-generating-prisma-client.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/010-generating-prisma-client.mdx @@ -4,7 +4,7 @@ metaTitle: 'Generating Prisma Client' description: 'This page explains how to generate Prisma Client. It also provides additional context on the generated client, typical workflows and Node.js configuration.' --- - + Prisma Client is an auto-generated database client that's tailored to your database schema. By default, Prisma Client is generated into the `node_modules/.prisma/client` folder, but [you can specify a custom location](#using-a-custom-output-path). diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/015-instantiate-prisma-client.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/015-instantiate-prisma-client.mdx index 1ed17523f8..8bff1b5853 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/015-instantiate-prisma-client.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/015-instantiate-prisma-client.mdx @@ -5,7 +5,7 @@ description: 'How to create and use an instance of PrismaClient in your app.' tocDepth: 3 --- - + The following example demonstrates how to import and instantiate your [generated client](/orm/prisma-client/setup-and-configuration/generating-prisma-client) from the [default path](/orm/prisma-client/setup-and-configuration/generating-prisma-client#using-a-custom-output-path): diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/100-connection-management.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/100-connection-management.mdx index 18553f2de7..9c2ced198e 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/100-connection-management.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/100-connection-management.mdx @@ -5,7 +5,7 @@ description: 'This page explains how database connections are handled with Prism tocDepth: 3 --- - + `PrismaClient` connects and disconnects from your data source using the following two methods: diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx index b280531565..3c2ce41ed9 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx @@ -5,7 +5,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + The query engine manages a **connection pool** of database connections. The pool is created when Prisma Client opens the _first_ connection to the database, which can happen in one of two ways: diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/200-pgbouncer.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/200-pgbouncer.mdx index 3454341dd1..c9c3252ad6 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/200-pgbouncer.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/200-pgbouncer.mdx @@ -4,7 +4,7 @@ metaTitle: Configure Prisma Client with PgBouncer toc_max_heading_level: 2 --- - + An external connection pooler like PgBouncer holds a connection pool to the database, and proxies incoming client connections by sitting between Prisma Client and the database. This reduces the number of processes a database has to handle at any given time. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/index.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/index.mdx index e4ad0ac510..01df2a5152 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/index.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/index.mdx @@ -5,7 +5,7 @@ description: 'Databases connections' tocDepth: 3 --- - + Databases can handle a limited number of concurrent connections. Each connection requires RAM, which means that simply increasing the database connection limit without scaling available resources: diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/100-custom-model-and-field-names.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/100-custom-model-and-field-names.mdx index b9fd313e4e..7a58e8b5f0 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/100-custom-model-and-field-names.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/100-custom-model-and-field-names.mdx @@ -4,7 +4,7 @@ metaTitle: 'Custom model and field names' description: 'Learn how you can decouple the naming of Prisma models from database tables to improve the ergonomics of the generated Prisma Client API.' --- - + The Prisma Client API is generated based on the models in your [Prisma schema](/orm/prisma-schema). Models are _typically_ 1:1 mappings of your database tables. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/150-error-formatting.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/150-error-formatting.mdx index 97c8c81706..bf3c1a8ff2 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/150-error-formatting.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/150-error-formatting.mdx @@ -4,7 +4,7 @@ metaTitle: 'Configuring error formatting (Concepts)' description: 'This page explains how to configure the formatting of errors when using Prisma Client.' --- - + By default, Prisma Client uses [ANSI escape characters](https://en.wikipedia.org/wiki/ANSI_escape_code) to pretty print the error stack and give recommendations on how to fix a problem. While this is very useful when using Prisma Client from the terminal, in contexts like a GraphQL API, you only want the minimal error without any additional formatting. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/200-read-replicas.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/200-read-replicas.mdx index b9e02d18b9..04f56b946b 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/200-read-replicas.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/200-read-replicas.mdx @@ -5,7 +5,7 @@ description: 'Learn how to set up and use read replicas with Prisma Client' tocDepth: 3 --- - + Read replicas enable you to distribute workloads across database replicas for high-traffic workloads. The [read replicas extension](https://github.com/prisma/extension-read-replicas), `@prisma/extension-read-replicas`, adds support for read-only database replicas to Prisma Client. diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/220-database-polyfills.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/220-database-polyfills.mdx index 65befbb4f6..bfaacab01a 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/220-database-polyfills.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/220-database-polyfills.mdx @@ -5,7 +5,7 @@ description: 'Prisma Client provides features that are not achievable with relat hide_table_of_contents: true --- - + Prisma Client provides features that are typically either not achievable with particular databases or require extensions. These features are referred to as _polyfills_. For all databases, this includes: diff --git a/content/200-orm/200-prisma-client/000-setup-and-configuration/index.mdx b/content/200-orm/200-prisma-client/000-setup-and-configuration/index.mdx index 077afd0f52..206fa6709e 100644 --- a/content/200-orm/200-prisma-client/000-setup-and-configuration/index.mdx +++ b/content/200-orm/200-prisma-client/000-setup-and-configuration/index.mdx @@ -5,7 +5,7 @@ description: 'This section explains how to generate, configure, and instantiate hide_table_of_contents: true --- - + This section describes how to set up, generate, configure, and instantiate `PrismaClient` , as well as when and how to actively [manage connections](/orm/prisma-client/setup-and-configuration/databases-connections/connection-management). diff --git a/content/200-orm/200-prisma-client/100-queries/030-crud.mdx b/content/200-orm/200-prisma-client/100-queries/030-crud.mdx index 849131466c..d415f6b502 100644 --- a/content/200-orm/200-prisma-client/100-queries/030-crud.mdx +++ b/content/200-orm/200-prisma-client/100-queries/030-crud.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + This page describes how to perform CRUD operations with your generated Prisma Client API. CRUD is an acronym that stands for: diff --git a/content/200-orm/200-prisma-client/100-queries/035-select-fields.mdx b/content/200-orm/200-prisma-client/100-queries/035-select-fields.mdx index f32b864a5d..d51ad1eb92 100644 --- a/content/200-orm/200-prisma-client/100-queries/035-select-fields.mdx +++ b/content/200-orm/200-prisma-client/100-queries/035-select-fields.mdx @@ -5,7 +5,7 @@ description: 'This page explains how to select only a subset of a model''s field tocDepth: 3 --- - + By default, when a query returns records (as opposed to a count), the result includes the **default selection set**: diff --git a/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx b/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx index 572fa4d996..765945bd85 100644 --- a/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx +++ b/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + A key feature of Prisma Client is the ability to query [relations](/orm/prisma-schema/data-model/relations) between two or more models. Relation queries include: diff --git a/content/200-orm/200-prisma-client/100-queries/050-filtering-and-sorting.mdx b/content/200-orm/200-prisma-client/100-queries/050-filtering-and-sorting.mdx index fc20c99a67..8de188306e 100644 --- a/content/200-orm/200-prisma-client/100-queries/050-filtering-and-sorting.mdx +++ b/content/200-orm/200-prisma-client/100-queries/050-filtering-and-sorting.mdx @@ -5,7 +5,7 @@ description: 'Use Prisma Client API to filter records by any combination of fiel tocDepth: 3 --- - + Prisma Client supports [filtering](#filtering) with the `where` query option, and [sorting](#sorting) with the `orderBy` query option. diff --git a/content/200-orm/200-prisma-client/100-queries/055-pagination.mdx b/content/200-orm/200-prisma-client/100-queries/055-pagination.mdx index 57d73e96d4..e0218acf65 100644 --- a/content/200-orm/200-prisma-client/100-queries/055-pagination.mdx +++ b/content/200-orm/200-prisma-client/100-queries/055-pagination.mdx @@ -4,7 +4,7 @@ metaTitle: 'Pagination (Reference)' description: 'Prisma Client supports both offset pagination and cursor-based pagination. Learn more about the pros and cons of different pagination approaches and how to implement them.' --- - + Prisma Client supports both offset pagination and cursor-based pagination. diff --git a/content/200-orm/200-prisma-client/100-queries/056-aggregation-grouping-summarizing.mdx b/content/200-orm/200-prisma-client/100-queries/056-aggregation-grouping-summarizing.mdx index 1831f55d9d..6c6f1444bf 100644 --- a/content/200-orm/200-prisma-client/100-queries/056-aggregation-grouping-summarizing.mdx +++ b/content/200-orm/200-prisma-client/100-queries/056-aggregation-grouping-summarizing.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + Prisma Client allows you to count records, aggregate number fields, and select distinct field values. diff --git a/content/200-orm/200-prisma-client/100-queries/058-transactions.mdx b/content/200-orm/200-prisma-client/100-queries/058-transactions.mdx index 80ec15f83d..79233eaa08 100644 --- a/content/200-orm/200-prisma-client/100-queries/058-transactions.mdx +++ b/content/200-orm/200-prisma-client/100-queries/058-transactions.mdx @@ -5,7 +5,7 @@ description: 'This page explains the transactions API of Prisma Client.' tocDepth: 3 --- - + A database transaction refers to a sequence of read/write operations that are _guaranteed_ to either succeed or fail as a whole. This section describes the ways in which the Prisma Client API supports transactions. diff --git a/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx b/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx index c82e45fb33..107eed0535 100644 --- a/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx +++ b/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx @@ -5,7 +5,7 @@ description: 'This page explains how to search for text within a field.' sidebar_class_name: preview-badge --- - + Prisma Client supports full-text search for **PostgreSQL** databases in versions 2.30.0 and later, and **MySQL** databases in versions 3.8.0 and later. With full-text search enabled, you can add search functionality to your application by searching for text within a database column. diff --git a/content/200-orm/200-prisma-client/100-queries/061-custom-validation.mdx b/content/200-orm/200-prisma-client/100-queries/061-custom-validation.mdx index 777f915fcf..92278ebf00 100644 --- a/content/200-orm/200-prisma-client/100-queries/061-custom-validation.mdx +++ b/content/200-orm/200-prisma-client/100-queries/061-custom-validation.mdx @@ -4,7 +4,7 @@ metaTitle: 'Custom validation' description: 'This page explains how to add custom validation to Prisma Client' --- - + You can add runtime validation for your user input for Prisma Client queries in one of the following ways: diff --git a/content/200-orm/200-prisma-client/100-queries/062-computed-fields.mdx b/content/200-orm/200-prisma-client/100-queries/062-computed-fields.mdx index 05c820dafe..cc35e1add3 100644 --- a/content/200-orm/200-prisma-client/100-queries/062-computed-fields.mdx +++ b/content/200-orm/200-prisma-client/100-queries/062-computed-fields.mdx @@ -4,7 +4,7 @@ metaTitle: 'Computed fields' description: 'This page explains how to add computed fields to Prisma Client' --- - + Computed fields allow you to derive a new field based on existing data. A common example is when you compute a full name from a first and last name. In your database, you may only store the first and last name, but you can define a function that computes a full name by combining the first and last name. This field is read-only and stored in your application's memory, not in your database. diff --git a/content/200-orm/200-prisma-client/100-queries/063-excluding-fields.mdx b/content/200-orm/200-prisma-client/100-queries/063-excluding-fields.mdx index 45ea173f4f..71b1065b87 100644 --- a/content/200-orm/200-prisma-client/100-queries/063-excluding-fields.mdx +++ b/content/200-orm/200-prisma-client/100-queries/063-excluding-fields.mdx @@ -4,7 +4,7 @@ metaTitle: 'Excluding fields' description: 'This page explains how to exclude sensitive fields from Prisma Client' --- - + By default Prisma Client returns all fields from a model. You can use `select` to narrow the result set, but that can be unwieldy if you have a large model and you only want to exclude one or two fields. diff --git a/content/200-orm/200-prisma-client/100-queries/064-custom-models.mdx b/content/200-orm/200-prisma-client/100-queries/064-custom-models.mdx index 840f9dac50..fd50f9e439 100644 --- a/content/200-orm/200-prisma-client/100-queries/064-custom-models.mdx +++ b/content/200-orm/200-prisma-client/100-queries/064-custom-models.mdx @@ -4,7 +4,7 @@ metaTitle: 'Custom models' description: 'This page explains how to wrap Prisma Client in custom models' --- - + As your application grows, you may find the need to group related logic together. We suggest either: diff --git a/content/200-orm/200-prisma-client/100-queries/070-case-sensitivity.mdx b/content/200-orm/200-prisma-client/100-queries/070-case-sensitivity.mdx index a8fe265ba7..dd24cf7576 100644 --- a/content/200-orm/200-prisma-client/100-queries/070-case-sensitivity.mdx +++ b/content/200-orm/200-prisma-client/100-queries/070-case-sensitivity.mdx @@ -5,7 +5,7 @@ description: 'How Prisma Client handles case sensitivity when filtering and sort preview: false --- - + Case sensitivity affects **filtering** and **sorting** of data, and is determined by your [database collation](#database-collation-and-case-sensitivity). Sorting and filtering data yields different results depending on your settings: diff --git a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/050-raw-queries.mdx b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/050-raw-queries.mdx index c631ae0972..1435cf5313 100644 --- a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/050-raw-queries.mdx +++ b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/050-raw-queries.mdx @@ -5,7 +5,7 @@ description: 'Learn how you can send raw SQL and MongoDB queries to your databas tocDepth: 3 --- - + Prisma Client supports the option of sending raw queries to your database. You may wish to use raw queries if: diff --git a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/100-custom-and-type-safe-queries.mdx b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/100-custom-and-type-safe-queries.mdx index 64e288a497..c915939611 100644 --- a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/100-custom-and-type-safe-queries.mdx +++ b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/100-custom-and-type-safe-queries.mdx @@ -4,8 +4,6 @@ metaTitle: 'Custom & type-safe queries' description: 'Learn how to use SafeQL and Prisma Client extensions to work around features not natively supported by Prisma, such as PostGIS.' --- - - ## Overview This page explains how to improve the experience of writing raw SQL in Prisma ORM. It uses [Prisma Client extensions](/orm/prisma-client/client-extensions) and [SafeQL](https://safeql.dev) to create custom, type-safe Prisma Client queries which abstract custom SQL that your app might need (using `$queryRaw`). diff --git a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/index.mdx b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/index.mdx index 3a2cb49dd9..9f00af192c 100644 --- a/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/index.mdx +++ b/content/200-orm/200-prisma-client/100-queries/090-raw-database-access/index.mdx @@ -5,7 +5,7 @@ description: 'Raw database access with Prisma Client.' hide_table_of_contents: true --- - + While Prisma ORM aims to make all your database queries intuitive, type-safe, and convenient, there may be situations where you need to drop down to raw queries. diff --git a/content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx b/content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx index 31136d1c08..a9151fb796 100644 --- a/content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx +++ b/content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx @@ -5,7 +5,7 @@ description: 'How Prisma optimizes queries under the hood' tocDepth: 3 --- - + This guide describes ways to optimize query performance, debug performance issues, and how to tackle common performance issues such as the [n+1 problem](#solving-the-n1-problem). diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/057-composite-types.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/057-composite-types.mdx index c2178e5e26..07e5a05836 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/057-composite-types.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/057-composite-types.mdx @@ -5,7 +5,7 @@ description: 'Composite types' tocDepth: 3 --- - +
diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/080-null-and-undefined.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/080-null-and-undefined.mdx index e2b26b1913..dce8637a33 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/080-null-and-undefined.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/080-null-and-undefined.mdx @@ -5,7 +5,7 @@ description: 'How Prisma Client handles null and undefined, including a GraphQL preview: false --- - + Prisma Client differentiates between `null` and `undefined`: diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/100-working-with-json-fields.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/100-working-with-json-fields.mdx index 9d10bf8c87..a7cd21c10a 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/100-working-with-json-fields.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/100-working-with-json-fields.mdx @@ -5,7 +5,7 @@ description: 'How to read, write, and filter by Json fields.' tocDepth: 3 --- - + Use the [`Json`](/orm/reference/prisma-schema-reference#json) Prisma ORM field type to read, write, and perform basic filtering on JSON types in the underlying database. In the following example, the `User` model has an optional `Json` field named `extendedPetsData`: diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/200-working-with-scalar-lists-arrays.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/200-working-with-scalar-lists-arrays.mdx index a1612cd514..4b469fbd55 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/200-working-with-scalar-lists-arrays.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/200-working-with-scalar-lists-arrays.mdx @@ -5,7 +5,7 @@ description: 'How to read, write, and filter by scalar lists / arrays.' tocDepth: 3 --- - + [Scalar lists](/orm/reference/prisma-schema-reference#-modifier) are represented by the `[]` modifier and are only available if the underlying database supports scalar lists. The following example has one scalar `String` list named `pets`: diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/300-working-with-composite-ids-and-constraints.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/300-working-with-composite-ids-and-constraints.mdx index 1c0aa19430..bf1735f6d9 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/300-working-with-composite-ids-and-constraints.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/300-working-with-composite-ids-and-constraints.mdx @@ -5,7 +5,7 @@ description: 'How to read, write, and filter by compound IDs and unique constrai tocDepth: 2 --- - + Composite IDs and compound unique constraints can be defined in your Prisma schema using the [`@@id`](/orm/reference/prisma-schema-reference#id-1) and [`@@unique`](/orm/reference/prisma-schema-reference#unique-1) attributes. diff --git a/content/200-orm/200-prisma-client/200-special-fields-and-types/index.mdx b/content/200-orm/200-prisma-client/200-special-fields-and-types/index.mdx index 99c7e1d4c4..ca0fd540a1 100644 --- a/content/200-orm/200-prisma-client/200-special-fields-and-types/index.mdx +++ b/content/200-orm/200-prisma-client/200-special-fields-and-types/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to use about special fields and types with Prisma Client tocDepth: 3 --- - + This section covers various special fields and types you can use with Prisma Client. diff --git a/content/200-orm/200-prisma-client/300-client-extensions/100-model.mdx b/content/200-orm/200-prisma-client/300-client-extensions/100-model.mdx index 2e5a4c8dcb..98e9b3bb65 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/100-model.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/100-model.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + diff --git a/content/200-orm/200-prisma-client/300-client-extensions/110-client.mdx b/content/200-orm/200-prisma-client/300-client-extensions/110-client.mdx index d7c2290fa0..f456a7f8c8 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/110-client.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/110-client.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + diff --git a/content/200-orm/200-prisma-client/300-client-extensions/120-query.mdx b/content/200-orm/200-prisma-client/300-client-extensions/120-query.mdx index b82a4cd63a..e21ed29e79 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/120-query.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/120-query.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + diff --git a/content/200-orm/200-prisma-client/300-client-extensions/130-result.mdx b/content/200-orm/200-prisma-client/300-client-extensions/130-result.mdx index 18e85f02b1..773e67c480 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/130-result.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/130-result.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + diff --git a/content/200-orm/200-prisma-client/300-client-extensions/140-shared-extensions.mdx b/content/200-orm/200-prisma-client/300-client-extensions/140-shared-extensions.mdx index 93ec6e0567..b6baa5bcdf 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/140-shared-extensions.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/140-shared-extensions.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + You can share your [Prisma Client extensions](/orm/prisma-client/client-extensions) with other users, either as packages or as modules, and import extensions that other users create into your project. diff --git a/content/200-orm/200-prisma-client/300-client-extensions/150-type-utilities.mdx b/content/200-orm/200-prisma-client/300-client-extensions/150-type-utilities.mdx index 7fe75f8a7a..70a0059fc6 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/150-type-utilities.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/150-type-utilities.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma Client Extensions: Type utilities' description: 'Advanced type safety: improve type safety in your custom model methods' --- - + Several type utilities exist within Prisma Client that can assist in the creation of highly type-safe extensions. diff --git a/content/200-orm/200-prisma-client/300-client-extensions/200-extension-examples.mdx b/content/200-orm/200-prisma-client/300-client-extensions/200-extension-examples.mdx index d93adbe7d2..d8be1bcf60 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/200-extension-examples.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/200-extension-examples.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma Client extensions | Shared packages & examples' description: 'Explore the Prisma Client extensions that have been built by Prisma and its community' --- - + ## Extensions made by Prisma diff --git a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/100-soft-delete-middleware.mdx b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/100-soft-delete-middleware.mdx index 96acde1cc7..0fe6486c98 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/100-soft-delete-middleware.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/100-soft-delete-middleware.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + The following sample uses [middleware](/orm/prisma-client/client-extensions/middleware) to perform a **soft delete**. Soft delete means that a record is **marked as deleted** by changing a field like `deleted` to `true` rather than actually being removed from the database. Reasons to use a soft delete include: diff --git a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/200-logging-middleware.mdx b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/200-logging-middleware.mdx index 8539397c6e..7f1f689b15 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/200-logging-middleware.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/200-logging-middleware.mdx @@ -4,7 +4,7 @@ metaTitle: 'Middleware sample: logging (Reference)' description: 'How to use middleware to log the time taken to perform any query.' --- - + The following example logs the time taken for a Prisma Client query to run: diff --git a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/300-session-data-middleware.mdx b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/300-session-data-middleware.mdx index b21c1f0edd..37be0dab46 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/300-session-data-middleware.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/300-session-data-middleware.mdx @@ -5,7 +5,7 @@ description: 'How to use middleware to set the value taken from session state.' hide_table_of_contents: true --- - + The following example sets the `language` field of each `Post` to the context language (taken, for example, from session state): diff --git a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/index.mdx b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/index.mdx index 6bb99c98eb..0fe438c1b4 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/index.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/500-middleware/index.mdx @@ -4,7 +4,7 @@ metaTitle: 'Middleware (Reference)' description: 'Prisma Client middleware allows you to perform actions before or after any query on any model with the prisma.$use method.' --- - + diff --git a/content/200-orm/200-prisma-client/300-client-extensions/index.mdx b/content/200-orm/200-prisma-client/300-client-extensions/index.mdx index 59c25ccf82..4143231b4c 100644 --- a/content/200-orm/200-prisma-client/300-client-extensions/index.mdx +++ b/content/200-orm/200-prisma-client/300-client-extensions/index.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + diff --git a/content/200-orm/200-prisma-client/400-type-safety/050-prisma-validator.mdx b/content/200-orm/200-prisma-client/400-type-safety/050-prisma-validator.mdx index 081464b240..93c6376aec 100644 --- a/content/200-orm/200-prisma-client/400-type-safety/050-prisma-validator.mdx +++ b/content/200-orm/200-prisma-client/400-type-safety/050-prisma-validator.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma validator' description: 'The Prisma validator is a utility function that takes a generated type and returns a type-safe object which adheres to the generated types model fields.' --- - + The [`Prisma.validator`](/orm/reference/prisma-client-reference#prismavalidator) is a utility function that takes a generated type and returns a type-safe object which adheres to the generated types model fields. diff --git a/content/200-orm/200-prisma-client/400-type-safety/100-operating-against-partial-structures-of-model-types.mdx b/content/200-orm/200-prisma-client/400-type-safety/100-operating-against-partial-structures-of-model-types.mdx index c36276918a..cdb032f03c 100644 --- a/content/200-orm/200-prisma-client/400-type-safety/100-operating-against-partial-structures-of-model-types.mdx +++ b/content/200-orm/200-prisma-client/400-type-safety/100-operating-against-partial-structures-of-model-types.mdx @@ -4,7 +4,7 @@ metaTitle: 'Operating against partial structures of your model types' description: 'This page documents various scenarios for using the generated types from the Prisma namespace' --- - + When using Prisma Client, every model from your [Prisma schema](/orm/prisma-schema) is translated into a dedicated TypeScript type. For example, assume you have the following `User` and `Post` models: diff --git a/content/200-orm/200-prisma-client/400-type-safety/830-prisma-type-system.mdx b/content/200-orm/200-prisma-client/400-type-safety/830-prisma-type-system.mdx index 5474313d13..6246503121 100644 --- a/content/200-orm/200-prisma-client/400-type-safety/830-prisma-type-system.mdx +++ b/content/200-orm/200-prisma-client/400-type-safety/830-prisma-type-system.mdx @@ -4,7 +4,7 @@ description: How to use Prisma ORM's type system tocDepth: 3 --- - + This guide introduces Prisma ORM's type system and explains how to introspect existing native types in your database, and how to use types when you apply schema changes to your database with Prisma Migrate or `db push`. diff --git a/content/200-orm/200-prisma-client/400-type-safety/index.mdx b/content/200-orm/200-prisma-client/400-type-safety/index.mdx index a73d38ffd4..48fd135bf3 100644 --- a/content/200-orm/200-prisma-client/400-type-safety/index.mdx +++ b/content/200-orm/200-prisma-client/400-type-safety/index.mdx @@ -5,7 +5,7 @@ description: 'Prisma Client provides full type safety for queries, even for part tocDepth: 3 --- - + The generated code for Prisma Client contains several helpful types and utilities that you can use to make your application more type-safe. This page describes patterns for leveraging them. diff --git a/content/200-orm/200-prisma-client/450-testing/100-unit-testing.mdx b/content/200-orm/200-prisma-client/450-testing/100-unit-testing.mdx index dbb7ebe1da..d565e3eb53 100644 --- a/content/200-orm/200-prisma-client/450-testing/100-unit-testing.mdx +++ b/content/200-orm/200-prisma-client/450-testing/100-unit-testing.mdx @@ -5,7 +5,7 @@ description: 'Learn how to setup and run unit tests with Prisma Client' tocDepth: 3 --- - + Unit testing aims to isolate a small portion (unit) of code and test it for logically predictable behaviors. It generally involves mocking objects or server responses to simulate real world behaviors. Some benefits to unit testing include: diff --git a/content/200-orm/200-prisma-client/450-testing/150-integration-testing.mdx b/content/200-orm/200-prisma-client/450-testing/150-integration-testing.mdx index 4264794933..06031816bf 100644 --- a/content/200-orm/200-prisma-client/450-testing/150-integration-testing.mdx +++ b/content/200-orm/200-prisma-client/450-testing/150-integration-testing.mdx @@ -5,7 +5,7 @@ description: 'Learn how to setup and run integration tests with Prisma and Docke tocDepth: 3 --- - + Integration tests focus on testing how separate parts of the program work together. In the context of applications using a database, integration tests usually require a database to be available and contain data that is convenient to the scenarios intended to be tested. diff --git a/content/200-orm/200-prisma-client/450-testing/index.mdx b/content/200-orm/200-prisma-client/450-testing/index.mdx index 500b0c794e..7d3f06ed64 100644 --- a/content/200-orm/200-prisma-client/450-testing/index.mdx +++ b/content/200-orm/200-prisma-client/450-testing/index.mdx @@ -6,7 +6,7 @@ description: 'How to implement unit and integration testing with Prisma ORM' hide_table_of_contents: true --- - + This section describes how to approach testing an application that uses Prisma Client. diff --git a/content/200-orm/200-prisma-client/500-deployment/001-deploy-prisma.mdx b/content/200-orm/200-prisma-client/500-deployment/001-deploy-prisma.mdx index 0711751fae..9a0bbbb039 100644 --- a/content/200-orm/200-prisma-client/500-deployment/001-deploy-prisma.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/001-deploy-prisma.mdx @@ -5,7 +5,7 @@ description: 'Learn more about the different deployment paradigms for Node.js ap tocDepth: 2 --- - + Projects using Prisma Client can be deployed to many different cloud platforms. Given the variety of cloud platforms and different names, it's noteworthy to mention the different deployment paradigms, as they affect the way you deploy an application using Prisma Client. diff --git a/content/200-orm/200-prisma-client/500-deployment/101-traditional/200-deploy-to-heroku.mdx b/content/200-orm/200-prisma-client/500-deployment/101-traditional/200-deploy-to-heroku.mdx index fffb502333..9fd3cb95b5 100644 --- a/content/200-orm/200-prisma-client/500-deployment/101-traditional/200-deploy-to-heroku.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/101-traditional/200-deploy-to-heroku.mdx @@ -4,7 +4,7 @@ metaTitle: 'Deploy a Prisma app to Heroku' description: 'Learn how to deploy a Node.js server that uses Prisma ORM to Heroku.' --- - + In this guide, you will set up and deploy a Node.js server that uses Prisma ORM with PostgreSQL to [Heroku](https://www.heroku.com). The application exposes a REST API and uses Prisma Client to handle fetching, creating, and deleting records from a database. diff --git a/content/200-orm/200-prisma-client/500-deployment/101-traditional/250-deploy-to-koyeb.mdx b/content/200-orm/200-prisma-client/500-deployment/101-traditional/250-deploy-to-koyeb.mdx index af55857c4d..c787cef06e 100644 --- a/content/200-orm/200-prisma-client/500-deployment/101-traditional/250-deploy-to-koyeb.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/101-traditional/250-deploy-to-koyeb.mdx @@ -4,7 +4,7 @@ metaTitle: 'Deploy a Prisma ORM app to Koyeb' description: 'Learn how to deploy a Node.js server that uses Prisma ORM to Koyeb Serverless Platform.' --- - + In this guide, you will set up and deploy a Node.js server that uses Prisma ORM with PostgreSQL to [Koyeb](https://www.koyeb.com). The application exposes a REST API and uses Prisma Client to handle fetching, creating, and deleting records from a database. diff --git a/content/200-orm/200-prisma-client/500-deployment/101-traditional/index.mdx b/content/200-orm/200-prisma-client/500-deployment/101-traditional/index.mdx index 65b7c45b9e..add242f2a7 100644 --- a/content/200-orm/200-prisma-client/500-deployment/101-traditional/index.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/101-traditional/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy your Prisma-backed apps to PaaS providers like tocDepth: 2 --- - + If your application is deployed via a Platform-as-a-Service (PaaS) provider, whether containerized or not, it is a traditionally-deployed app. Common deployment examples include [Heroku](/orm/prisma-client/deployment/traditional/deploy-to-heroku) and [Koyeb](/orm/prisma-client/deployment/traditional/deploy-to-koyeb). diff --git a/content/200-orm/200-prisma-client/500-deployment/201-serverless/150-deploy-to-azure-functions.mdx b/content/200-orm/200-prisma-client/500-deployment/201-serverless/150-deploy-to-azure-functions.mdx index 0ab565b07c..6ff7e7ded7 100644 --- a/content/200-orm/200-prisma-client/500-deployment/201-serverless/150-deploy-to-azure-functions.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/201-serverless/150-deploy-to-azure-functions.mdx @@ -4,7 +4,7 @@ metaTitle: 'How to deploy an app using Prisma ORM to Azure Functions' description: 'Learn how to deploy a Prisma Client based REST API to Azure Functions and connect to an Azure SQL database' --- - + This guide explains how to avoid common issues when deploying a Node.js-based function app to Azure using [Azure Functions](https://azure.microsoft.com/en-us/services/functions/). diff --git a/content/200-orm/200-prisma-client/500-deployment/201-serverless/300-deploy-to-vercel.mdx b/content/200-orm/200-prisma-client/500-deployment/201-serverless/300-deploy-to-vercel.mdx index 04d7d93daf..0b55c7ae55 100644 --- a/content/200-orm/200-prisma-client/500-deployment/201-serverless/300-deploy-to-vercel.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/201-serverless/300-deploy-to-vercel.mdx @@ -4,7 +4,7 @@ metaTitle: 'Deploy to Vercel' description: 'Learn how to deploy a Next.js application based on Prisma Client to Vercel.' --- - + This guide takes you through the steps to set up and deploy a serverless application that uses Prisma to [Vercel](https://vercel.com/). diff --git a/content/200-orm/200-prisma-client/500-deployment/201-serverless/400-deploy-to-aws-lambda.mdx b/content/200-orm/200-prisma-client/500-deployment/201-serverless/400-deploy-to-aws-lambda.mdx index 1b91612751..d748b6676d 100644 --- a/content/200-orm/200-prisma-client/500-deployment/201-serverless/400-deploy-to-aws-lambda.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/201-serverless/400-deploy-to-aws-lambda.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy your Prisma ORM-backed applications to AWS Lam tocDepth: 3 --- - + This guide explains how to avoid common issues when deploying a project using Prisma ORM to [AWS Lambda](https://aws.amazon.com/lambda/). diff --git a/content/200-orm/200-prisma-client/500-deployment/201-serverless/500-deploy-to-netlify.mdx b/content/200-orm/200-prisma-client/500-deployment/201-serverless/500-deploy-to-netlify.mdx index 21dced1440..9c4f6a5181 100644 --- a/content/200-orm/200-prisma-client/500-deployment/201-serverless/500-deploy-to-netlify.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/201-serverless/500-deploy-to-netlify.mdx @@ -4,7 +4,7 @@ metaTitle: 'Deploy to Netlify' description: 'Learn how to deploy Node.js and TypeScript applications that are using Prisma Client to Netlify.' --- - + This guide covers the steps you will need to take in order to deploy your application that uses Prisma ORM to [Netlify](https://www.netlify.com/). diff --git a/content/200-orm/200-prisma-client/500-deployment/201-serverless/index.mdx b/content/200-orm/200-prisma-client/500-deployment/201-serverless/index.mdx index cb3382e220..b555f67f59 100644 --- a/content/200-orm/200-prisma-client/500-deployment/201-serverless/index.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/201-serverless/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy your Prisma ORM-backed apps to FaaS providers tocDepth: 2 --- - + If your application is deployed via a "Serverless Function" or "Function-as-a-Service (FaaS)" offering and uses a standard Node.js runtime, it is a serverless app. Common deployment examples include [AWS Lambda](/orm/prisma-client/deployment/serverless/deploy-to-aws-lambda) and [Vercel Serverless Functions](/orm/prisma-client/deployment/serverless/deploy-to-vercel). diff --git a/content/200-orm/200-prisma-client/500-deployment/301-edge/100-overview.mdx b/content/200-orm/200-prisma-client/500-deployment/301-edge/100-overview.mdx index 01bcabb23c..5304b9720c 100644 --- a/content/200-orm/200-prisma-client/500-deployment/301-edge/100-overview.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/301-edge/100-overview.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy your Prisma-backed apps to edge functions like tocDepth: 2 --- - + ## Deploying edge functions with Prisma ORM diff --git a/content/200-orm/200-prisma-client/500-deployment/301-edge/450-deploy-to-cloudflare.mdx b/content/200-orm/200-prisma-client/500-deployment/301-edge/450-deploy-to-cloudflare.mdx index c2f396529d..5601ea8b18 100644 --- a/content/200-orm/200-prisma-client/500-deployment/301-edge/450-deploy-to-cloudflare.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/301-edge/450-deploy-to-cloudflare.mdx @@ -7,7 +7,7 @@ tocDepth: 3 preview: true --- - + This page covers everything you need to know to deploy an app with Prisma ORM to a [Cloudflare Worker](https://developers.cloudflare.com/workers/) or to [Cloudflare Pages](https://developers.cloudflare.com/pages). diff --git a/content/200-orm/200-prisma-client/500-deployment/301-edge/485-deploy-to-vercel.mdx b/content/200-orm/200-prisma-client/500-deployment/301-edge/485-deploy-to-vercel.mdx index d470a40b9d..2a9e767ee2 100644 --- a/content/200-orm/200-prisma-client/500-deployment/301-edge/485-deploy-to-vercel.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/301-edge/485-deploy-to-vercel.mdx @@ -7,7 +7,7 @@ tocDepth: 3 sidebar_class_name: preview-badge --- - + This page covers everything you need to know to deploy an app that uses Prisma Client for talking to a database in [Vercel Edge Middleware](https://vercel.com/docs/functions/edge-middleware) or a [Vercel Function](https://vercel.com/docs/functions) deployed to the [Vercel Edge Runtime](https://vercel.com/docs/functions/runtimes/edge-runtime). diff --git a/content/200-orm/200-prisma-client/500-deployment/301-edge/550-deploy-to-deno-deploy.mdx b/content/200-orm/200-prisma-client/500-deployment/301-edge/550-deploy-to-deno-deploy.mdx index 1b16c565df..a699428607 100644 --- a/content/200-orm/200-prisma-client/500-deployment/301-edge/550-deploy-to-deno-deploy.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/301-edge/550-deploy-to-deno-deploy.mdx @@ -4,7 +4,7 @@ metaTitle: 'Deploy to Deno Deploy' description: 'Learn how to deploy a TypeScript application to Deno Deploy.' --- - + With this guide, you can learn how to build and deploy a simple application to [Deno Deploy](https://deno.com/deploy). The application uses Prisma ORM to save a log of each request to a PostgreSQL database. diff --git a/content/200-orm/200-prisma-client/500-deployment/301-edge/index.mdx b/content/200-orm/200-prisma-client/500-deployment/301-edge/index.mdx index 9c96517fb8..7b177b68a5 100644 --- a/content/200-orm/200-prisma-client/500-deployment/301-edge/index.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/301-edge/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy your Prisma ORM-backed apps to edge functions tocDepth: 2 --- - + If your application is deployed via an "Edge Function" offering or is deployed from a [serverless](/orm/prisma-client/deployment/serverless) offering and has a non-standard runtime, it is a _edge-deployed_ app. Common examples for such offerings include [Cloudflare Workers or Pages](/orm/prisma-client/deployment/edge/deploy-to-cloudflare), [Vercel Edge Functions or Edge Middleware](/orm/prisma-client/deployment/edge/deploy-to-vercel), and [Deno Deploy](/orm/prisma-client/deployment/edge/deploy-to-deno-deploy). diff --git a/content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx b/content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx index 904626b916..567878255f 100644 --- a/content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx @@ -4,7 +4,7 @@ metaTitle: 'Module bundlers (Reference)' description: 'This page gives an overview of the most important things to be aware of when using a module bundler to bundle an application that uses Prisma Client.' --- - + ## Overview diff --git a/content/200-orm/200-prisma-client/500-deployment/550-deploy-database-changes-with-prisma-migrate.mdx b/content/200-orm/200-prisma-client/500-deployment/550-deploy-database-changes-with-prisma-migrate.mdx index 89c91b9a16..43d28f63db 100644 --- a/content/200-orm/200-prisma-client/500-deployment/550-deploy-database-changes-with-prisma-migrate.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/550-deploy-database-changes-with-prisma-migrate.mdx @@ -4,7 +4,7 @@ sidebar_label: 'Deploying database changes' description: 'Learn how to deploy database changes with Prisma Migrate.' --- - + To apply pending migrations to staging, testing, or production environments, run the `migrate deploy` command as part of your CI/CD pipeline: diff --git a/content/200-orm/200-prisma-client/500-deployment/600-deploy-migrations-from-a-local-environment.mdx b/content/200-orm/200-prisma-client/500-deployment/600-deploy-migrations-from-a-local-environment.mdx index d90ca32ee2..c04a0a25f1 100644 --- a/content/200-orm/200-prisma-client/500-deployment/600-deploy-migrations-from-a-local-environment.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/600-deploy-migrations-from-a-local-environment.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy Node.js and TypeScript applications that are u tocDepth: 3 --- - + There are two scenarios where you might consider deploying migrations directly from a local environment to a production environment. diff --git a/content/200-orm/200-prisma-client/500-deployment/650-caveats-when-deploying-to-aws-platforms.mdx b/content/200-orm/200-prisma-client/500-deployment/650-caveats-when-deploying-to-aws-platforms.mdx index 30d126bee2..0aaa82e8e4 100644 --- a/content/200-orm/200-prisma-client/500-deployment/650-caveats-when-deploying-to-aws-platforms.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/650-caveats-when-deploying-to-aws-platforms.mdx @@ -5,7 +5,7 @@ description: 'Known caveats when deploying to an AWS platform' toc_max_heading_level: 2 --- - + The following describes some caveats you might face when deploying to different AWS platforms. diff --git a/content/200-orm/200-prisma-client/500-deployment/700-deploy-to-a-different-os.mdx b/content/200-orm/200-prisma-client/500-deployment/700-deploy-to-a-different-os.mdx index 736e7a449c..a561e851f8 100644 --- a/content/200-orm/200-prisma-client/500-deployment/700-deploy-to-a-different-os.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/700-deploy-to-a-different-os.mdx @@ -5,7 +5,7 @@ description: 'Learn how to deploy Node.js and TypeScript applications that are u hide_table_of_contents: true --- - + Prisma Client depends on the [query engine](/orm/more/under-the-hood/engines) that is running as a binary on the same host as your application. diff --git a/content/200-orm/200-prisma-client/500-deployment/index.mdx b/content/200-orm/200-prisma-client/500-deployment/index.mdx index b024af519c..9c07d42cc7 100644 --- a/content/200-orm/200-prisma-client/500-deployment/index.mdx +++ b/content/200-orm/200-prisma-client/500-deployment/index.mdx @@ -5,7 +5,7 @@ description: 'How to deploy a Node.js application that uses Prisma Client and Ty hide_table_of_contents: true --- - + This section describes how to deploy Node.js applications that use Prisma Client and TypeScript to various platforms. diff --git a/content/200-orm/200-prisma-client/600-observability-and-logging/130-logging.mdx b/content/200-orm/200-prisma-client/600-observability-and-logging/130-logging.mdx index 8827299d9d..f133fb3b45 100644 --- a/content/200-orm/200-prisma-client/600-observability-and-logging/130-logging.mdx +++ b/content/200-orm/200-prisma-client/600-observability-and-logging/130-logging.mdx @@ -4,7 +4,7 @@ metaTitle: 'Logging' description: 'Learn how to configure Prisma Client to log the raw SQL queries it sends to the database and other information.' --- - + Use the `PrismaClient` [`log`](/orm/reference/prisma-client-reference#log) parameter to configure [log levels](/orm/reference/prisma-client-reference#log-levels) , including warnings, errors, and information about the queries sent to the database. diff --git a/content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx b/content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx index 520bd1ba6a..d02abfdc91 100644 --- a/content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx +++ b/content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx @@ -7,7 +7,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + Prisma Client metrics give you a detailed insight into how Prisma Client interacts with your database. You can use this insight to help diagnose performance issues with your application. diff --git a/content/200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx b/content/200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx index 4a0db5be26..bdb7ce38dd 100644 --- a/content/200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx +++ b/content/200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx @@ -7,7 +7,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + Tracing provides a detailed log of the activity that Prisma Client carries out, at an operation level, including the time taken to execute each query. It helps you analyze your application's performance and identify bottlenecks. Tracing is fully compliant with [OpenTelemetry](https://opentelemetry.io/), so you can use it as part of your end-to-end application tracing system. diff --git a/content/200-orm/200-prisma-client/600-observability-and-logging/index.mdx b/content/200-orm/200-prisma-client/600-observability-and-logging/index.mdx index 2b56cc8705..cf4662d280 100644 --- a/content/200-orm/200-prisma-client/600-observability-and-logging/index.mdx +++ b/content/200-orm/200-prisma-client/600-observability-and-logging/index.mdx @@ -6,7 +6,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/140-debugging.mdx b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/140-debugging.mdx index 76cdcfddd0..1b0416b323 100644 --- a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/140-debugging.mdx +++ b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/140-debugging.mdx @@ -4,7 +4,7 @@ metaTitle: 'Debugging (Reference)' description: 'This page explains how to enable debugging output for Prisma Client by setting the `DEBUG` environment variable.' --- - + You can enable debugging output in Prisma Client via the [`DEBUG`](/orm/reference/environment-variables-reference#debug) environment variable. It accepts two namespaces to print debugging output: diff --git a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/230-handling-exceptions-and-errors.mdx b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/230-handling-exceptions-and-errors.mdx index 9f7311839e..840c4b870f 100644 --- a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/230-handling-exceptions-and-errors.mdx +++ b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/230-handling-exceptions-and-errors.mdx @@ -5,7 +5,7 @@ description: 'This page covers how to handle exceptions and errors' hide_table_of_contents: true --- - + In order to handle different types of errors you can use `instanceof` to check what the error is and handle it accordingly. diff --git a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/index.mdx b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/index.mdx index 51723a9666..09248d4f33 100644 --- a/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/index.mdx +++ b/content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/index.mdx @@ -6,7 +6,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + Debugging & troubleshooting diff --git a/content/200-orm/300-prisma-migrate/050-getting-started.mdx b/content/200-orm/300-prisma-migrate/050-getting-started.mdx index 2a8197c8c3..4f38807d07 100644 --- a/content/200-orm/300-prisma-migrate/050-getting-started.mdx +++ b/content/200-orm/300-prisma-migrate/050-getting-started.mdx @@ -5,7 +5,7 @@ description: 'Getting started' tocDepth: 3 --- - + This page explains how to get started with migrating your schema in a development environment using Prisma Migrate. See [Developing with Prisma Migrate](/orm/prisma-migrate) for a more in-depth development workflow. diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/005-overview.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/005-overview.mdx index acc25dd226..92724b3e94 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/005-overview.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/005-overview.mdx @@ -5,7 +5,7 @@ description: 'Learn everything you need to know about Prisma Migrate.' hide_table_of_contents: true --- - +
diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/010-mental-model.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/010-mental-model.mdx index ef99bd848f..6b4a2c8355 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/010-mental-model.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/010-mental-model.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc_max_heading_level: 4 --- - + This guide provides a conceptual overview of database migrations using Prisma Migrate when working with relational databases. It covers: what database migrations are, their value, and what Prisma Migrate is and how you can evolve your database schema with Prisma Migrate in different environments. diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/070-migration-histories.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/070-migration-histories.mdx index f7f1149ee3..3e9b5f6903 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/070-migration-histories.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/070-migration-histories.mdx @@ -5,7 +5,7 @@ description: 'About migration histories' tocDepth: 3 --- - + This page explains how Prisma ORM uses migration histories to track changes to your schema. diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/200-shadow-database.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/200-shadow-database.mdx index 3d5fc0a523..b32afcc4e5 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/200-shadow-database.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/200-shadow-database.mdx @@ -4,7 +4,7 @@ metaTitle: 'About the shadow database' description: 'About the shadow database' --- - + The shadow database is a second, _temporary_ database that is **created and deleted automatically**\* each time you run `prisma migrate dev` and is primarily used to **detect problems** such as schema drift or potential data loss of the generated migration. diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/300-limitations-and-known-issues.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/300-limitations-and-known-issues.mdx index 236e9ff8a1..52bb4dadb3 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/300-limitations-and-known-issues.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/300-limitations-and-known-issues.mdx @@ -4,7 +4,7 @@ metaTitle: Limitations and known issues description: Limitations and known issues --- - + The following limitations apply to Prisma Migrate. diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx index ab3d0f1ea1..81fccb9830 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx @@ -6,7 +6,7 @@ tocDepth: 3 unlisted: true --- - + > **Important!** This page documents legacy Prisma Migrate (Experimental) available in version 2.12.0 and earlier. [Prisma Migrate](.) is available in version [2.13.0](https://github.com/prisma/prisma/releases/tag/2.13.0) and Generally Available in [2.19.0](https://github.com/prisma/prisma/releases/tag/2.19.0). diff --git a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/index.mdx b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/index.mdx index 8d1f7dbe5d..bcf261a791 100644 --- a/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/index.mdx +++ b/content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/index.mdx @@ -5,7 +5,7 @@ description: 'Learn about the mental model and basic building blocks of Prisma M hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx b/content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx index 235a32fa48..9c5d7da129 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx @@ -5,7 +5,7 @@ description: Learn how to seed your database using Prisma ORM's integrated seedi tocDepth: 3 --- - + This guide describes how to seed your database using Prisma Client and Prisma ORM's integrated seeding functionality. Seeding allows you to consistently re-create the same data in your database and can be used to: diff --git a/content/200-orm/300-prisma-migrate/300-workflows/100-team-development.mdx b/content/200-orm/300-prisma-migrate/300-workflows/100-team-development.mdx index 462f01810d..5c37e001dd 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/100-team-development.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/100-team-development.mdx @@ -5,7 +5,7 @@ description: How to use Prisma Migrate when collaborating on a project as a team toc_max_heading_level: 2 --- - + To incorporate changes from collaborators: diff --git a/content/200-orm/300-prisma-migrate/300-workflows/110-native-database-types.mdx b/content/200-orm/300-prisma-migrate/300-workflows/110-native-database-types.mdx index 40836fbce9..558bc397d1 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/110-native-database-types.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/110-native-database-types.mdx @@ -5,7 +5,7 @@ description: Native database types toc_max_heading_level: 2 --- - + Prisma Migrate translates the model defined in your [Prisma schema](/orm/prisma-schema) into features in your database. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/120-native-database-functions.mdx b/content/200-orm/300-prisma-migrate/300-workflows/120-native-database-functions.mdx index bc5581daac..6d635272b0 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/120-native-database-functions.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/120-native-database-functions.mdx @@ -4,7 +4,7 @@ metaTitle: Native database functions description: How to enable PostgreSQL native database functions for projects that use Prisma Migrate. --- - + In PostgreSQL, some [native database functions](/orm/prisma-schema/data-model/unsupported-database-features#native-database-functions) are part of optional extensions. For example, in PostgreSQL versions 12.13 and earlier the `gen_random_uuid()` function is part of the [`pgcrypto`](https://www.postgresql.org/docs/10/pgcrypto.html) extension. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/20-prototyping-your-schema.mdx b/content/200-orm/300-prisma-migrate/300-workflows/20-prototyping-your-schema.mdx index fe8c792c90..08c825de1f 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/20-prototyping-your-schema.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/20-prototyping-your-schema.mdx @@ -5,7 +5,7 @@ description: 'Prototyping your schema' codeStyle: false --- - + The Prisma CLI has a dedicated command for prototyping schemas: [`db push`](/orm/reference/prisma-cli-reference#db-push) diff --git a/content/200-orm/300-prisma-migrate/300-workflows/200-troubleshooting.mdx b/content/200-orm/300-prisma-migrate/300-workflows/200-troubleshooting.mdx index 19e9fadec0..20d7d35ea3 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/200-troubleshooting.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/200-troubleshooting.mdx @@ -4,7 +4,7 @@ metaTitle: Troubleshooting description: Troubleshooting issues with Prisma Migrate in a development environment. --- - + This guide describes how to resolve issues with Prisma Migrate in a development environment, which often involves resetting your database. For production-focused troubleshooting, see: diff --git a/content/200-orm/300-prisma-migrate/300-workflows/30-baselining.mdx b/content/200-orm/300-prisma-migrate/300-workflows/30-baselining.mdx index 05f778b8d6..eeee379ef9 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/30-baselining.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/30-baselining.mdx @@ -3,7 +3,7 @@ title: Baselining a database description: How to initialize a migration history for an existing database that contains important data. --- - + Baselining is the process of initializing a migration history for a database that: diff --git a/content/200-orm/300-prisma-migrate/300-workflows/40-customizing-migrations.mdx b/content/200-orm/300-prisma-migrate/300-workflows/40-customizing-migrations.mdx index 4cbf193f07..8916f1939e 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/40-customizing-migrations.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/40-customizing-migrations.mdx @@ -5,7 +5,7 @@ description: How to edit a migration file before applying it to avoid data loss tocDepth: 3 --- - + diff --git a/content/200-orm/300-prisma-migrate/300-workflows/45-data-migration.mdx b/content/200-orm/300-prisma-migrate/300-workflows/45-data-migration.mdx index c0fe23f37d..6bffd4d9c8 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/45-data-migration.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/45-data-migration.mdx @@ -4,7 +4,7 @@ description: How to migrate data using Prisma ORM with the expand and contract p tocDepth: 3 --- - + Prisma ORM does not yet natively support data migrations, but you can use the [expand and contract pattern](https://www.prisma.io/dataguide/types/relational/expand-and-contract-pattern) to migrate your data. For example from one column into another. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/50-squashing-migrations.mdx b/content/200-orm/300-prisma-migrate/300-workflows/50-squashing-migrations.mdx index e8fba0349e..ffe9809e98 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/50-squashing-migrations.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/50-squashing-migrations.mdx @@ -5,7 +5,7 @@ description: How to squash multiple migration files into a single migration toc_max_heading_level: 2 --- - + This guide describes how to squash multiple [migration files](/orm/prisma-migrate/understanding-prisma-migrate/migration-histories) into a single migration. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/60-generating-down-migrations.mdx b/content/200-orm/300-prisma-migrate/300-workflows/60-generating-down-migrations.mdx index d703c4bf2e..c75a4507a3 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/60-generating-down-migrations.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/60-generating-down-migrations.mdx @@ -5,7 +5,7 @@ description: How to generate down migrations tocDepth: 3 --- - + This guide describes how to generate a down migration SQL file that reverses a given [migration file](/orm/prisma-migrate/understanding-prisma-migrate/migration-histories). diff --git a/content/200-orm/300-prisma-migrate/300-workflows/70-patching-and-hotfixing.mdx b/content/200-orm/300-prisma-migrate/300-workflows/70-patching-and-hotfixing.mdx index 63e83d3a7b..a545b687aa 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/70-patching-and-hotfixing.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/70-patching-and-hotfixing.mdx @@ -4,7 +4,7 @@ sidebar_label: Patching & hotfixing description: How to reconcile the migration history after applying a hotfix or patch to a production environment. --- - + Patching or hotfixing a database involves making an often time critical change directly in production. For example, you might add an index directly to a production database to resolve an issue with a slow-running query. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/80-unsupported-database-features.mdx b/content/200-orm/300-prisma-migrate/300-workflows/80-unsupported-database-features.mdx index ed63db84c4..4abcb9a847 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/80-unsupported-database-features.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/80-unsupported-database-features.mdx @@ -4,7 +4,7 @@ metaTitle: Unsupported database features description: How to include unsupported database features for projects that use Prisma Migrate. --- - + Prisma Migrate uses the Prisma schema to determine what features to create in the database. However, some database features [cannot be represented in the Prisma schema](/orm/prisma-schema/data-model/unsupported-database-features) , including but not limited to: diff --git a/content/200-orm/300-prisma-migrate/300-workflows/90-development-and-production.mdx b/content/200-orm/300-prisma-migrate/300-workflows/90-development-and-production.mdx index 394c8054bd..b50d413af7 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/90-development-and-production.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/90-development-and-production.mdx @@ -5,7 +5,7 @@ description: 'Development and production' tocDepth: 3 --- - + This page explains how to use Prisma Migrate commands in development and production environments. diff --git a/content/200-orm/300-prisma-migrate/300-workflows/index.mdx b/content/200-orm/300-prisma-migrate/300-workflows/index.mdx index a6c1d0750c..a9a6e4cc75 100644 --- a/content/200-orm/300-prisma-migrate/300-workflows/index.mdx +++ b/content/200-orm/300-prisma-migrate/300-workflows/index.mdx @@ -5,7 +5,7 @@ description: 'Learn about important Prisma Migrate workflows, like seeding, prot hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/400-tools/05-prisma-cli.mdx b/content/200-orm/400-tools/05-prisma-cli.mdx index d10df554c2..31a499d848 100644 --- a/content/200-orm/400-tools/05-prisma-cli.mdx +++ b/content/200-orm/400-tools/05-prisma-cli.mdx @@ -6,7 +6,7 @@ toc: true toc_max_heading_level: 2 --- - + The Prisma command line interface (CLI) is the primary way to interact with your Prisma project from the command line. It can initialize new project assets, generate Prisma Client, and analyze existing database structures through introspection to automatically create your application models. diff --git a/content/200-orm/400-tools/06-prisma-studio.mdx b/content/200-orm/400-tools/06-prisma-studio.mdx index faef17946b..32fa773e3b 100644 --- a/content/200-orm/400-tools/06-prisma-studio.mdx +++ b/content/200-orm/400-tools/06-prisma-studio.mdx @@ -13,7 +13,7 @@ import StudioEnumSvg from './images/prisma-studio/enum.svg'; import StudioArraySvg from './images/prisma-studio/array.svg'; import StudioObjectSvg from './images/prisma-studio/object.svg'; - + Prisma Studio is a visual editor for the data in your database. Note that Prisma Studio is not open source but you can still create issues in the [`prisma/studio`](https://github.com/prisma/studio) repo. diff --git a/content/200-orm/500-reference/050-prisma-client-reference.mdx b/content/200-orm/500-reference/050-prisma-client-reference.mdx index 7f0f01e83c..f9ea4c96d6 100644 --- a/content/200-orm/500-reference/050-prisma-client-reference.mdx +++ b/content/200-orm/500-reference/050-prisma-client-reference.mdx @@ -7,7 +7,7 @@ tocDepth: 3 toc: true --- - + The Prisma Client API reference documentation is based on the following schema: diff --git a/content/200-orm/500-reference/100-prisma-schema-reference.mdx b/content/200-orm/500-reference/100-prisma-schema-reference.mdx index ad5b2824e9..0cb7d0dea2 100644 --- a/content/200-orm/500-reference/100-prisma-schema-reference.mdx +++ b/content/200-orm/500-reference/100-prisma-schema-reference.mdx @@ -7,7 +7,7 @@ tocDepth: 3 toc: true --- - + ## `datasource` diff --git a/content/200-orm/500-reference/200-prisma-cli-reference.mdx b/content/200-orm/500-reference/200-prisma-cli-reference.mdx index 1703dfb614..161576d463 100644 --- a/content/200-orm/500-reference/200-prisma-cli-reference.mdx +++ b/content/200-orm/500-reference/200-prisma-cli-reference.mdx @@ -6,7 +6,7 @@ description: 'This page gives an overview of all available Prisma CLI commands, tocDepth: 3 --- - + This document describes the Prisma CLI commands, arguments, and options. diff --git a/content/200-orm/500-reference/250-error-reference.mdx b/content/200-orm/500-reference/250-error-reference.mdx index c07a018680..d06e1cca3e 100644 --- a/content/200-orm/500-reference/250-error-reference.mdx +++ b/content/200-orm/500-reference/250-error-reference.mdx @@ -6,7 +6,7 @@ description: 'Prisma Client, Migrate, Introspection error message reference' tocDepth: 3 --- - + For more information about how to work with exceptions and error codes, see [Handling exceptions and errors](/orm/prisma-client/debugging-and-troubleshooting/handling-exceptions-and-errors). diff --git a/content/200-orm/500-reference/300-environment-variables-reference.mdx b/content/200-orm/500-reference/300-environment-variables-reference.mdx index ded05dc5f2..f0c59247b2 100644 --- a/content/200-orm/500-reference/300-environment-variables-reference.mdx +++ b/content/200-orm/500-reference/300-environment-variables-reference.mdx @@ -6,7 +6,7 @@ description: 'This page gives an overview of all environment variables available tocDepth: 3 --- - + This document describes different environment variables and their use cases. diff --git a/content/200-orm/500-reference/350-database-features.mdx b/content/200-orm/500-reference/350-database-features.mdx index cb3925cc91..b617da886b 100644 --- a/content/200-orm/500-reference/350-database-features.mdx +++ b/content/200-orm/500-reference/350-database-features.mdx @@ -6,7 +6,7 @@ wide: true tocDepth: 3 --- - + This page gives an overview of the features which are provided by the databases that Prisma ORM supports. Additionally, it explains how each of these features can be used in Prisma ORM with pointers to further documentation. diff --git a/content/200-orm/500-reference/375-supported-databases.mdx b/content/200-orm/500-reference/375-supported-databases.mdx index f62b6fe53b..fefc222d76 100644 --- a/content/200-orm/500-reference/375-supported-databases.mdx +++ b/content/200-orm/500-reference/375-supported-databases.mdx @@ -4,7 +4,7 @@ metaTitle: 'Databases supported by Prisma ORM' description: 'This page lists all the databases and their versions that are supported by Prisma ORM.' --- - + Prisma ORM currently supports the following databases. diff --git a/content/200-orm/500-reference/380-connection-urls.mdx b/content/200-orm/500-reference/380-connection-urls.mdx index 960e58005c..9a88293162 100644 --- a/content/200-orm/500-reference/380-connection-urls.mdx +++ b/content/200-orm/500-reference/380-connection-urls.mdx @@ -5,7 +5,7 @@ description: 'Learn about the format and syntax Prisma ORM uses for defining dat tocDepth: 3 --- - + Prisma ORM needs a connection URL to be able to connect to your database, e.g. when sending queries with [Prisma Client](/orm/prisma-client) or when changing the database schema with [Prisma Migrate](/orm/prisma-migrate). diff --git a/content/200-orm/500-reference/400-system-requirements.mdx b/content/200-orm/500-reference/400-system-requirements.mdx index 30da6663bd..c8dbb09516 100644 --- a/content/200-orm/500-reference/400-system-requirements.mdx +++ b/content/200-orm/500-reference/400-system-requirements.mdx @@ -5,7 +5,7 @@ description: 'System requirements for running Prisma ORM' tocDepth: 3 --- - + This page provides an overview of the system requirements for Prisma ORM. diff --git a/content/200-orm/500-reference/500-preview-features/050-client-preview-features.mdx b/content/200-orm/500-reference/500-preview-features/050-client-preview-features.mdx index e518862e11..4ba80b6205 100644 --- a/content/200-orm/500-reference/500-preview-features/050-client-preview-features.mdx +++ b/content/200-orm/500-reference/500-preview-features/050-client-preview-features.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma Client & Prisma schema' description: 'Prisma Client and Prisma schema features that are currently in Preview.' --- - + When we release a new Prisma Client or Prisma schema feature, it often starts in Preview so that you can test it and submit your feedback. After we improve the feature with your feedback and are satisfied with the internal test results, we promote the feature to general availability. diff --git a/content/200-orm/500-reference/500-preview-features/080-cli-preview-features.mdx b/content/200-orm/500-reference/500-preview-features/080-cli-preview-features.mdx index d5762c7209..ca87fd6677 100644 --- a/content/200-orm/500-reference/500-preview-features/080-cli-preview-features.mdx +++ b/content/200-orm/500-reference/500-preview-features/080-cli-preview-features.mdx @@ -5,7 +5,7 @@ description: Prisma CLI features that are currently in Preview. tocDepth: 3 --- - + When we release a new Prisma CLI feature, it often starts in Preview so that you can test it and submit your feedback. After we improve the feature with your feedback and are satisfied with the internal test results, we promote the feature to general availability. diff --git a/content/200-orm/500-reference/500-preview-features/index.mdx b/content/200-orm/500-reference/500-preview-features/index.mdx index 82971b5ba6..4a9b23354c 100644 --- a/content/200-orm/500-reference/500-preview-features/index.mdx +++ b/content/200-orm/500-reference/500-preview-features/index.mdx @@ -6,7 +6,7 @@ hide_table_of_contents: true hiddenPage: false --- - + Some Prisma ORM features are released as [Previews](/orm/more/releases#preview). [Share your feedback on all Preview features on GitHub](https://github.com/prisma/prisma/issues/3108). For information about available preview features and how to enable them, see: diff --git a/content/200-orm/500-reference/index.mdx b/content/200-orm/500-reference/index.mdx index 43d5487e98..4efe4fc1a5 100644 --- a/content/200-orm/500-reference/index.mdx +++ b/content/200-orm/500-reference/index.mdx @@ -6,7 +6,7 @@ staticLink: true hide_table_of_contents: true --- - + The reference section of the documentation is a collection of reference pages that describe the Prisma ORM APIs and database implementations. diff --git a/content/200-orm/800-more/100-under-the-hood/100-engines.mdx b/content/200-orm/800-more/100-under-the-hood/100-engines.mdx index 75d41cad91..18c744316f 100644 --- a/content/200-orm/800-more/100-under-the-hood/100-engines.mdx +++ b/content/200-orm/800-more/100-under-the-hood/100-engines.mdx @@ -4,7 +4,7 @@ metaTitle: 'Engines' description: "Prisma's query engine manages the communication with the database when using Prisma Client. Learn how it works on this page." --- - + From a technical perspective, Prisma Client consists of three major components: diff --git a/content/200-orm/800-more/100-under-the-hood/index.mdx b/content/200-orm/800-more/100-under-the-hood/index.mdx index d0d1fc1c43..891e5adcda 100644 --- a/content/200-orm/800-more/100-under-the-hood/index.mdx +++ b/content/200-orm/800-more/100-under-the-hood/index.mdx @@ -5,7 +5,7 @@ description: 'Learn about Prisma ORM internals and how it works "under the hood" hide_table_of_contents: true --- - + This page gives an overview of the Prisma ORM internals and how it works "under the hood". diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/001-rejectonnotfound-changes.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/001-rejectonnotfound-changes.mdx index b58e8b27b4..354865d063 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/001-rejectonnotfound-changes.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/001-rejectonnotfound-changes.mdx @@ -6,7 +6,7 @@ tocDepth: 2 toc: true --- - + As of Prisma ORM version 5.0.0, the deprecated parameter `rejectOnNotFound` has been removed. Depending on if your project used `rejectOnNotFound` per query or globally, there will be be different ways of updating your code. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/101-jsonprotocol-changes.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/101-jsonprotocol-changes.mdx index 48d67db589..1a43abd564 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/101-jsonprotocol-changes.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/101-jsonprotocol-changes.mdx @@ -6,7 +6,7 @@ tocDepth: 2 toc: true --- - + As of Prisma ORM version 5.0.0, the new `jsonProtocol` is the default. There are some changes that directly result from this change and a few changes that are related to the new protocol. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/index.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/index.mdx index e381081bc7..4a46562636 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/index.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/600-upgrading-to-prisma-5/index.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma ORM 5.0.0 introduces a number of changes, including the usage of our new JSON Protocol, [which make Prisma Client faster by default](https://www.prisma.io/blog/prisma-5-f66prwkjx72s). A full list of these changes can be found [in our release notes](https://github.com/prisma/prisma/releases/tag/5.0.0). diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/700-upgrading-to-prisma-4.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/700-upgrading-to-prisma-4.mdx index 1f48f32b32..12fc31baaf 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/700-upgrading-to-prisma-4.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/700-upgrading-to-prisma-4.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma ORM 4 introduces a number of **breaking changes** when you upgrade from an earlier Prisma ORM version. This guide explains how this upgrade might affect your application and gives instructions on how to handle any changes. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/100-named-constraints.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/100-named-constraints.mdx index 86bc2f377d..425ec2affb 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/100-named-constraints.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/100-named-constraints.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + After upgrading to Prisma ORM 3, the default naming convention for constraint and index names will change and your primary and foreign key names will now be part of the schema for databases that support them. Therefore the meaning of your existing Prisma schema will change. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/150-referential-actions.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/150-referential-actions.mdx index 72a0a0e6f9..8141850a3e 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/150-referential-actions.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/150-referential-actions.mdx @@ -7,7 +7,7 @@ toc_max_heading_level: 4 toc: true --- - + Prisma ORM version 2.x prevents deletion of connected records in some Prisma Client functions, and does not let you configure referential actions in your Prisma Schema to change that behavior. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/index.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/index.mdx index 938f3fbdf9..a3aa7087c4 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/index.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/800-upgrading-to-prisma-3/index.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma ORM 3 introduces a number of **breaking changes** if you are upgrading from an earlier version (any 2.x version), therefore, it is important to understand how this upgrade might affect your application and make any needed adjustments to ensure a smooth transition. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/900-codemods.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/900-codemods.mdx index 9a4639baca..3058b0d95a 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/900-codemods.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/900-codemods.mdx @@ -4,7 +4,7 @@ metaTitle: 'Codemods (Guides)' description: 'Use codemods to upgrade your codebase as Prisma ORM evolves.' --- - + The `@prisma/codemods` package helps you to upgrade your codebase as Prisma ORM evolves. diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/index.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/index.mdx index fe2fe3a3a0..d75e93c334 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/index.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/index.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrading versions (Guides)' description: 'Upgrading your project to the latest version of Prisma ORM.' --- - + To upgrade to the latest version of Prisma ORM: diff --git a/content/200-orm/800-more/300-upgrade-guides/250-upgrading-to-use-preview-features.mdx b/content/200-orm/800-more/300-upgrade-guides/250-upgrading-to-use-preview-features.mdx index 09929d83c8..3d13e30a4a 100644 --- a/content/200-orm/800-more/300-upgrade-guides/250-upgrading-to-use-preview-features.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/250-upgrading-to-use-preview-features.mdx @@ -5,7 +5,7 @@ description: 'Upgrading your project to use a Preview feature.' hide_table_of_contents: true --- - + Preview features are new features that can only be used by opting in using a corresponding feature flag. diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/01-how-to-upgrade.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/01-how-to-upgrade.mdx index 6f838bfa89..216433f49d 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/01-how-to-upgrade.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/01-how-to-upgrade.mdx @@ -4,7 +4,7 @@ metaTitle: 'How to upgrade from Prisma 1 to Prisma ORM version 2.x and later' description: 'Learn how to upgrade your Prisma 1 project to Prisma ORM version 2.x and later' --- - + ## Overview diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-mysql.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-mysql.mdx index 74306faa71..7f4d4e3e79 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-mysql.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-mysql.mdx @@ -8,7 +8,7 @@ pagination_next: orm/more/upgrade-guides/upgrade-from-prisma-1/upgrading-the-pri --- diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-postgresql.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-postgresql.mdx index 6de9ac1285..a87b49f381 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-postgresql.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/02-schema-incompatibilities-postgresql.mdx @@ -7,7 +7,7 @@ pagination_next: orm/more/upgrade-guides/upgrade-from-prisma-1/upgrading-the-pri --- diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-mysql.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-mysql.mdx index 66c70ebd47..6f81997fac 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-mysql.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-mysql.mdx @@ -8,7 +8,7 @@ pagination_next: orm/more/upgrade-guides/upgrade-from-prisma-1/upgrading-nexus-p --- diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-postgresql.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-postgresql.mdx index c413c9d9d1..f9fb0db0d5 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-postgresql.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/03-upgrading-the-prisma-layer-postgresql.mdx @@ -7,7 +7,7 @@ pagination_next: orm/more/upgrade-guides/upgrade-from-prisma-1/upgrading-nexus-p --- diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/04-upgrading-nexus-prisma-to-nexus.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/04-upgrading-nexus-prisma-to-nexus.mdx index c48874b8a6..df301487bf 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/04-upgrading-nexus-prisma-to-nexus.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/04-upgrading-nexus-prisma-to-nexus.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrade Prisma 1 with nexus-prisma to @nexus/schema' description: 'Learn how to upgrade existing Prisma 1 projects with nexus-prisma to Prisma ORM 2 and Nexus.' --- - + ## Overview diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/05-upgrading-prisma-binding-to-nexus.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/05-upgrading-prisma-binding-to-nexus.mdx index 6402c7a7f0..a0279e8be2 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/05-upgrading-prisma-binding-to-nexus.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/05-upgrading-prisma-binding-to-nexus.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrading from Prisma 1 with prisma-binding to Nexus' description: 'Learn how to upgrade existing Prisma 1 projects with prisma-binding to Prisma ORM 2.0 and Nexus.' --- - + ## Overview diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/06-upgrading-prisma-binding-to-sdl-first.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/06-upgrading-prisma-binding-to-sdl-first.mdx index 64899fb802..3ba6fe8669 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/06-upgrading-prisma-binding-to-sdl-first.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/06-upgrading-prisma-binding-to-sdl-first.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrading from Prisma 1 with prisma-binding to SDL-first' description: 'Learn how to upgrade existing Prisma 1 projects with prisma-binding to Prisma ORM 2 (SDL-first).' --- - + ## Overview diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/07-upgrading-a-rest-api.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/07-upgrading-a-rest-api.mdx index f09bc92b61..21eceb6206 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/07-upgrading-a-rest-api.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/07-upgrading-a-rest-api.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrading a REST API from Prisma 1 to Prisma ORM 2' description: 'Learn how to upgrade a REST API from Prisma 1 to Prisma ORM 2.' --- - + ## Overview diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/08-upgrade-from-mongodb-beta.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/08-upgrade-from-mongodb-beta.mdx index 4c6c3029d6..7f6a0d5b90 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/08-upgrade-from-mongodb-beta.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/08-upgrade-from-mongodb-beta.mdx @@ -4,7 +4,7 @@ metaTitle: 'Upgrade from the Prisma 1 MongoDB Beta to Prisma ORM 2 or later' description: 'Learn how to upgrade your MongoDB application running Prisma 1 to Prisma ORM 2 or later.' --- - + ## Introduction diff --git a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/index.mdx b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/index.mdx index 215b9d2160..4ab7b4bc6f 100644 --- a/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/index.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/800-upgrade-from-prisma-1/index.mdx @@ -5,7 +5,7 @@ staticLink: false hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/800-more/300-upgrade-guides/index.mdx b/content/200-orm/800-more/300-upgrade-guides/index.mdx index 44ee876443..48f2f461ed 100644 --- a/content/200-orm/800-more/300-upgrade-guides/index.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to upgrade Prisma ORM versions.' hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/800-more/400-comparisons/01-prisma-and-typeorm.mdx b/content/200-orm/800-more/400-comparisons/01-prisma-and-typeorm.mdx index 8ee48b2cfd..09a5044328 100644 --- a/content/200-orm/800-more/400-comparisons/01-prisma-and-typeorm.mdx +++ b/content/200-orm/800-more/400-comparisons/01-prisma-and-typeorm.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma ORM vs TypeORM' description: 'Learn how Prisma compares to TypeORM.' --- - + This page compares Prisma ORM and [TypeORM](https://typeorm.io/#/). If you want to learn how to migrate from TypeORM to Prisma ORM, check out this [guide](/orm/more/migrating-to-prisma/migrate-from-typeorm). diff --git a/content/200-orm/800-more/400-comparisons/02-prisma-and-sequelize.mdx b/content/200-orm/800-more/400-comparisons/02-prisma-and-sequelize.mdx index bdbd49a500..6f83216b28 100644 --- a/content/200-orm/800-more/400-comparisons/02-prisma-and-sequelize.mdx +++ b/content/200-orm/800-more/400-comparisons/02-prisma-and-sequelize.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma ORM vs Sequelize' description: 'Learn how Prisma ORM compares to Sequelize.' --- - + This page compares the Prisma ORM and [Sequelize](https://sequelize.org/master/) APIs. diff --git a/content/200-orm/800-more/400-comparisons/03-prisma-and-mongoose.mdx b/content/200-orm/800-more/400-comparisons/03-prisma-and-mongoose.mdx index 302da65e3a..02963258b7 100644 --- a/content/200-orm/800-more/400-comparisons/03-prisma-and-mongoose.mdx +++ b/content/200-orm/800-more/400-comparisons/03-prisma-and-mongoose.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma ORM vs Mongoose' description: 'Learn how Prisma ORM compares to Mongoose.' --- - + This page compares the Prisma ORM and [Mongoose](https://mongoosejs.com/docs/guide.html) APIs. If you want to learn how to migrate from Mongoose to Prisma, check out this [guide](/orm/more/migrating-to-prisma/migrate-from-mongoose). diff --git a/content/200-orm/800-more/400-comparisons/04-prisma-and-drizzle.mdx b/content/200-orm/800-more/400-comparisons/04-prisma-and-drizzle.mdx index 621af1b2db..853bd5ef73 100644 --- a/content/200-orm/800-more/400-comparisons/04-prisma-and-drizzle.mdx +++ b/content/200-orm/800-more/400-comparisons/04-prisma-and-drizzle.mdx @@ -4,7 +4,7 @@ metaTitle: 'Prisma ORM vs Drizzle' description: 'Learn how Prisma ORM compares to Drizzle.' --- - + This page compares Prisma ORM and Drizzle. diff --git a/content/200-orm/800-more/400-comparisons/index.mdx b/content/200-orm/800-more/400-comparisons/index.mdx index a22327a4fe..d3d41a207e 100644 --- a/content/200-orm/800-more/400-comparisons/index.mdx +++ b/content/200-orm/800-more/400-comparisons/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how Prisma ORM compares to other ORMs, ODMs, and database li hide_table_of_contents: true --- - + Find out how Prisma ORM compares to ORMs and ODMs in the Node.js and TypeScript ecosystem. diff --git a/content/200-orm/800-more/450-migrating-to-prisma/01-migrate-from-typeorm.mdx b/content/200-orm/800-more/450-migrating-to-prisma/01-migrate-from-typeorm.mdx index 10b141a48a..d857b9ef17 100644 --- a/content/200-orm/800-more/450-migrating-to-prisma/01-migrate-from-typeorm.mdx +++ b/content/200-orm/800-more/450-migrating-to-prisma/01-migrate-from-typeorm.mdx @@ -4,7 +4,7 @@ metaTitle: 'How to migrate from TypeORM to Prisma ORM' description: 'Learn how to migrate from TypeORM to Prisma ORM' --- - + This guide describes how to migrate from TypeORM to Prisma ORM. It uses an extended version of the [TypeORM Express example](https://github.com/typeorm/typescript-express-example/) as a [sample project](https://github.com/prisma/migrate-from-typeorm-to-prisma) to demonstrate the migration steps. You can find the example used for this guide on [GitHub](https://github.com/prisma/migrate-from-typeorm-to-prisma). diff --git a/content/200-orm/800-more/450-migrating-to-prisma/02-migrate-from-sequelize.mdx b/content/200-orm/800-more/450-migrating-to-prisma/02-migrate-from-sequelize.mdx index 807d40f6df..5c531f1b0b 100644 --- a/content/200-orm/800-more/450-migrating-to-prisma/02-migrate-from-sequelize.mdx +++ b/content/200-orm/800-more/450-migrating-to-prisma/02-migrate-from-sequelize.mdx @@ -4,7 +4,7 @@ metaTitle: 'How to migrate from Sequelize to Prisma ORM' description: 'Learn how to migrate from Sequelize to Prisma ORM' --- - + This guide describes how to migrate from Sequelize to Prisma ORM. It uses an extended version of the [Sequelize Express example](https://github.com/sequelize/express-example) as a [sample project](https://github.com/prisma/migrate-from-sequelize-to-prisma) to demonstrate the migration steps. You can find the example used for this guide on [GitHub](https://github.com/prisma/migrate-from-sequelize-to-prisma). diff --git a/content/200-orm/800-more/450-migrating-to-prisma/03-migrate-from-mongoose.mdx b/content/200-orm/800-more/450-migrating-to-prisma/03-migrate-from-mongoose.mdx index d1b8028875..6077bb8472 100644 --- a/content/200-orm/800-more/450-migrating-to-prisma/03-migrate-from-mongoose.mdx +++ b/content/200-orm/800-more/450-migrating-to-prisma/03-migrate-from-mongoose.mdx @@ -4,7 +4,7 @@ metaTitle: 'How to migrate from Mongoose to Prisma ORM' description: 'Learn how to migrate from Mongoose to Prisma ORM' --- - + This guide describes how to migrate from Mongoose to Prisma ORM. It uses an extended version of the [Mongoose Express example](https://github.com/Automattic/mongoose/tree/master/examples/express) as a [sample project](https://github.com/prisma/migrate-from-mongoose-to-prisma) to demonstrate the migration steps. You can find the example used for this guide on [GitHub](https://github.com/prisma/migrate-from-mongoose-to-prisma). diff --git a/content/200-orm/800-more/450-migrating-to-prisma/index.mdx b/content/200-orm/800-more/450-migrating-to-prisma/index.mdx index 68da36eb04..a7457221db 100644 --- a/content/200-orm/800-more/450-migrating-to-prisma/index.mdx +++ b/content/200-orm/800-more/450-migrating-to-prisma/index.mdx @@ -5,7 +5,7 @@ description: 'How to migrate to Prisma ORM from other ORMs and query builders.' hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/800-more/500-development-environment/050-environment-variables/040-env-files.mdx b/content/200-orm/800-more/500-development-environment/050-environment-variables/040-env-files.mdx index bdbdabe99f..8b6c0833bf 100644 --- a/content/200-orm/800-more/500-development-environment/050-environment-variables/040-env-files.mdx +++ b/content/200-orm/800-more/500-development-environment/050-environment-variables/040-env-files.mdx @@ -4,7 +4,7 @@ metaTitle: '.env files' description: 'Configure environment variables using .env files in Prisma' --- - + Prisma ORM creates a default `.env` file at your projects root. You can choose to replace this file or create a new one in the `prisma` folder, or if you choose to relocate your `prisma.schema` file, alongside that. diff --git a/content/200-orm/800-more/500-development-environment/050-environment-variables/100-managing-env-files-and-setting-variables.mdx b/content/200-orm/800-more/500-development-environment/050-environment-variables/100-managing-env-files-and-setting-variables.mdx index c17eab1604..cf1539fc3e 100644 --- a/content/200-orm/800-more/500-development-environment/050-environment-variables/100-managing-env-files-and-setting-variables.mdx +++ b/content/200-orm/800-more/500-development-environment/050-environment-variables/100-managing-env-files-and-setting-variables.mdx @@ -5,7 +5,7 @@ description: 'Learn how to manage .env files and set environment variables' tocDepth: 3 --- - + [Prisma ORM creates an `.env` file for you upon project initialization with `prisma init`](/orm/more/development-environment/environment-variables#how-does-prisma-orm-use-environment-variables). You are not limited to using that file, some other options include: diff --git a/content/200-orm/800-more/500-development-environment/050-environment-variables/200-using-multiple-env-files.mdx b/content/200-orm/800-more/500-development-environment/050-environment-variables/200-using-multiple-env-files.mdx index 301db5f64e..b2ba159b75 100644 --- a/content/200-orm/800-more/500-development-environment/050-environment-variables/200-using-multiple-env-files.mdx +++ b/content/200-orm/800-more/500-development-environment/050-environment-variables/200-using-multiple-env-files.mdx @@ -5,7 +5,7 @@ description: 'Learn how to set up a dedicated testing environment using multiple tocDepth: 3 --- - + There is a risk that your production database could be deleted if you store different connection URLs to each of your environments within a single `.env` file. diff --git a/content/200-orm/800-more/500-development-environment/050-environment-variables/index.mdx b/content/200-orm/800-more/500-development-environment/050-environment-variables/index.mdx index ddb0e426c6..4db68bac32 100644 --- a/content/200-orm/800-more/500-development-environment/050-environment-variables/index.mdx +++ b/content/200-orm/800-more/500-development-environment/050-environment-variables/index.mdx @@ -5,7 +5,7 @@ description: 'Learn how to use environment variables in your Prisma ORM project' tocDepth: 3 --- - + An environment variable is a key value pair of string data that is stored on your machine's local environment. Refer to our [Environment variables reference documentation](/orm/reference/environment-variables-reference) for specific details. diff --git a/content/200-orm/800-more/500-development-environment/100-editor-setup.mdx b/content/200-orm/800-more/500-development-environment/100-editor-setup.mdx index 4078b789ae..02bcd794a6 100644 --- a/content/200-orm/800-more/500-development-environment/100-editor-setup.mdx +++ b/content/200-orm/800-more/500-development-environment/100-editor-setup.mdx @@ -5,7 +5,7 @@ description: 'Learn how to configure your editor and IDEs for an optimal develop tocDepth: 3 --- - + This page describes how you can configure your editor for an optimal developer experience when using Prisma ORM. diff --git a/content/200-orm/800-more/500-development-environment/index.mdx b/content/200-orm/800-more/500-development-environment/index.mdx index fe186f8185..00e39ad977 100644 --- a/content/200-orm/800-more/500-development-environment/index.mdx +++ b/content/200-orm/800-more/500-development-environment/index.mdx @@ -6,7 +6,7 @@ description: 'Using env vars, editors and workspaces in your development environ hide_table_of_contents: true --- - + This section describes using `env` variables, editors, and workspaces in your development environment. diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/050-creating-bug-reports.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/050-creating-bug-reports.mdx index cd8b583968..b90b54a5fb 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/050-creating-bug-reports.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/050-creating-bug-reports.mdx @@ -5,7 +5,7 @@ description: 'This page explains best practices for creating bug reports for Pri toc_max_heading_level: 2 --- - + ## Overview diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/100-autocompletion-in-graphql-resolvers-with-js.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/100-autocompletion-in-graphql-resolvers-with-js.mdx index 1077073499..f7bc8b13a6 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/100-autocompletion-in-graphql-resolvers-with-js.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/100-autocompletion-in-graphql-resolvers-with-js.mdx @@ -4,7 +4,7 @@ metaTitle: 'Autocompletion in GraphQL resolvers with JavaScript' description: 'Learn how you can get autocompletion for Prisma Client queries in GraphQL resolvers with plain JavaScript' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/200-working-with-many-to-many-relations.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/200-working-with-many-to-many-relations.mdx index fd81a430ca..65d877da0f 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/200-working-with-many-to-many-relations.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/200-working-with-many-to-many-relations.mdx @@ -5,7 +5,7 @@ description: 'Learn how you can model and query implicit and explicit many-to-ma tocDepth: 3 --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx index a00cbc6b4b..b5fc9169c2 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx @@ -4,7 +4,7 @@ metaTitle: 'Best practice for instantiating Prisma Client with Next.js' description: 'Best practice for instantiating Prisma Client with Next.js' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/425-nextjs-prisma-client-monorepo.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/425-nextjs-prisma-client-monorepo.mdx index 8b618b14c8..379155ee8a 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/425-nextjs-prisma-client-monorepo.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/425-nextjs-prisma-client-monorepo.mdx @@ -4,7 +4,7 @@ metaTitle: 'Using Prisma Client in a Next.js project in a monorepo setup' description: 'Using Prisma Client in a Next.js project in a monorepo setup' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/450-pkg-issue.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/450-pkg-issue.mdx index 56199b0a53..a03446cfe9 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/450-pkg-issue.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/450-pkg-issue.mdx @@ -4,7 +4,7 @@ metaTitle: 'Solve ENOENT package error with vercel/pkg' description: 'Solve ENOENT package error with vercel/pkg' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/500-comparing-columns-through-raw-queries.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/500-comparing-columns-through-raw-queries.mdx index 83d7068eaa..3792ee615b 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/500-comparing-columns-through-raw-queries.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/500-comparing-columns-through-raw-queries.mdx @@ -4,7 +4,7 @@ metaTitle: 'Compare columns of the same table with raw queries' description: 'Compare columns with inbuilt raw query methods in Prisma' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/600-vercel-caching-issue.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/600-vercel-caching-issue.mdx index 874531eccc..a3f1c2b994 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/600-vercel-caching-issue.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/600-vercel-caching-issue.mdx @@ -4,7 +4,7 @@ metaTitle: 'Learn to configure your build process on Vercel to avoid caching-rel description: 'Learn to configure your build process on Vercel to avoid caching-related problems' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/700-netlify-caching-issue.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/700-netlify-caching-issue.mdx index 6c488af765..015592481e 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/700-netlify-caching-issue.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/700-netlify-caching-issue.mdx @@ -4,7 +4,7 @@ metaTitle: 'Learn to configure your build process on Netlify to avoid caching-re description: 'Learn to configure your build process on Netlify to avoid caching-related problems' --- - + ## Problem diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/index.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/index.mdx index 074bdef2de..6214f90f5d 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/index.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/index.mdx @@ -6,7 +6,7 @@ hidePage: false hide_table_of_contents: true --- - + This section provides a number of common problems that developers might encounter when using Prisma ORM and provides short, practical solutions to resolve them. diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/index.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/index.mdx index 7baad290fd..aad9032160 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/index.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/index.mdx @@ -5,7 +5,7 @@ description: 'Help & troubleshooting in Prisma ORM projects.' hide_table_of_contents: true --- - + ## In this section diff --git a/content/200-orm/800-more/700-releases.mdx b/content/200-orm/800-more/700-releases.mdx index 38e46d81e6..d5b91dbdd8 100644 --- a/content/200-orm/800-more/700-releases.mdx +++ b/content/200-orm/800-more/700-releases.mdx @@ -5,7 +5,7 @@ description: 'Learn about the release process, versioning, and maturity of Prism tocDepth: 3 --- - + This page explains the release process of Prisma ORM, how it's versioned and how to deal with breaking changes that might happen throughout releases. diff --git a/content/200-orm/index.mdx b/content/200-orm/index.mdx index af0b5d3169..af0b2f0662 100644 --- a/content/200-orm/index.mdx +++ b/content/200-orm/index.mdx @@ -8,7 +8,7 @@ sidebar_position: 0 pagination_next: 'orm/overview/index' --- - + [Prisma ORM](https://github.com/prisma/prisma) is a Node.js and TypeScript ORM with an intuitive data model, automated migrations, type-safety, and auto-completion. diff --git a/content/300-accelerate/100-what-is-accelerate.mdx b/content/300-accelerate/100-what-is-accelerate.mdx index 6348562f88..efad7cc59c 100644 --- a/content/300-accelerate/100-what-is-accelerate.mdx +++ b/content/300-accelerate/100-what-is-accelerate.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + [Accelerate](https://www.prisma.io/data-platform/accelerate) is a global database cache available in 300 locations that you can use to achieve up to 1000x faster database queries. diff --git a/content/300-accelerate/200-getting-started.mdx b/content/300-accelerate/200-getting-started.mdx index e3b7b19f9e..70cbd1fd35 100644 --- a/content/300-accelerate/200-getting-started.mdx +++ b/content/300-accelerate/200-getting-started.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + diff --git a/content/300-accelerate/250-connection-pooling.mdx b/content/300-accelerate/250-connection-pooling.mdx index 3c5037467a..e102ca0ebe 100644 --- a/content/300-accelerate/250-connection-pooling.mdx +++ b/content/300-accelerate/250-connection-pooling.mdx @@ -4,7 +4,7 @@ metaTitle: 'Accelerate: Connection Pooling' description: "Learn about everything you need to know to use Accelerate's connection pooling." --- - + A [connection pool](https://en.wikipedia.org/wiki/Connection_pool#:~:text=In%20software%20engineering%2C%20a%20connection,executing%20commands%20on%20a%20database.) is a storage of database connections that can be reused for future requests to the database. When a new connection is requested, it is retrieved from the pool if one is available. Once the connection is no longer needed, it is returned to the pool for reuse. diff --git a/content/300-accelerate/300-caching.mdx b/content/300-accelerate/300-caching.mdx index 1cdde59094..781a4f5af5 100644 --- a/content/300-accelerate/300-caching.mdx +++ b/content/300-accelerate/300-caching.mdx @@ -5,7 +5,7 @@ description: "Learn everything you need to know to use Accelerate's global datab toc_max_heading_level: 2 --- - + ## Cache strategies diff --git a/content/300-accelerate/400-api-reference.mdx b/content/300-accelerate/400-api-reference.mdx index 2d5bb71d63..d7aa9d66fe 100644 --- a/content/300-accelerate/400-api-reference.mdx +++ b/content/300-accelerate/400-api-reference.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + The Accelerate API reference documentation is based on the following schema: diff --git a/content/300-accelerate/500-limitations.mdx b/content/300-accelerate/500-limitations.mdx index 3817b7031c..096a355bda 100644 --- a/content/300-accelerate/500-limitations.mdx +++ b/content/300-accelerate/500-limitations.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Below are descriptions of known limitations when using Accelerate. If you are aware of any limitations that are missing, please let us know on the [#accelerate-feedback](https://prisma.slack.com/archives/C04KTN0V2Q0) channel in our community Slack. diff --git a/content/300-accelerate/550-evaluating.mdx b/content/300-accelerate/550-evaluating.mdx index 28bb0737e5..74002df2a9 100644 --- a/content/300-accelerate/550-evaluating.mdx +++ b/content/300-accelerate/550-evaluating.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma Accelerate optimizes database interactions through advanced connection pooling and global edge caching. Its connection pooler is available in 16 regions and helps applications load-balance and scale database requests based on demand. diff --git a/content/300-accelerate/580-local-development.mdx b/content/300-accelerate/580-local-development.mdx index 85d35563b7..722af7a9f2 100644 --- a/content/300-accelerate/580-local-development.mdx +++ b/content/300-accelerate/580-local-development.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Prisma Accelerate is designed to scale database connections efficiently in production environments. Prisma Accelerate also provides a global cache to reduce the load on your database and reduce query response time. To leverage Prisma Accelerate, it is essential to utilize a publicly accessible database. diff --git a/content/300-accelerate/600-faq.mdx b/content/300-accelerate/600-faq.mdx index a7972746d4..26e136faed 100644 --- a/content/300-accelerate/600-faq.mdx +++ b/content/300-accelerate/600-faq.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- -Below are frequently asked questions about Accelerate. +Below are frequently asked questions about Accelerate. ## Why do I sometimes see unexpected cache behavior? diff --git a/content/300-accelerate/650-troubleshoot.mdx b/content/300-accelerate/650-troubleshoot.mdx index cc403b3241..b59e9b5a9b 100644 --- a/content/300-accelerate/650-troubleshoot.mdx +++ b/content/300-accelerate/650-troubleshoot.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + When working with Prisma Accelerate, you may encounter errors often highlighted by specific error codes during development and operations. It is important to understand the meaning of these errors, why they occur, and how to resolve them in order to ensure the smooth operation of your applications. This guide aims to provide insights and steps to troubleshoot specific error codes encountered with Prisma Accelerate. diff --git a/content/300-accelerate/700-feedback.mdx b/content/300-accelerate/700-feedback.mdx index 66d4c43a21..6e84309515 100644 --- a/content/300-accelerate/700-feedback.mdx +++ b/content/300-accelerate/700-feedback.mdx @@ -6,7 +6,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + You can submit any feedback about Accelerate in the [#accelerate-feedback](https://prisma.slack.com/archives/C04KTN0V2Q0) channel in our community [Slack](https://slack.prisma.io/) and in our [Discord server](https://discord.gg/prisma-937751382725886062). diff --git a/content/300-accelerate/index.mdx b/content/300-accelerate/index.mdx index 68c795e215..910c25cfb8 100644 --- a/content/300-accelerate/index.mdx +++ b/content/300-accelerate/index.mdx @@ -8,7 +8,7 @@ pagination_next: 'accelerate/what-is-accelerate' --- - + [Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) is a global database cache and scalable connection pool that helps improve database performance in Serverless and Edge applications. diff --git a/content/400-pulse/100-what-is-pulse.mdx b/content/400-pulse/100-what-is-pulse.mdx index c6fc029032..2d44770467 100644 --- a/content/400-pulse/100-what-is-pulse.mdx +++ b/content/400-pulse/100-what-is-pulse.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + [Prisma Pulse](https://www.prisma.io/data-platform/pulse) is managed database-event infrastructure that captures and distributes your database events to your application. It simplifies subscribing to type-safe data changes with an extended [Prisma Client](/orm/prisma-client) to power real-time functionality. diff --git a/content/400-pulse/200-getting-started.mdx b/content/400-pulse/200-getting-started.mdx index 2ed658c242..51067fff46 100644 --- a/content/400-pulse/200-getting-started.mdx +++ b/content/400-pulse/200-getting-started.mdx @@ -6,7 +6,7 @@ tocDepth: 4 toc: true --- - + ## Prerequisites diff --git a/content/400-pulse/250-database-setup/100-general-database-instructions.mdx b/content/400-pulse/250-database-setup/100-general-database-instructions.mdx index 325fb083d8..a364d342a7 100644 --- a/content/400-pulse/250-database-setup/100-general-database-instructions.mdx +++ b/content/400-pulse/250-database-setup/100-general-database-instructions.mdx @@ -7,7 +7,7 @@ toc_max_heading_level: 6 toc: true --- - + Prepare your database to work with Pulse. diff --git a/content/400-pulse/250-database-setup/200-aws-rds.mdx b/content/400-pulse/250-database-setup/200-aws-rds.mdx index 714db10e38..28f8b1c037 100644 --- a/content/400-pulse/250-database-setup/200-aws-rds.mdx +++ b/content/400-pulse/250-database-setup/200-aws-rds.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + You have to enable logical replication on AWS RDS to make it compatible with Prisma Pulse. diff --git a/content/400-pulse/250-database-setup/300-railway.mdx b/content/400-pulse/250-database-setup/300-railway.mdx index aa789cfff3..bd34b7594d 100644 --- a/content/400-pulse/250-database-setup/300-railway.mdx +++ b/content/400-pulse/250-database-setup/300-railway.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Railway provides a useful feature known as [templates](https://railway.app/templates) to facilitate quick project setup. These templates allow users to package a service or a group of services into a format that can be easily reused and shared. We have two templates for Prisma Pulse that you can use: diff --git a/content/400-pulse/250-database-setup/400-neon.mdx b/content/400-pulse/250-database-setup/400-neon.mdx index 0b498cc068..1c8d793e38 100644 --- a/content/400-pulse/250-database-setup/400-neon.mdx +++ b/content/400-pulse/250-database-setup/400-neon.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + To enable logical replication in Neon for Prisma Pulse, follow these steps: diff --git a/content/400-pulse/250-database-setup/500-supabase.mdx b/content/400-pulse/250-database-setup/500-supabase.mdx index c8ce81bba3..d6a231b907 100644 --- a/content/400-pulse/250-database-setup/500-supabase.mdx +++ b/content/400-pulse/250-database-setup/500-supabase.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + You have to use a direct database connection from Supabase to use it with Prisma Pulse. diff --git a/content/400-pulse/250-database-setup/index.mdx b/content/400-pulse/250-database-setup/index.mdx index d89b519ae5..57edf67abe 100644 --- a/content/400-pulse/250-database-setup/index.mdx +++ b/content/400-pulse/250-database-setup/index.mdx @@ -1,12 +1,14 @@ --- -title: 'Database setup' -metaTitle: 'Prisma Pulse: Database setup' +title: 'Prisma Pulse: Database setup' description: 'Learn about configuring your database to use with Prisma Pulse' +sidebar_label: 'Database setup' tocDepth: 3 toc: true --- - +# Database setup + + Prepare your database to work with Prisma Pulse. diff --git a/content/400-pulse/300-concepts.mdx b/content/400-pulse/300-concepts.mdx index d9033f2adf..1d697d32eb 100644 --- a/content/400-pulse/300-concepts.mdx +++ b/content/400-pulse/300-concepts.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + ## Change data capture diff --git a/content/400-pulse/400-api-reference.mdx b/content/400-pulse/400-api-reference.mdx index 53d7fdd461..dbf047c7a4 100644 --- a/content/400-pulse/400-api-reference.mdx +++ b/content/400-pulse/400-api-reference.mdx @@ -1,13 +1,15 @@ --- -title: 'API reference' -metaTitle: 'Pulse: API reference' +title: 'Pulse: API reference' description: 'API reference documentation for Pulse.' +sidebar_label: 'API reference' tocDepth: 4 toc_max_heading_level: 4 toc: true --- - +# API reference + + The Pulse API reference documentation is based on the following schema: diff --git a/content/400-pulse/500-known-limitations.mdx b/content/400-pulse/500-known-limitations.mdx index 7b675e0404..342578dc79 100644 --- a/content/400-pulse/500-known-limitations.mdx +++ b/content/400-pulse/500-known-limitations.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Below are descriptions of known limitations when using Prisma Pulse. If you are aware of any limitations that are missing, please let us know on the `#help-and-questions` channel in our community [Discord](https://pris.ly/discord). diff --git a/content/400-pulse/600-faq.mdx b/content/400-pulse/600-faq.mdx index 230e49d2d6..42866cf098 100644 --- a/content/400-pulse/600-faq.mdx +++ b/content/400-pulse/600-faq.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- -Below are frequently asked questions about Pulse. +Below are frequently asked questions about Pulse. ## What databases are supported with Prisma Pulse? diff --git a/content/400-pulse/700-feedback.mdx b/content/400-pulse/700-feedback.mdx index 23ded4cd93..89f073698d 100644 --- a/content/400-pulse/700-feedback.mdx +++ b/content/400-pulse/700-feedback.mdx @@ -6,7 +6,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + You can submit any feedback about Prisma Pulse in the `#help-and-questions` channel in our community [Discord](https://pris.ly/discord). diff --git a/content/400-pulse/index.mdx b/content/400-pulse/index.mdx index bce988634e..c82642c61f 100644 --- a/content/400-pulse/index.mdx +++ b/content/400-pulse/index.mdx @@ -8,7 +8,7 @@ pagination_next: 'pulse/what-is-pulse' --- - + [Prisma Pulse](https://www.prisma.io/data-platform/pulse) enables real-time database events with type-safe Prisma Client subscriptions. diff --git a/content/500-platform/10-about.mdx b/content/500-platform/10-about.mdx index e3e6cbd80b..d233fed851 100644 --- a/content/500-platform/10-about.mdx +++ b/content/500-platform/10-about.mdx @@ -4,7 +4,7 @@ metaTitle: 'Platform Console: About' description: '' --- - + Platform Console enables you to integrate the latest Prisma Data Platform products into your application diff --git a/content/500-platform/20-concepts/10-workspaces.mdx b/content/500-platform/20-concepts/10-workspaces.mdx index 9699fdb226..93d99112c7 100644 --- a/content/500-platform/20-concepts/10-workspaces.mdx +++ b/content/500-platform/20-concepts/10-workspaces.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Workspaces provide a unified space for team collaboration on projects. Manage membership and billing directly within each Workspace. diff --git a/content/500-platform/20-concepts/20-projects.mdx b/content/500-platform/20-concepts/20-projects.mdx index 5c8689d15a..53b8932f90 100644 --- a/content/500-platform/20-concepts/20-projects.mdx +++ b/content/500-platform/20-concepts/20-projects.mdx @@ -6,7 +6,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + Projects embody your applications integrated with our products. Each project is associated with a Workspace and can be configured independently from one another. diff --git a/content/500-platform/20-concepts/30-environments.mdx b/content/500-platform/20-concepts/30-environments.mdx index cb7fb70997..65f3c6a4ff 100644 --- a/content/500-platform/20-concepts/30-environments.mdx +++ b/content/500-platform/20-concepts/30-environments.mdx @@ -7,7 +7,7 @@ toc: true highlight: true --- - + We're introducing Environments as a key component designed to enhance the way teams build, test, and grow their applications. diff --git a/content/500-platform/20-concepts/index.mdx b/content/500-platform/20-concepts/index.mdx index ad4d905f3f..44a451f4d8 100644 --- a/content/500-platform/20-concepts/index.mdx +++ b/content/500-platform/20-concepts/index.mdx @@ -5,7 +5,7 @@ description: '' hide_table_of_contents: true --- - + Learn about the main building blocks of Platform Console, such as workspaces, projects, and billing. diff --git a/content/500-platform/30-maturity-levels.mdx b/content/500-platform/30-maturity-levels.mdx index 068e2e436e..0f5ae8e289 100644 --- a/content/500-platform/30-maturity-levels.mdx +++ b/content/500-platform/30-maturity-levels.mdx @@ -4,7 +4,7 @@ metaTitle: 'Platform Console: Maturity levels' description: '' --- - + Prisma releases updates to Prisma Data Platform multiple times per week, as opposed to the Prisma ORM that we release on a set schedule every few weeks. This is why we consider the lifecycle and process for maturing features in Prisma Data Platform differently. diff --git a/content/500-platform/40-limits.mdx b/content/500-platform/40-limits.mdx index 1d517a1128..4f2a83777f 100644 --- a/content/500-platform/40-limits.mdx +++ b/content/500-platform/40-limits.mdx @@ -5,7 +5,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + More details on limits will be available soon. diff --git a/content/500-platform/50-support.mdx b/content/500-platform/50-support.mdx index e3b63e42af..093287f1b4 100644 --- a/content/500-platform/50-support.mdx +++ b/content/500-platform/50-support.mdx @@ -6,7 +6,7 @@ tocDepth: 3 toc: true --- - + Your feedback is invaluable, and we encourage you to share your experiences with us on [Discord](https://pris.ly/discord). diff --git a/content/500-platform/60-platform-cli/10-about.mdx b/content/500-platform/60-platform-cli/10-about.mdx index 22e0043927..162c2bcae3 100644 --- a/content/500-platform/60-platform-cli/10-about.mdx +++ b/content/500-platform/60-platform-cli/10-about.mdx @@ -5,7 +5,7 @@ tocDepth: 3 hide_table_of_contents: true --- - + This guide demonstrates how to access the Prisma Data Platform using the [Prisma CLI](/orm/tools/prisma-cli). Get started by ensuring you have the Prisma CLI installed, following our setup [instructions](/orm/tools/prisma-cli#installation). diff --git a/content/500-platform/60-platform-cli/20-commands.mdx b/content/500-platform/60-platform-cli/20-commands.mdx index 70e5c2bfe2..a20d3d18d0 100644 --- a/content/500-platform/60-platform-cli/20-commands.mdx +++ b/content/500-platform/60-platform-cli/20-commands.mdx @@ -5,7 +5,7 @@ toc_max_heading_level: 4 --- - + This document describes the Prisma Data Platform's integrated Prisma CLI commands, arguments, and options. diff --git a/content/500-platform/60-platform-cli/index.mdx b/content/500-platform/60-platform-cli/index.mdx index bdc5b21803..f175a06696 100644 --- a/content/500-platform/60-platform-cli/index.mdx +++ b/content/500-platform/60-platform-cli/index.mdx @@ -5,7 +5,7 @@ staticLink: true earlyaccess: true --- - + ## In this section diff --git a/content/500-platform/index.mdx b/content/500-platform/index.mdx index da67b2e348..c9bda87b7a 100644 --- a/content/500-platform/index.mdx +++ b/content/500-platform/index.mdx @@ -6,7 +6,7 @@ hide_table_of_contents: true sidebar_position: 0 --- - + Learn about the main concepts and workflows of the [Prisma Data Platform](https://prisma.io/data-platform/). diff --git a/content/600-about/200-prisma-docs/10-about-the-docs.mdx b/content/600-about/200-prisma-docs/10-about-the-docs.mdx index c1192b847f..2eaf36a245 100644 --- a/content/600-about/200-prisma-docs/10-about-the-docs.mdx +++ b/content/600-about/200-prisma-docs/10-about-the-docs.mdx @@ -5,7 +5,7 @@ description: 'This page gives a meta-overview about different topics that are re tocDepth: 3 --- - + `User` and `Post` are the canonical models that are being used throughout the Prisma docs. This page gives some context on why these have been selected and how to interpret them. diff --git a/content/600-about/200-prisma-docs/20-style-guide/04-schema-models.mdx b/content/600-about/200-prisma-docs/20-style-guide/04-schema-models.mdx index 3450001be6..0859eb1a90 100644 --- a/content/600-about/200-prisma-docs/20-style-guide/04-schema-models.mdx +++ b/content/600-about/200-prisma-docs/20-style-guide/04-schema-models.mdx @@ -6,7 +6,7 @@ tocDepth: 3 search: false --- - + `User` and `Post` are the canonical models that we use in our examples throughout the Prisma docs. diff --git a/content/600-about/200-prisma-docs/20-style-guide/10-boilerplate-content.mdx b/content/600-about/200-prisma-docs/20-style-guide/10-boilerplate-content.mdx index 7f3c5f84b7..a9b4cb9b0f 100644 --- a/content/600-about/200-prisma-docs/20-style-guide/10-boilerplate-content.mdx +++ b/content/600-about/200-prisma-docs/20-style-guide/10-boilerplate-content.mdx @@ -8,7 +8,7 @@ search: false toc: true --- - + You can use the following phrases and blocks of content as templates when you work on the docs. diff --git a/content/600-about/200-prisma-docs/20-style-guide/index.mdx b/content/600-about/200-prisma-docs/20-style-guide/index.mdx index f176e0d378..8ca24500b6 100644 --- a/content/600-about/200-prisma-docs/20-style-guide/index.mdx +++ b/content/600-about/200-prisma-docs/20-style-guide/index.mdx @@ -7,7 +7,7 @@ toc_max_heading_level: 4 hidePage: false --- - + This guide contains guidelines for contributors to the Prisma docs. Its goal is to ensure consistency throughout the Prisma docs and with other official Prisma materials. diff --git a/content/600-about/200-prisma-docs/30-docs-components/01-mdx-examples.mdx b/content/600-about/200-prisma-docs/30-docs-components/01-mdx-examples.mdx index 072a810207..63b90c5655 100644 --- a/content/600-about/200-prisma-docs/30-docs-components/01-mdx-examples.mdx +++ b/content/600-about/200-prisma-docs/30-docs-components/01-mdx-examples.mdx @@ -6,7 +6,7 @@ sidebar_label: 'MDX components' search: false --- - + This page describes how to use the custom [MDX](https://mdxjs.com/) components (e.g. code blocks) in the Prisma docs. @@ -19,7 +19,7 @@ Components not listed here are part of the [Docusaurus Markdown features](https: Required at the top of the page to avoid styling issues: ```md - + This page describes how to use [MDX](https://mdxjs.com/) components (e.g. code blocks) in the Prisma docs. diff --git a/content/600-about/200-prisma-docs/30-docs-components/03-frontmatter.mdx b/content/600-about/200-prisma-docs/30-docs-components/03-frontmatter.mdx index 938c49afbf..3502910262 100644 --- a/content/600-about/200-prisma-docs/30-docs-components/03-frontmatter.mdx +++ b/content/600-about/200-prisma-docs/30-docs-components/03-frontmatter.mdx @@ -4,7 +4,7 @@ description: Supported front matter variables. search: false --- - + ## Meta information diff --git a/content/600-about/200-prisma-docs/40-template.mdx b/content/600-about/200-prisma-docs/40-template.mdx index 08532589ed..1a64f775e6 100644 --- a/content/600-about/200-prisma-docs/40-template.mdx +++ b/content/600-about/200-prisma-docs/40-template.mdx @@ -9,7 +9,7 @@ toc: true deprecated: false --- - + A short introduction that encourages visitors to read on. The `TopBlock` component is required for styling purposes. diff --git a/content/600-about/index.mdx b/content/600-about/index.mdx index a03f2b123c..b531ad72fe 100644 --- a/content/600-about/index.mdx +++ b/content/600-about/index.mdx @@ -5,6 +5,6 @@ description: 'About the Prisma docs.' hide_table_of_contents: true --- - + diff --git a/src/css/custom.css b/src/css/custom.css index c1c3f2899a..0431b6324d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -70,7 +70,7 @@ pre { background-color: var(--ifm-navbar-link-hover-color); } -.theme-doc-sidebar-container { +.theme-doc-sidebar-container { border-right: none !important; } @@ -541,7 +541,7 @@ hr { } .logo-link:hover { - transform: translateY(-2px); + transform: translateY(-2px); color: var(--main-font-color); } @@ -550,7 +550,7 @@ hr { width: var(--doc-sidebar-width); padding-right: 53px; margin-right: -1rem; - + } @media (prefers-color-scheme: dark) { .navbar__logo { @@ -659,7 +659,7 @@ hr { } /* FOOTER */ - + .footer__title { text-transform: uppercase; font-weight: 400; @@ -751,8 +751,8 @@ hr { flex: none; } } - - + + .footer__copyright { text-align: left; font-size: 1.125rem; @@ -1105,11 +1105,8 @@ hr { } } -.theme-doc-markdown > header { - display: none; -} - -.top-section h1 { +.theme-doc-markdown > h1, +.theme-doc-markdown > header > h1 { font-family: Barlow, system-ui, Arial, sans-serif; font-style: normal; font-weight: bold; @@ -1170,7 +1167,7 @@ hr { } .tech-select__menu { background-color: var(--gray-800); - + .tech-select__option { background-color: var(--gray-800); color: var(--gray-100); @@ -1192,7 +1189,7 @@ hr { } .tech-select__menu { background-color: transparent; - + .tech-select__option { background-color: var(--gray-100); color: rgb(51, 51, 51); @@ -1221,7 +1218,7 @@ hr { } .tech-select__menu { background-color: var(--gray-800); - + .tech-select__option { background-color: var(--gray-800); color: var(--gray-100); diff --git a/src/theme/MDXComponents.tsx b/src/theme/MDXComponents.tsx index 8f25d70966..a748cd8852 100644 --- a/src/theme/MDXComponents.tsx +++ b/src/theme/MDXComponents.tsx @@ -14,12 +14,11 @@ import { useLocation } from '@docusaurus/router'; import styles from "./styles.module.scss" // TODO: do we want to fix this? -const TopBlock: React.FC = ({ children, langSwitcher, dbSwitcher, slug, title }: any) => { +const TopBlock: React.FC = ({ children, langSwitcher, dbSwitcher, slug }: any) => { const location = useLocation() return ( <>
- {title &&

{title}

} = ({ children, langSwitcher, d // TODO: we should fix this const CodeWithResult: React.FC<{ children: React.ReactElement[] }> = ({ children, outputResultText, ...rest }: any) => { -const [show, setShow] = useState(false) + const [show, setShow] = useState(false) return
{children[0]}
@@ -101,8 +100,8 @@ const StyledLink: React.FC = ({ children, ...props }) = else return {children} - - + + } @@ -123,4 +122,4 @@ export default { ParallelBlocks, ButtonLink, NavigationLinksContainer, -}; \ No newline at end of file +};