diff --git a/content/01-getting-started/01-quickstart.mdx b/content/01-getting-started/01-quickstart.mdx index 5b68455b92..ef28cca0ea 100644 --- a/content/01-getting-started/01-quickstart.mdx +++ b/content/01-getting-started/01-quickstart.mdx @@ -1,7 +1,7 @@ --- title: 'Quickstart' -metaTitle: '' -metaDescription: '' +metaTitle: 'Quickstart (5 min)' +metaDescription: 'Get started with Prisma in 5 minutes. You will learn how to send queries to a SQL database in a plain Node.js or TypeScript script using Prisma Client.' duration: '5 min' langSwitcher: true --- diff --git a/content/01-getting-started/02-setup-prisma/01-add-to-an-existing-project.mdx b/content/01-getting-started/02-setup-prisma/01-add-to-an-existing-project.mdx index 28753da711..e14d6ce019 100644 --- a/content/01-getting-started/02-setup-prisma/01-add-to-an-existing-project.mdx +++ b/content/01-getting-started/02-setup-prisma/01-add-to-an-existing-project.mdx @@ -1,7 +1,7 @@ --- title: 'Add to an existing project' -metaTitle: '' -metaDescription: '' +metaTitle: 'Add Prisma to an existing project (15 min)' +metaDescription: 'Learn how to add Prisma to an existing Node.js or TypeScript project by connecting it to your database and generating Prisma Client for database access.' dbSwitcher: true langSwitcher: true --- diff --git a/content/01-getting-started/02-setup-prisma/02-start-from-scratch-sql.mdx b/content/01-getting-started/02-setup-prisma/02-start-from-scratch-sql.mdx index 77601b7de9..1b10878d30 100644 --- a/content/01-getting-started/02-setup-prisma/02-start-from-scratch-sql.mdx +++ b/content/01-getting-started/02-setup-prisma/02-start-from-scratch-sql.mdx @@ -1,7 +1,7 @@ --- title: 'Start from scratch' -metaTitle: '' -metaDescription: '' +metaTitle: 'Setup a new projecct with Prisma from scratch (15 min)' +metaDescription: 'Learn how to create a new Node.js or TypeScript project from scratch by connecting Prisma to your database and generating Prisma Client for database access.' dbSwitcher: true langSwitcher: true --- @@ -327,7 +327,7 @@ CREATE TABLE Profile ( You can create the tables using any MySQL client of your choice. If you're using `mysql`, you can now create the tables using the following command: ``` -mysql < schema.sql +mysql <\ schema.sql ``` Great, you now created three tables in your database diff --git a/content/02-understand-prisma/01-introduction.mdx b/content/02-understand-prisma/01-introduction.mdx index 5f10b1a390..7153a113b0 100644 --- a/content/02-understand-prisma/01-introduction.mdx +++ b/content/02-understand-prisma/01-introduction.mdx @@ -1,7 +1,7 @@ --- title: 'Introduction' -metaTitle: '' -metaDescription: '' +metaTitle: 'Introduction to Prisma' +metaDescription: 'This page gives a high-level overview of what Prisma is and how it works. It's a great starting point for Prisma newcomers!' --- ## Overview diff --git a/content/02-understand-prisma/02-why-prisma.mdx b/content/02-understand-prisma/02-why-prisma.mdx index 1db068be9f..8d559666cc 100644 --- a/content/02-understand-prisma/02-why-prisma.mdx +++ b/content/02-understand-prisma/02-why-prisma.mdx @@ -1,7 +1,7 @@ --- title: 'Why Prisma?' -metaTitle: '' -metaDescription: '' +metaTitle: 'Why Prisma? (Comparison with SQL query builders & ORMs)' +metaDescription: 'Learn about the motivation for Prisma and how it compares to other Node.js and TypeScript database tools like ORMs and SQL query builders.' --- ## Overview diff --git a/content/02-understand-prisma/03-prisma-in-your-stack/01-rest.md b/content/02-understand-prisma/03-prisma-in-your-stack/01-rest.md index 42700ceb43..e0daa8b6f9 100644 --- a/content/02-understand-prisma/03-prisma-in-your-stack/01-rest.md +++ b/content/02-understand-prisma/03-prisma-in-your-stack/01-rest.md @@ -1,7 +1,7 @@ --- title: 'REST' -metaTitle: '' -metaDescription: '' +metaTitle: 'Building REST APIs with Prisma' +metaDescription: 'This page gives an overview of the most important things when building REST APIs with Prisma. It shows practical examples and the supported libraries.' --- ## Overview diff --git a/content/02-understand-prisma/03-prisma-in-your-stack/02-graphql.md b/content/02-understand-prisma/03-prisma-in-your-stack/02-graphql.md index 5d7f1f9ccc..38370c9342 100644 --- a/content/02-understand-prisma/03-prisma-in-your-stack/02-graphql.md +++ b/content/02-understand-prisma/03-prisma-in-your-stack/02-graphql.md @@ -1,7 +1,7 @@ --- title: 'GraphQL' -metaTitle: '' -metaDescription: '' +metaTitle: 'Building GraphQL servers with Prisma' +metaDescription: 'This page gives explains how to build GraphQL servers with Prisma. It shows how Prisma fits into the GraphQL ecosystem and provides practical examples.' --- ## Overview diff --git a/content/02-understand-prisma/03-prisma-in-your-stack/03-is-prisma-an-orm.mdx b/content/02-understand-prisma/03-prisma-in-your-stack/03-is-prisma-an-orm.mdx index 016c6ec8ef..150db7e3ee 100644 --- a/content/02-understand-prisma/03-prisma-in-your-stack/03-is-prisma-an-orm.mdx +++ b/content/02-understand-prisma/03-prisma-in-your-stack/03-is-prisma-an-orm.mdx @@ -1,7 +1,7 @@ --- title: 'Is Prisma an ORM?' -metaTitle: '' -metaDescription: '' +metaTitle: 'Is Prisma an ORM?' +metaDescription: "Learn why Prisma is not an ORM. It shares similar goals with ORMs and wants to make working with databases easy, but it does not map classes to tables as ORMs do." --- ## Overview diff --git a/content/02-understand-prisma/04-data-modeling.mdx b/content/02-understand-prisma/04-data-modeling.mdx index f2aa4036a6..999e76778a 100644 --- a/content/02-understand-prisma/04-data-modeling.mdx +++ b/content/02-understand-prisma/04-data-modeling.mdx @@ -1,7 +1,7 @@ --- title: 'Data modeling' -metaTitle: '' -metaDescription: '' +metaTitle: 'Data modeling with Prisma' +metaDescription: '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/02-understand-prisma/05-under-the-hood.mdx b/content/02-understand-prisma/05-under-the-hood.mdx index a8d5c66122..6199cbea29 100644 --- a/content/02-understand-prisma/05-under-the-hood.mdx +++ b/content/02-understand-prisma/05-under-the-hood.mdx @@ -1,7 +1,7 @@ --- title: 'Under the hood' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma under the hood' +metaDescription: 'Learn about Prisma internals and how it works "under the hood". Prisma tools are based on an engine-layer which manages the communication with the database.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/01-prisma-schema-file.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/01-prisma-schema-file.mdx index 1b1a97793a..92129ace02 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/01-prisma-schema-file.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/01-prisma-schema-file.mdx @@ -1,7 +1,7 @@ --- title: 'Prisma schema file' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma schema file (Reference)' +metaDescription: '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.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/02-data-sources.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/02-data-sources.mdx index c854b185e6..e07cfab304 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/02-data-sources.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/02-data-sources.mdx @@ -1,7 +1,7 @@ --- title: 'Data sources' -metaTitle: '' -metaDescription: '' +metaTitle: 'Data sources (Reference)' +metaDescription: 'Data sources enable Prisma to connect to your database. This page explains how to configure data sources in your Prisma schema.' --- ## Overview @@ -37,7 +37,7 @@ datasource postgresql { } ``` -Learn more about PostgreSQL connection strings [here](). +Learn more about PostgreSQL connection strings [here](../../database-connectors/postgresql). **Specify a MySQL data source** @@ -56,7 +56,7 @@ datasource mysql { } ``` -Learn more about PostgreSQL connection strings [here](). +Learn more about PostgreSQL connection strings [here](../../database-connectors/mysql). **Specify a SQLite data source** @@ -69,7 +69,7 @@ datasource sqlite { } ``` -Learn more about SQLite connection strings [here](). +Learn more about SQLite connection strings [here](../../database-connectors/sqlite). **Specify a PostgreSQL data source via an environment variable** diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/03-generators.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/03-generators.mdx index a71820fe23..db0b5958cf 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/03-generators.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/03-generators.mdx @@ -1,12 +1,12 @@ --- title: 'Generators' -metaTitle: '' -metaDescription: '' +metaTitle: 'Generators (Reference)' +metaDescription: 'Generators in your Prisma schema specify what assets are generated when the `prisma generate` command is invoked. This page explains how to configure generators.' --- ## Overview -A generator can be specified via the `generator` block in the Prisma schema. +A generator can be specified via the `generator` block in the Prisma schema. Generators in your Prisma schema specify what assets are generated when the `prisma generate` command is invoked. ## Fields diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/04-data-model.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/04-data-model.mdx index ede702a3a0..3cb068b33b 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/04-data-model.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/04-data-model.mdx @@ -1,7 +1,7 @@ --- title: 'Data model' -metaTitle: '' -metaDescription: '' +metaTitle: 'Data model (Reference)' +metaDescription: 'Learn about the concepts for building your data model with Prisma: Models, scalar types, enums, attributes, functions, IDs, default values and more.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/05-models.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/05-models.mdx index a2fd440092..b9e8e6ffcd 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/05-models.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/05-models.mdx @@ -1,7 +1,7 @@ --- title: 'Models' -metaTitle: '' -metaDescription: '' +metaTitle: 'Models (Reference)' +metaDescription: 'Learn about defining your application models with Prisma. Models represent tables in the database and serve as foundation for generated Prisma Client queries.' --- ## Overview @@ -192,7 +192,7 @@ const allUsers = await prisma.user.findMany(); Prisma Client not only provides a query API for models, it also generates type definitions that reflect your model structures. These are part of the generated [`@prisma/client`](../prisma-client/generating-prisma-client#the-prisma-client-npm-module) node module in a file called `index.d.ts`. -When using TypeScript, these type definitions ensure that all your database queries are entirely type safe and validated at compile-time (even partial queries using [`select`](..//prisma-client/field-selection#select) or [`include`](..//prisma-client/field-selection#include)). +When using TypeScript, these type definitions ensure that all your database queries are entirely type safe and validated at compile-time (even partial queries using [`select`](../prisma-client/field-selection#select) or [`include`](../prisma-client/field-selection#include)). Even when using plain JavaScript, the type definitions are still included in the generated `@prisma/client` node module, enabling features like [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense)/autocompletion in your editor. diff --git a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/06-relations.mdx b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/06-relations.mdx index 1b8eb7ae8a..31a924abc3 100644 --- a/content/03-reference/01-tools-and-interfaces/01-prisma-schema/06-relations.mdx +++ b/content/03-reference/01-tools-and-interfaces/01-prisma-schema/06-relations.mdx @@ -1,7 +1,7 @@ --- title: 'Relations' -metaTitle: '' -metaDescription: '' +metaTitle: 'Relations (Reference)' +metaDescription: 'A relation is a connection between two models in the Prisma schema. This page explains how you can define 1-1, 1-n and m-n relations in Prisma.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/01-api.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/01-api.mdx index f7d95dd884..7b2cb51fc9 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/01-api.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/01-api.mdx @@ -1,7 +1,7 @@ --- title: 'API reference' -metaTitle: '' -metaDescription: '' +metaTitle: 'API Reference' +metaDescription: "This page gives an overview of the Prisma Client API and links to more detailled explanations. It's a great starting point for exploring Prisma Client." --- ## Overview @@ -17,7 +17,7 @@ The setup instruction below provide a high-level overview of the steps needed to ### 1. Prerequisites -In order to set up Prisma Client, you need a [Prisma schema file](..//prisma-schema/prisma-schema-file) with your database connection, the Prisma Client generator and at least one model: +In order to set up Prisma Client, you need a [Prisma schema file](../prisma-schema/prisma-schema-file) with your database connection, the Prisma Client generator and at least one model: ```prisma datasource postgresql { diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/02-generating-prisma-client.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/02-generating-prisma-client.mdx index a8f2700263..01013ce562 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/02-generating-prisma-client.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/02-generating-prisma-client.mdx @@ -1,7 +1,7 @@ --- title: 'Generating Prisma Client' -metaTitle: '' -metaDescription: '' +metaTitle: 'Generating Prisma Client (Reference)' +metaDescription: 'This page explains how to generate Prisma Client. It also provides additional context on the generated npm module, typical workflows and Node.js configuration.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/03-configuring-the-prisma-client-api.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/03-configuring-the-prisma-client-api.mdx index 0b50031ce8..8e5b27b2c7 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/03-configuring-the-prisma-client-api.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/03-configuring-the-prisma-client-api.mdx @@ -1,7 +1,7 @@ --- title: 'Configuring the Prisma Client API' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configuring the Prisma Client API (Reference)' +metaDescription: 'Learn how you can decouple the naming of Prisma models from database tables to improve the ergonomics of the generated Prisma Client API.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/04-crud.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/04-crud.mdx index 872aa2fff3..680fc16aff 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/04-crud.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/04-crud.mdx @@ -1,7 +1,7 @@ --- title: 'CRUD' -metaTitle: '' -metaDescription: '' +metaTitle: 'CRUD (Reference)' +metaDescription: 'This page provides a detailled reference of the auto-generated CRUD queries that are exposed in the Prisma Client API, such as findOne, findMany, create, ...' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/05-relation-queries.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/05-relation-queries.mdx index 66861d4536..49d00d08c0 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/05-relation-queries.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/05-relation-queries.mdx @@ -1,7 +1,7 @@ --- title: 'Relation queries' -metaTitle: '' -metaDescription: '' +metaTitle: 'Relation queries (Reference)' +metaDescription: 'Prisma Client provides convenient queries for working with relations, such as a fluent API, nested writes (transactions), nested reads and relation filters.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/06-field-selection.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/06-field-selection.mdx index 8260f51b8f..642c16d65e 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/06-field-selection.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/06-field-selection.mdx @@ -1,7 +1,7 @@ --- title: 'Field selection' -metaTitle: '' -metaDescription: '' +metaTitle: 'Field selection (Reference)' +metaDescription: "This page explains how to select only a subset of a model's fields and/or include relations ("eager loading") in a Prisma Client query." --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/07-raw-database-access.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/07-raw-database-access.mdx index 8027e4310a..ac2cd41a33 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/07-raw-database-access.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/07-raw-database-access.mdx @@ -1,7 +1,7 @@ --- title: 'Raw database access' -metaTitle: '' -metaDescription: '' +metaTitle: 'Raw database access (Reference' +metaDescription: 'Learn how you can send raw SQL queries to your database using the raw() method from the Prisma Client API.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/08-connection-management.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/08-connection-management.mdx index ba8902edac..7224c68c0f 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/08-connection-management.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/08-connection-management.mdx @@ -1,7 +1,7 @@ --- title: 'Connection management' -metaTitle: '' -metaDescription: '' +metaTitle: 'Connection management (Reference)' +metaDescription: 'This page explains how database connections are handled with Prisma Client and how to manually connect and disconnect your database.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/09-advanced-usage-of-generated-types.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/09-advanced-usage-of-generated-types.mdx index aa93e200b4..2e8fbddde0 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/09-advanced-usage-of-generated-types.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/09-advanced-usage-of-generated-types.mdx @@ -1,7 +1,7 @@ --- title: 'Advanced usage of generated types' -metaTitle: '' -metaDescription: '' +metaTitle: 'Advanced usage of generated types (Reference)' +metaDescription: 'Prisma Client provides full type safety for queries, even for partial queries or included relations. This page explains how to leverage the generated types.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/13-logging.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/13-logging.mdx index 5a6fcf033b..db26722b4b 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/13-logging.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/13-logging.mdx @@ -1,7 +1,7 @@ --- title: 'Logging' -metaTitle: '' -metaDescription: '' +metaTitle: 'Logging (Reference)' +metaDescription: 'Learn how to configure Prismaa Client to log the raw SQL queries it sends to the database and other information.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/14-debugging.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/14-debugging.mdx index 1d1770ae5d..320a3cac49 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/14-debugging.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/14-debugging.mdx @@ -1,7 +1,7 @@ --- title: 'Debugging' -metaTitle: '' -metaDescription: '' +metaTitle: 'Debugging (Reference)' +metaDescription: 'This page explains how to enable debugging output for Prisma Client by setting the `DEBUG` environment variable.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/15-error-formatting.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/15-error-formatting.mdx index 187d182ead..b4d9863eb3 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/15-error-formatting.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/15-error-formatting.mdx @@ -1,7 +1,7 @@ --- title: 'Error formatting' -metaTitle: '' -metaDescription: '' +metaTitle: 'Error formatting (Reference)' +metaDescription: 'This page expains how to configure the formatting of errors when using Prisma Client.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/16-transactions.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/16-transactions.mdx index 1d0930142c..2c74acd0ff 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/16-transactions.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/16-transactions.mdx @@ -1,7 +1,7 @@ --- title: 'Transactions' -metaTitle: '' -metaDescription: '' +metaTitle: 'Transactions (Reference)' +metaDescription: 'This page explains the current transactions API of Prisma Client.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/17-deployment.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/17-deployment.mdx index a51939d812..c81ca5dd30 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/17-deployment.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/17-deployment.mdx @@ -1,7 +1,7 @@ --- title: 'Deployment' -metaTitle: '' -metaDescription: '' +metaTitle: 'Deployment (Reference)' +metaDescription: 'Learn the basics about deploying Node.js and TypeScript applications that are using Prisma Client.' --- Coming 🔜 diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/18-query-engine.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/18-query-engine.mdx index 02ad6cd477..dde0d7e64d 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/18-query-engine.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/18-query-engine.mdx @@ -1,7 +1,7 @@ --- title: 'Query engine' -metaTitle: '' -metaDescription: '' +metaTitle: 'Query engine (Reference)' +metaDescription: "Prisma's query engine manages the comunication with the database when using Prisma Client. Learn how it works on this page." --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/02-prisma-client/19-module-bundlers.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/19-module-bundlers.mdx index 910244e8d7..e6aa78b0b4 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/19-module-bundlers.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/19-module-bundlers.mdx @@ -1,7 +1,7 @@ --- title: 'Module bundlers' -metaTitle: '' -metaDescription: '' +metaTitle: 'Module bundlers (Reference)' +metaDescription: '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/03-reference/01-tools-and-interfaces/02-prisma-client/20-database-polyfills.mdx b/content/03-reference/01-tools-and-interfaces/02-prisma-client/20-database-polyfills.mdx index c16d521db3..bc05afc293 100644 --- a/content/03-reference/01-tools-and-interfaces/02-prisma-client/20-database-polyfills.mdx +++ b/content/03-reference/01-tools-and-interfaces/02-prisma-client/20-database-polyfills.mdx @@ -1,7 +1,7 @@ --- title: 'Database polyfills' -metaTitle: '' -metaDescription: '' +metaTitle: 'Database polyfills (Reference)' +metaDescription: 'Prisma Client provides features that are not achievable with relational databases. These features are referred to as "polyfills" and explained on this page.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/03-prisma-migrate.mdx b/content/03-reference/01-tools-and-interfaces/03-prisma-migrate.mdx index c68c58215b..4f744620c9 100644 --- a/content/03-reference/01-tools-and-interfaces/03-prisma-migrate.mdx +++ b/content/03-reference/01-tools-and-interfaces/03-prisma-migrate.mdx @@ -1,7 +1,7 @@ --- title: 'Prisma Migrate' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma Migrate (Reference)' +metaDescription: 'Prisma Migrate is a declarative data modeling and schema migration tool that is available via the Prisma CLI.' experimental: true --- diff --git a/content/03-reference/01-tools-and-interfaces/04-introspection.mdx b/content/03-reference/01-tools-and-interfaces/04-introspection.mdx index c27a5a9f12..2e16f56416 100644 --- a/content/03-reference/01-tools-and-interfaces/04-introspection.mdx +++ b/content/03-reference/01-tools-and-interfaces/04-introspection.mdx @@ -1,7 +1,7 @@ --- title: 'Introspection' -metaTitle: '' -metaDescription: '' +metaTitle: 'Introspection (Reference)' +metaDescription: 'Learn how you can introspect your database to generate a data model into your Prisma schema.' --- ## Overview diff --git a/content/03-reference/01-tools-and-interfaces/05-prisma-cli/01-installation.mdx b/content/03-reference/01-tools-and-interfaces/05-prisma-cli/01-installation.mdx index c3b09f8f63..50a81691b5 100644 --- a/content/03-reference/01-tools-and-interfaces/05-prisma-cli/01-installation.mdx +++ b/content/03-reference/01-tools-and-interfaces/05-prisma-cli/01-installation.mdx @@ -1,6 +1,6 @@ --- title: 'Installation' -metaTitle: '' +metaTitle: 'Prisma CLI Installation (Reference)' metaDescription: '' --- @@ -11,7 +11,7 @@ The Prisma CLI is available as an [npm package](). It is **recommended to instal ### Local installation (recommended) -The Prisma 2 CLI is typically installed as a **development dependency**, that's why the `--save-dev` (npm) and `--dev` (Yarn) options are used in the commands below. +The Prisma CLI is typically installed as a **development dependency**, that's why the `--save-dev` (npm) and `--dev` (Yarn) options are used in the commands below. #### npm @@ -55,7 +55,7 @@ yarn prisma generate ### Global installation (not recommended) -While it is recommended to [locally install](#local-installation-recommended) the Prisma 2 CLI, you can also install it globally on your machine. +While it is recommended to [locally install](#local-installation-recommended) the Prisma CLI, you can also install it globally on your machine. > **Warning**: If you have several Prisma projects on your machine, a global installation can lead to version conflicts between these projects. @@ -101,11 +101,11 @@ prisma generate ### The `postinstall` hook -When installing Prisma 2 CLI, a [`postinstall`](https://github.com/prisma/prisma/blob/master/cli/sdk/package.json#L13) hook is being executed. It downloads Prisma 2's query and migration [engine binaries](https://github.com/prisma/prisma-engine). The query engine contains the [Prisma schema](../prisma-schema/prisma-schema-file) parser which is used by the `prisma init` and the `prisma generate` commands. The migration engine is used by all `prisma migrate` commands. +When installing Prisma CLI, a [`postinstall`](https://github.com/prisma/prisma/blob/master/cli/sdk/package.json#L13) hook is being executed. It downloads Prisma's query and migration [engine binaries](https://github.com/prisma/prisma-engine). The query engine contains the [Prisma schema](../prisma-schema/prisma-schema-file) parser which is used by the `prisma init` and the `prisma generate` commands. The migration engine is used by all `prisma migrate` commands. ## Using a HTTP proxy for the CLI -Prisma 2 CLI supports [custom HTTP proxies](https://github.com/prisma/prisma/issues/506). This is particularly relevant when being behind a corporate firewall. +Prisma CLI supports [custom HTTP proxies](https://github.com/prisma/prisma/issues/506). This is particularly relevant when being behind a corporate firewall. To activate the proxy, provide the environment variables `HTTP_PROXY` and/or `HTTPS_PROXY`. The behavior is very similar to how the [`npm` CLI handles this](https://docs.npmjs.com/misc/config#https-proxy). diff --git a/content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx b/content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx index c1bb991e4e..aaa2c7d49f 100644 --- a/content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx +++ b/content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx @@ -1,7 +1,7 @@ --- title: 'CLI command reference' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma CLI Command Reference' +metaDescription: 'This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples.' --- ## Overview diff --git a/content/03-reference/02-database-connectors/01-features.mdx b/content/03-reference/02-database-connectors/01-database-features.mdx similarity index 98% rename from content/03-reference/02-database-connectors/01-features.mdx rename to content/03-reference/02-database-connectors/01-database-features.mdx index 4bdd966686..31ea28f582 100644 --- a/content/03-reference/02-database-connectors/01-features.mdx +++ b/content/03-reference/02-database-connectors/01-database-features.mdx @@ -1,7 +1,7 @@ --- -title: 'Features' -metaTitle: '' -metaDescription: '' +title: 'Database features' +metaTitle: 'Database features (Reference)' +metaDescription: 'Learn which database features are supported in Prisma and how they map to the different Prisma tools.' --- ## Overview diff --git a/content/03-reference/02-database-connectors/02-connection-urls.mdx b/content/03-reference/02-database-connectors/02-connection-urls.mdx index 05837a3e4b..1edf13cded 100644 --- a/content/03-reference/02-database-connectors/02-connection-urls.mdx +++ b/content/03-reference/02-database-connectors/02-connection-urls.mdx @@ -1,7 +1,7 @@ --- title: 'Connection URLs' -metaTitle: '' -metaDescription: '' +metaTitle: 'Connection URLs (Reference)' +metaDescription: 'Learn about the format and syntax Prisma uses for defining database connection URLs for PostgreSQL, MySQL and SQLite.' --- ## Overview diff --git a/content/03-reference/02-database-connectors/03-postgresql.mdx b/content/03-reference/02-database-connectors/03-postgresql.mdx index a957559548..0524426bb3 100644 --- a/content/03-reference/02-database-connectors/03-postgresql.mdx +++ b/content/03-reference/02-database-connectors/03-postgresql.mdx @@ -1,7 +1,7 @@ --- title: 'PostgreSQL' -metaTitle: '' -metaDescription: '' +metaTitle: 'PostgreSQL database connector (Reference)' +metaDescription: 'This page explains how Prisma can connect to a PostgreSQL database using the PostgreSQL database connector.' --- ## Overview @@ -120,7 +120,7 @@ Note that `localhost` is required, the value itself is ignored and can be anythi ## Type mapping between PostgreSQL to Prisma schema -The PostgreSQL connector maps the [scalar types](..//prisma-schema/data-model#scalar-types) from the Prisma [data model](../prisma-schema/data-model) as follows to native column types: +The PostgreSQL connector maps the [scalar types](../prisma-schema/data-model#scalar-types) from the Prisma [data model](../prisma-schema/data-model) as follows to native column types: ### Prisma Migrate diff --git a/content/03-reference/02-database-connectors/04-mysql.mdx b/content/03-reference/02-database-connectors/04-mysql.mdx index ca94884028..29dfc7deb6 100644 --- a/content/03-reference/02-database-connectors/04-mysql.mdx +++ b/content/03-reference/02-database-connectors/04-mysql.mdx @@ -1,7 +1,7 @@ --- title: 'MySQL' -metaTitle: '' -metaDescription: '' +metaTitle: 'MySQL database connector (Reference)' +metaDescription: 'This page explains how Prisma can connect to a MySQL database using the MySQL database connector.' --- ## Overview @@ -119,7 +119,7 @@ Note that `localhost` is required, the value itself is ignored and can be anythi ## Type mapping between MySQL to Prisma schema -The MySQL connector maps the [scalar types](..//prisma-schema/data-model#scalar-types) from the Prisma [data model](..//prisma-schema/data-model) as follows to native column types: +The MySQL connector maps the [scalar types](../prisma-schema/data-model#scalar-types) from the Prisma [data model](../prisma-schema/data-model) as follows to native column types: ### Prisma Migrate diff --git a/content/03-reference/02-database-connectors/05-sqlite.mdx b/content/03-reference/02-database-connectors/05-sqlite.mdx index dad055c3ed..2ffb48dec0 100644 --- a/content/03-reference/02-database-connectors/05-sqlite.mdx +++ b/content/03-reference/02-database-connectors/05-sqlite.mdx @@ -1,7 +1,7 @@ --- title: 'SQLite' -metaTitle: '' -metaDescription: '' +metaTitle: 'SQLite database connector (Reference)' +metaDescription: 'This page explains how Prisma can connect to a SQLite database using the SQLite database connector.' --- ## Overview @@ -10,7 +10,7 @@ The SQLite data source connector connects Prisma to a [SQLite](https://www.sqlit ## Example -To connect to a SQLite database file, you need to configure a [`datasource`]() block in your [schema file](): +To connect to a SQLite database file, you need to configure a [`datasource`](../prisma-schema/data-sources) block in your [schema file](../prisma-schema/prisma-schema-file): ```prisma datasource sqlite { @@ -26,7 +26,7 @@ The fields passed to the `datasource` block are: ## Data model mapping -The SQLite connector maps the [scalar types](..//prisma-schema/data-model#scalar-types) from the [data model](..//prisma-schema/data-model) to native column types as follows: +The SQLite connector maps the [scalar types](../prisma-schema/data-model#scalar-types) from the [data model](../prisma-schema/data-model) to native column types as follows: | Data model | SQLite | | ---------- | --------- | diff --git a/content/03-reference/03-more/01-editor-setup.mdx b/content/03-reference/03-more/01-editor-setup.mdx index 60bbab76b5..9c12e2a307 100644 --- a/content/03-reference/03-more/01-editor-setup.mdx +++ b/content/03-reference/03-more/01-editor-setup.mdx @@ -1,15 +1,15 @@ --- title: 'Editor setup' -metaTitle: '' -metaDescription: '' +metaTitle: 'Editor and IDE setup (Reference)' +metaDescription: 'Learn how to configure your editor and IDEs for an optimal developer experience with Prisma.' --- ## Overview This page describes how you can configure your editor for an optimal developer experience when using Prisma. -If you don't see you editor here, please [open a feature request]() and ask for dedicated support for your editor (e.g. for syntax highlighting and auto-formatting). +If you don't see you editor here, please [open a feature request](https://github.com/prisma/prisma2/issues/new?assignees=&labels=&template=feature_request.md&title=) and ask for dedicated support for your editor (e.g. for syntax highlighting and auto-formatting). ## VS Code -You can install the [Prisma VS Code extension](). +You can install the [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma). diff --git a/content/03-reference/03-more/02-telemetry.mdx b/content/03-reference/03-more/02-telemetry.mdx index f2822f2a18..9b9ee92458 100644 --- a/content/03-reference/03-more/02-telemetry.mdx +++ b/content/03-reference/03-more/02-telemetry.mdx @@ -1,7 +1,7 @@ --- title: 'Telemetry' -metaTitle: '' -metaDescription: '' +metaTitle: 'Telemetry (Reference)' +metaDescription: 'Thiis page explains how Prisma uses telemetry features to improve the Prisma developer experience.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/01-setting-up-a-database/01-postgresql.mdx b/content/04-guides/01-database-workflows/01-setting-up-a-database/01-postgresql.mdx index 92e65326e8..35344e5d64 100644 --- a/content/04-guides/01-database-workflows/01-setting-up-a-database/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/01-setting-up-a-database/01-postgresql.mdx @@ -1,9 +1,11 @@ --- title: 'Setting up a database (PostgreSQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Set up a PostgreSQL database on Windows, Mac OS or Linux' +metaDescription: 'Learn how to set up a PostgreSQL database on Windows, Mac OS or Linux by following the step-by-step instructions in this practical guide.' --- +## Overview + This page explains how to install and configure a [PostgreSQL database server](https://www.postgresql.org/docs/current/intro-whatis.html) and the [`psql` command line client](https://www.postgresql.org/docs/current/app-psql.html). This guide will cover how to install and set up these components on your computer for local access. This guide will cover the following platforms: diff --git a/content/04-guides/01-database-workflows/01-setting-up-a-database/02-mysql.mdx b/content/04-guides/01-database-workflows/01-setting-up-a-database/02-mysql.mdx index 38b9a90c03..556c86007d 100644 --- a/content/04-guides/01-database-workflows/01-setting-up-a-database/02-mysql.mdx +++ b/content/04-guides/01-database-workflows/01-setting-up-a-database/02-mysql.mdx @@ -1,9 +1,11 @@ --- title: 'Setting up a database (MySQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Set up a MySQL database on Windows, Mac OS or Linux' +metaDescription: 'Learn how to set up a MySQL database on Windows, Mac OS or Linux by following the step-by-step instructions in this practical guide.' --- +## Overview + This page explains how to install and configure the [MySQL database server](https://dev.mysql.com/doc/refman/8.0/en/mysqld.html), and the [`mysql` command line client](https://dev.mysql.com/doc/refman/8.0/en/mysql.html). This guide will cover how to install and set up these components on your computer for local access. This guide will cover the following platforms: diff --git a/content/04-guides/01-database-workflows/01-setting-up-a-database/03-sqlite.mdx b/content/04-guides/01-database-workflows/01-setting-up-a-database/03-sqlite.mdx index d64d98fce5..9da9a5ed3a 100644 --- a/content/04-guides/01-database-workflows/01-setting-up-a-database/03-sqlite.mdx +++ b/content/04-guides/01-database-workflows/01-setting-up-a-database/03-sqlite.mdx @@ -1,9 +1,11 @@ --- title: 'Setting up a database (SQLite)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Set up a SQLite database on Windows, Mac OS or Linux' +metaDescription: 'Learn how to set up a SQLite database on Windows, Mac OS or Linux by following the step-by-step instructions in this practical guide.' --- +## Overview + This page explains how to set up [SQLite](https://www.sqlite.org/index.html) on your computer. This guide will cover the following platforms: diff --git a/content/04-guides/01-database-workflows/02-import-and-export-data/01-postgresql.mdx b/content/04-guides/01-database-workflows/02-import-and-export-data/01-postgresql.mdx index 8bbd84cd25..eded12708b 100644 --- a/content/04-guides/01-database-workflows/02-import-and-export-data/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/02-import-and-export-data/01-postgresql.mdx @@ -1,7 +1,7 @@ --- -title: 'Importing and exporting data (PostgreSQL)' -metaTitle: '' -metaDescription: '' +title: 'Import and export data (PostgreSQL)' +metaTitle: 'Import and export data with a PostgreSQL database' +metaDescription: 'Learn how to import and export data with a PostgreSQL database.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/02-import-and-export-data/02-mysql.mdx b/content/04-guides/01-database-workflows/02-import-and-export-data/02-mysql.mdx index 2b13d14c4a..8f46f3679a 100644 --- a/content/04-guides/01-database-workflows/02-import-and-export-data/02-mysql.mdx +++ b/content/04-guides/01-database-workflows/02-import-and-export-data/02-mysql.mdx @@ -1,7 +1,7 @@ --- title: 'Importing and exporting data (MySQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Import and export data with a MySQL database' +metaDescription: 'Learn how to import and export data with a MySQL database.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/02-import-and-export-data/03-sqlite.mdx b/content/04-guides/01-database-workflows/02-import-and-export-data/03-sqlite.mdx index 838f74308d..1e4568ba15 100644 --- a/content/04-guides/01-database-workflows/02-import-and-export-data/03-sqlite.mdx +++ b/content/04-guides/01-database-workflows/02-import-and-export-data/03-sqlite.mdx @@ -1,7 +1,7 @@ --- title: 'Importing and exporting data (SQLite)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Import and export data with a SQLite database' +metaDescription: 'Learn how to import and export data with a SQLite database.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/01-postgresql.mdx b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/01-postgresql.mdx index ac3bd552c8..51c769fa58 100644 --- a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/01-postgresql.mdx @@ -1,7 +1,7 @@ --- title: 'Unique constraints and indexes (PostgreSQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Unique constraints and indexes with Prisma and PostgreSQL' +metaDescription: 'Learn how to configure unique constraints and indexes with Prisma and PostgreSQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/02-mysql.mdx b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/02-mysql.mdx index a8a1e1df33..7df29539b9 100644 --- a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/02-mysql.mdx +++ b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/02-mysql.mdx @@ -1,7 +1,7 @@ --- title: 'Unique constraints and indexes (MySQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Unique constraints and indexes with Prisma and MySQL' +metaDescription: 'Learn how to configure unique constraints and indexes with Prisma and MySQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/03-sqlite.mdx b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/03-sqlite.mdx index 31a2226124..43c946c145 100644 --- a/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/03-sqlite.mdx +++ b/content/04-guides/01-database-workflows/04-unique-constraints-and-indexes/03-sqlite.mdx @@ -1,7 +1,8 @@ --- title: 'Unique constraints and indexes (SQLite)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Unique constraints and indexes with Prisma and SQLite' +metaDescription: 'Learn how to configure unique constraints and indexes with Prisma and SQLite by following the step-by-step instructions in this practical guide.' + --- ## Overview diff --git a/content/04-guides/01-database-workflows/05-foreign-keys/01-postgresql.mdx b/content/04-guides/01-database-workflows/05-foreign-keys/01-postgresql.mdx index 741ca99ecd..e74ab9eb94 100644 --- a/content/04-guides/01-database-workflows/05-foreign-keys/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/05-foreign-keys/01-postgresql.mdx @@ -1,7 +1,7 @@ --- title: 'Foreign keys / Relations (PostgreSQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure foreign keys with Prisma and PostgreSQL' +metaDescription: 'Learn how to configure foreign keys with Prisma and PostgreSQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/05-foreign-keys/02-mysql.mdx b/content/04-guides/01-database-workflows/05-foreign-keys/02-mysql.mdx index af06fb92d4..e5a9275095 100644 --- a/content/04-guides/01-database-workflows/05-foreign-keys/02-mysql.mdx +++ b/content/04-guides/01-database-workflows/05-foreign-keys/02-mysql.mdx @@ -1,7 +1,7 @@ --- title: 'Foreign keys / Relations (MySQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure foreign keys with Prisma and MySQL' +metaDescription: 'Learn how to configure foreign keys with Prisma and MySQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/05-foreign-keys/03-sqlite.mdx b/content/04-guides/01-database-workflows/05-foreign-keys/03-sqlite.mdx index 3a1e2a86d8..6ecea401f1 100644 --- a/content/04-guides/01-database-workflows/05-foreign-keys/03-sqlite.mdx +++ b/content/04-guides/01-database-workflows/05-foreign-keys/03-sqlite.mdx @@ -1,7 +1,7 @@ --- title: 'Foreign keys / Relations (SQLite)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure foreign keys with Prisma and SQLite' +metaDescription: 'Learn how to configure foreign keys with Prisma and SQLite by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/06-cascading-deletes/01-postgresql.mdx b/content/04-guides/01-database-workflows/06-cascading-deletes/01-postgresql.mdx index c8df264ac7..ad759cff95 100644 --- a/content/04-guides/01-database-workflows/06-cascading-deletes/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/06-cascading-deletes/01-postgresql.mdx @@ -1,7 +1,7 @@ --- title: 'Cascading deletes (PostgreSQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure cascading deletes with Prisma and PostgreSQL' +metaDescription: 'Learn how to configure cascading deletes with Prisma and PostgreSQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/06-cascading-deletes/02-mysql.mdx b/content/04-guides/01-database-workflows/06-cascading-deletes/02-mysql.mdx index f94d17ed0d..cde0265bde 100644 --- a/content/04-guides/01-database-workflows/06-cascading-deletes/02-mysql.mdx +++ b/content/04-guides/01-database-workflows/06-cascading-deletes/02-mysql.mdx @@ -1,7 +1,7 @@ --- title: 'Cascading deletes (MySQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure cascading deletes with Prisma and MySQL' +metaDescription: 'Learn how to configure cascading deletes with Prisma and MySQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/06-cascading-deletes/03-sqlite.mdx b/content/04-guides/01-database-workflows/06-cascading-deletes/03-sqlite.mdx index c634df736d..7b2f47f05c 100644 --- a/content/04-guides/01-database-workflows/06-cascading-deletes/03-sqlite.mdx +++ b/content/04-guides/01-database-workflows/06-cascading-deletes/03-sqlite.mdx @@ -1,7 +1,7 @@ --- title: 'Cascading deletes (SQLite)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Configure cascading deletes with Prisma and SQLite' +metaDescription: 'Learn how to configure cascading deletes with Prisma and SQLite by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/01-database-workflows/07-data-validation/01-postgresql.mdx b/content/04-guides/01-database-workflows/07-data-validation/01-postgresql.mdx index 27c24b35cc..541bbfbb58 100644 --- a/content/04-guides/01-database-workflows/07-data-validation/01-postgresql.mdx +++ b/content/04-guides/01-database-workflows/07-data-validation/01-postgresql.mdx @@ -1,7 +1,7 @@ --- title: 'Data validation with CHECK constraints (PostgreSQL)' -metaTitle: '' -metaDescription: '' +metaTitle: 'Data validation with CHECK constraints (PostgreSQL)' +metaDescription: 'Learn how to configure CHECK constraints for data validation with Prisma and PostgreSQL by following the step-by-step instructions in this practical guide.' --- ## Overview diff --git a/content/04-guides/02-deployment/01-deploying-to-zeit-now.mdx b/content/04-guides/02-deployment/01-deploying-to-zeit-now.mdx index a8fd18a91c..4e4e7bc455 100644 --- a/content/04-guides/02-deployment/01-deploying-to-zeit-now.mdx +++ b/content/04-guides/02-deployment/01-deploying-to-zeit-now.mdx @@ -1,7 +1,7 @@ --- title: 'Deploying to ZEIT Now' -metaTitle: '' -metaDescription: '' +metaTitle: 'Deploying to ZEIT Now' +metaDescription: 'Learn how to deploy Node.js and TypeScript that are using Prisma Client to ZEIT Now.' --- ## Overview diff --git a/content/04-guides/02-deployment/02-deploying-to-aws-lambda.mdx b/content/04-guides/02-deployment/02-deploying-to-aws-lambda.mdx index 81b1274717..f3d173fd2c 100644 --- a/content/04-guides/02-deployment/02-deploying-to-aws-lambda.mdx +++ b/content/04-guides/02-deployment/02-deploying-to-aws-lambda.mdx @@ -1,7 +1,7 @@ --- title: 'Deploying to AWS Lambda' -metaTitle: '' -metaDescription: '' +metaTitle: 'Deploying to AWS Lambda' +metaDescription: 'Learn how to deploy Node.js and TypeScript that are using Prisma Client to AWS Lambda.' --- Coming 🔜 diff --git a/content/04-guides/02-deployment/04-deploying-to-netlify.mdx b/content/04-guides/02-deployment/04-deploying-to-netlify.mdx index 2c36afa277..e27ae02d7e 100644 --- a/content/04-guides/02-deployment/04-deploying-to-netlify.mdx +++ b/content/04-guides/02-deployment/04-deploying-to-netlify.mdx @@ -1,9 +1,11 @@ --- title: 'Deploying to Netlify' -metaTitle: '' -metaDescription: 'A guide to deploying Prisma 2 to Netlify' +metaTitle: 'Deploying to Netlify' +metaDescription: 'Learn how to deploy Node.js and TypeScript that are using Prisma Client to Netlify.' --- +## Overview + In this guide, you will set up and deploy a serverless Node.js application to [Netlify](https://www.netlify.com/). The application will expose a REST API and use Prisma Client to handle fetching, creating, and deleting records from a database. Netlify is a cloud platform for continuous deployment, static sites, and serverless functions. Netlify integrates seamlessly with GitHub for automatic deployments upon commits. In this guide, you will use this approach to create a CI/CD pipeline that deploys your application from a GitHub repository. diff --git a/content/05-more/01-about-the-docs.mdx b/content/05-more/01-about-the-docs.mdx index 974c033157..8fdba53ffa 100644 --- a/content/05-more/01-about-the-docs.mdx +++ b/content/05-more/01-about-the-docs.mdx @@ -1,7 +1,7 @@ --- title: 'About the docs' -metaTitle: '' -metaDescription: '' +metaTitle: 'About the Prisma documentation' +metaDescription: 'This page gives a meta-overview about different topics that are relevant to better understand and navigate the Prisma documentation.' --- ## Overview diff --git a/content/05-more/02-style-guide.mdx b/content/05-more/02-style-guide.mdx index 2c466832a7..f49f556cec 100644 --- a/content/05-more/02-style-guide.mdx +++ b/content/05-more/02-style-guide.mdx @@ -1,7 +1,7 @@ --- title: 'Prisma style guide' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma documentation style guide' +metaDescription: 'The Prisma style guide contains a number of rules and conventions for the content in the Prisma documentation.' --- ## Welcome! diff --git a/content/05-more/03-supported-databases.mdx b/content/05-more/03-supported-databases.mdx index ee17f391c2..0f1fb4273b 100644 --- a/content/05-more/03-supported-databases.mdx +++ b/content/05-more/03-supported-databases.mdx @@ -1,12 +1,12 @@ --- title: 'Supported databases' -metaTitle: '' -metaDescription: '' +metaTitle: 'Databases supported by Prisma' +metaDescription: 'This page lists all the databases and their versions that are supported by Prisma.' --- ## Overview -Prisma 2 currently supports the following databases: +Prisma currently supports the following databases: | Database | Version | | ---------- | ------- | @@ -19,4 +19,4 @@ Prisma 2 currently supports the following databases: | MariaDB | 10 | | SQLite | 3.28.0 | -Note that a fixed version of SQLite is shipped with every Prisma 2 release. +Note that a fixed version of SQLite is shipped with every Prisma release. diff --git a/content/05-more/04-creating-bug-reports.mdx b/content/05-more/04-creating-bug-reports.mdx index db5bbd07b6..a326fffda0 100644 --- a/content/05-more/04-creating-bug-reports.mdx +++ b/content/05-more/04-creating-bug-reports.mdx @@ -1,7 +1,7 @@ --- -title: "Creating bug reports" -metaTitle: "" -metaDescription: "" +title: 'Creating bug reports' +metaTitle: 'Creating bug reports for Prisma' +metaDescription: 'This page explains best practices for creating bug reports for Prisma, inlcuding sharing additional debugging output and other recommendations.' --- ## Overview diff --git a/content/05-more/05-faq.mdx b/content/05-more/05-faq.mdx index 063ff700a7..b17b73d9b9 100644 --- a/content/05-more/05-faq.mdx +++ b/content/05-more/05-faq.mdx @@ -1,7 +1,7 @@ --- title: 'FAQ' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma FAQs' +metaDescription: 'Frequently asked questions (FAQ) about the Prisma tools and their ecosystem.' --- ## Can I still access my database directly (e.g. using raw SQL)? diff --git a/content/05-more/06-limitations.mdx b/content/05-more/06-limitations.mdx index 51fca8b753..2c94b44e67 100644 --- a/content/05-more/06-limitations.mdx +++ b/content/05-more/06-limitations.mdx @@ -1,7 +1,7 @@ --- title: 'Limitations' -metaTitle: '' -metaDescription: '' +metaTitle: 'Limitations' +metaDescription: 'This page lists a number of current limitations of Prisma.' --- ## Overview diff --git a/content/05-more/07-roadmap.mdx b/content/05-more/07-roadmap.mdx index 5cfd08ac21..05a91945f3 100644 --- a/content/05-more/07-roadmap.mdx +++ b/content/05-more/07-roadmap.mdx @@ -1,6 +1,6 @@ --- title: 'Roadmap' -metaTitle: '' +metaTitle: 'Roadmap – Future Prisma Features' metaDescription: '' --- diff --git a/content/index.mdx b/content/index.mdx index 4f9d4cb624..3574cdc86f 100644 --- a/content/index.mdx +++ b/content/index.mdx @@ -1,7 +1,7 @@ --- title: 'Prisma Documentation' -metaTitle: '' -metaDescription: '' +metaTitle: 'Prisma Documentation (Concepts, Reference & Guides)' +metaDescription: 'Welcome to the Prisma documentation! Get started with Prisma and connect it to your database, read about the main Prisma concepts and explore the API reference.' --- ## Overview @@ -18,10 +18,10 @@ Welcome to the Prisma documentation! You can find an overview of the available c The **Getting started** section contains _practical guides_ to help you get started with Prisma. -- [Quickstart](./getting-started/quickstart) +- [Quickstart](./getting-started/quickstart) (5 min) - Setup Prisma - - [Add Prisma to an existing project](./getting-started/setup-prisma/add-to-an-existing-project) - - [Start from scratch (SQL migrations)](./getting-started/setup-prisma/start-from-scratch-sql-migrations) + - [Add Prisma to an existing project](./getting-started/setup-prisma/add-to-an-existing-project) (15 min) + - [Start from scratch (SQL migrations)](./getting-started/setup-prisma/start-from-scratch-sql-migrations) (15 min) --- @@ -53,8 +53,8 @@ The **Reference** section contains _technical_ information about Prisma. - [Models](./reference/tools-and-interfaces/prisma-schema/models) - [Relations](./reference/tools-and-interfaces/prisma-schema/relations) - Prisma Client - - [Generating Prisma Client](./reference/tools-and-interfaces/prisma-client/generating-prisma-client) - [API reference](./reference/tools-and-interfaces/prisma-client/api) + - [Generating Prisma Client](./reference/tools-and-interfaces/prisma-client/generating-prisma-client) - [Configuring the Prisma Client API](./reference/tools-and-interfaces/prisma-client/configuring-the-prisma-client-api) - [CRUD](./reference/tools-and-interfaces/prisma-client/crud) - [Relation queries](./reference/tools-and-interfaces/prisma-client/relation-queries) @@ -70,7 +70,7 @@ The **Reference** section contains _technical_ information about Prisma. - [Query engine](./reference/tools-and-interfaces/prisma-client/query-engine) - [Module bundlers](./reference/tools-and-interfaces/prisma-client/module-bundlers) - [Database polyfills](./reference/tools-and-interfaces/prisma-client/database-polyfills) - - [Prisma Migrate]./reference/tools-and-interfaces/prisma-migrate() + - [Prisma Migrate](./reference/tools-and-interfaces/prisma-migrate) - [Introspection](./reference/tools-and-interfaces/introspection) - Prisma CLI - [Installation](./reference/tools-and-interfaces/prisma-cli/installation) @@ -119,7 +119,7 @@ The **Guides** section contains _step-by-step tutorials_ on various topics. - Deployment - [Deploying to AWS Lambda](./guides/deployment/deploying-to-aws-lambda) - [Deploying to ZEIT Now](./guides/deployment/deploying-to-zeit-now) - - [Deploying to Netlify](./guides/deployment/deploying-to-netlify) --> + - [Deploying to Netlify](./guides/deployment/deploying-to-netlify) ---