Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ensure ctas are correct #6737

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions content/100-getting-started/01-quickstart-prismaPostgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sidebar_class_name: hidden-sidebar
dbSwitcher: ['prismaPostgres', 'sqlite']
slugSwitch: /getting-started/quickstart-
sidebar_custom_props: { badge: '5 min' }
include_cta: true
---

In this Quickstart guide, you'll learn how to get started from scratch with Prisma ORM and a **Prisma Postgres** database in a plain **TypeScript** project. It covers the following workflows:
Expand Down Expand Up @@ -148,8 +149,4 @@ Learn how to use Prisma Postgres in a fullstack app:

Check out the [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository on GitHub to see how Prisma ORM can be used with your favorite library. The repo contains examples with Express, NestJS, GraphQL as well as fullstack examples with Next.js and Vue.js, and a lot more.

These examples use SQLite by default but you can follow the instructions in the project README to switch to Prisma Postgres in a few simple steps.s

### Join the Prisma community 💚

Prisma has a huge [community](https://www.prisma.io/community) of developers. Join us on [Discord](https://discord.com/invite/KQyTW2H5ca) or ask questions using [GitHub Discussions](https://github.com/prisma/prisma/discussions).
These examples use SQLite by default but you can follow the instructions in the project README to switch to Prisma Postgres in a few simple steps.
7 changes: 2 additions & 5 deletions content/100-getting-started/01-quickstart-sqlite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sidebar_class_name: hidden-sidebar
dbSwitcher: ['prismaPostgres', 'sqlite']
slugSwitch: /getting-started/quickstart-
sidebar_custom_props: { badge: '5 min' }
include_cta: true
---

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.
Expand Down Expand Up @@ -452,8 +453,4 @@ The Prisma blog features comprehensive tutorials about Prisma ORM, check out our

- [Build a fullstack app with Next.js](https://www.youtube.com/watch?v=QXxy8Uv1LnQ&ab_channel=ByteGrad)
- [Build a fullstack app with Remix](https://www.prisma.io/blog/fullstack-remix-prisma-mongodb-1-7D0BfTXBmB6r) (5 parts, including videos)
- [Build a REST API with NestJS](https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0)

### Join the Prisma community 💚

Prisma has a huge [community](https://www.prisma.io/community) of developers. Join us on [Discord](https://discord.com/invite/KQyTW2H5ca) or ask questions using [GitHub Discussions](https://github.com/prisma/prisma/discussions).
- [Build a REST API with NestJS](https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metaDescription: 'Start building a Prisma application with a Prisma Postgres dat
staticLink: true
tocDepth: 3
toc: true
include_cta: true
---

This page provides a step-by-step guide for Prisma Postgres after setting it up with `prisma init --db`:
Expand Down Expand Up @@ -468,8 +469,4 @@ Learn how to use Prisma Postgres in a fullstack app:

Check out the [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository on GitHub to see how Prisma ORM can be used with your favorite library. The repo contains examples with Express, NestJS, GraphQL as well as fullstack examples with Next.js and Vue.js, and a lot more.

These examples use SQLite by default but you can follow the instructions in the project README to switch to Prisma Postgres in a few simple steps.s

### Join the Prisma community 💚

Prisma has a huge [community](https://www.prisma.io/community) of developers. Join us on [Discord](https://discord.com/invite/KQyTW2H5ca) or ask questions using [GitHub Discussions](https://github.com/prisma/prisma/discussions).
These examples use SQLite by default but you can follow the instructions in the project README to switch to Prisma Postgres in a few simple steps.
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ If you were using [Prisma Migrate](/orm/prisma-migrate/getting-started) before:

Congratulations! You've successfully migrated your MySQL database to Prisma Postgres and configured your Prisma project. Your migration tutorial is now complete.

If you encounter any issues during the migration, please don't hesitate to reach out to us on [Discord](https://pris.ly/discord) or via [X](https://x.com/prisma).
If you encounter any issues during the migration, please don't hesitate to reach out to us on [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=conclusion) or via [X](https://pris.ly/x).
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Development of Prisma ORM's open source tools is happening in the open. Most of

### ... you want to be part of an awesome community

Prisma has a lively [community](https://www.prisma.io/community) that you can find on [Discord](https://pris.ly/discord). We also regularly host Meetups, conferences and other developer-focused events. Join us!
Prisma has a lively [community](https://www.prisma.io/community) that you can find on [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text). We also regularly host Meetups, conferences and other developer-focused events. Join us!

## Prisma ORM likely is _not_ a good fit for you if ...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Based on some testing, we found the following:
- You can deploy using the PlanetScale or Neon Serverless Driver.
- Traditional PostgreSQL deployments using `pg` don't work because `pg` itself currently does not work with `@cloudflare/next-on-pages` (see [here](https://github.com/cloudflare/next-on-pages/issues/605)).

Feel free to reach out to us on [Discord](https://pris.ly/discord) if you find that anything has changed about this.
Feel free to reach out to us on [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text) if you find that anything has changed about this.

### Set `PRISMA_CLIENT_FORCE_WASM=1` when running locally with `node`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metaDescription: 'Learn how to upgrade existing Prisma 1 projects with nexus-pri

## Overview

> **Note**: This guide is not fully up-to-date as it currently uses the [deprecated](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/1039) version of the [`nexus-plugin-prisma`](https://github.com/graphql-nexus/nexus-plugin-prisma). While this is still functional, it is recommended to use the new [`nexus-prisma`](https://github.com/graphql-nexus/nexus-prisma/) library or an alternative code-first GraphQL library like [Pothos](https://pothos-graphql.dev/) going forward. If you have any questions, feel free to share them on our [Discord](https://pris.ly/discord).
> **Note**: This guide is not fully up-to-date as it currently uses the [deprecated](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/1039) version of the [`nexus-plugin-prisma`](https://github.com/graphql-nexus/nexus-plugin-prisma). While this is still functional, it is recommended to use the new [`nexus-prisma`](https://github.com/graphql-nexus/nexus-prisma/) library or an alternative code-first GraphQL library like [Pothos](https://pothos-graphql.dev/) going forward. If you have any questions, feel free to share them on our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=intro-text).

This upgrade guide describes how to upgrade a project that's based on [Prisma 1](https://github.com/prisma/prisma1) and uses [`nexus`](https://www.npmjs.com/package/nexus) (< v0.12.0) or [`@nexus/schema`](https://github.com/graphql-nexus/nexus) together with [`nexus-prisma`](https://www.npmjs.com/package/nexus-prisma) (< v4.0.0) to implement a GraphQL server.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metaDescription: 'Learn how to upgrade existing Prisma 1 projects with prisma-bi

## Overview

> **Note**: This guide is not fully up-to-date as it currently uses the [deprecated](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/1039) version of the [`nexus-plugin-prisma`](https://github.com/graphql-nexus/nexus-plugin-prisma). While this is still functional, it is recommended to use the new [`nexus-prisma`](https://github.com/graphql-nexus/nexus-prisma) library or an alternative code-first GraphQL library like [Pothos](https://pothos-graphql.dev/) going forward. If you have any questions, join us on our [Discord](https://pris.ly/discord).
> **Note**: This guide is not fully up-to-date as it currently uses the [deprecated](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/1039) version of the [`nexus-plugin-prisma`](https://github.com/graphql-nexus/nexus-plugin-prisma). While this is still functional, it is recommended to use the new [`nexus-prisma`](https://github.com/graphql-nexus/nexus-prisma) library or an alternative code-first GraphQL library like [Pothos](https://pothos-graphql.dev/) going forward. If you have any questions, join us on our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=intro-text).

This upgrade guide describes how to migrate a Node.js project that's based on [Prisma 1](https://github.com/prisma/prisma1) and uses `prisma-binding` to implement a GraphQL server.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This guide helps you migrate from the Prisma 1 MongoDB Beta to MongoDB on Prisma

The scope of this guide is to give you the workflow necessary to perform the migration and highlight some of the problems you might encounter.

We unfortunately can't cover all possible scenarios or changes required, but this guide should help you on your journey. Join [our Discord](https://pris.ly/discord) or create an issue [on Github](https://github.com/prisma/prisma1/issues/new/choose) with any questions.
We unfortunately can't cover all possible scenarios or changes required, but this guide should help you on your journey. Join [our Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=intro-text) or create an issue [on Github](https://github.com/prisma/prisma1/issues/new/choose) with any questions.

<Admonition type="warning">
Perform this migration on your staging environment before trying this in
Expand Down
10 changes: 3 additions & 7 deletions content/200-orm/800-more/350-ai-tools/100-cursor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: 'Cursor'
metaTitle: 'Tips to use Cursor with Prisma ORM'
metaDescription: 'Learn tips and best practices for using Prisma ORM with the Cursor AI code editor.'
hide_table_of_contents: true
include_cta: true
---

[Cursor](https://www.cursor.com/) is an AI-powered code editor designed to boost productivity by automating repetitive coding tasks. When paired with Prisma, a robust and type-safe toolkit for database workflows, it becomes a powerful solution for managing and optimizing database schemas, queries, and data seeding.
Expand All @@ -15,7 +16,7 @@ This guide provides detailed instructions for effectively using Prisma with Curs

:::note

While this guide is focused on Cursor, these patterns should work with any AI editor. [Let us know on X](https://x.com/prisma) if you'd like us to create guides for your preferred tool!
While this guide is focused on Cursor, these patterns should work with any AI editor. [Let us know on X](https://pris.ly/x?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text) if you'd like us to create guides for your preferred tool!

:::

Expand Down Expand Up @@ -509,9 +510,4 @@ main()

In summary, using Cursor with Prisma simplifies your workflow, from generating schemas and queries to writing seed scripts. By following this guide, you can save time, reduce errors, and focus on building your application.

Learn more about Cursor in their [official documentation](https://docs.cursor.com/context/@-symbols/basic).

For more information and updates from Prisma:
- [Prisma documentation](/)
- [Join our Discord community](https://discord.com/invite/prisma)
- [Follow us on Twitter](https://twitter.com/prisma)
Learn more about Cursor in their [official documentation](https://docs.cursor.com/context/@-symbols/basic).
1 change: 1 addition & 0 deletions content/200-orm/800-more/350-ai-tools/200-tabnine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: 'Tabnine'
metaTitle: 'Tips to use Tabnine with Prisma ORM'
metaDescription: 'Learn tips and best practices for using Prisma ORM with the Tabnine AI code editor.'
toc_max_heading_level: 2
include_cta: true
---

[Tabnine](https://www.tabnine.com/) is a an AI software development platform that comes as an [extension](https://www.tabnine.com/install/) for your IDE (e.g. VS Code, WebStorm, IntelliJ, ...).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 'TypeORM'
metaTitle: 'Prisma ORM vs TypeORM'
metaDescription: 'Learn how Prisma compares to TypeORM.'
include_cta: true
---

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](/guides/migrate-from-typeorm).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 'Sequelize'
metaTitle: 'Prisma ORM vs Sequelize'
metaDescription: 'Learn how Prisma ORM compares to Sequelize.'
include_cta: true
---

<TopBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 'Mongoose'
metaTitle: 'Prisma ORM vs Mongoose'
metaDescription: 'Learn how Prisma ORM compares to Mongoose.'
include_cta: true
---

<TopBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 'Drizzle'
metaTitle: 'Prisma ORM vs Drizzle'
metaDescription: 'Learn how Prisma ORM compares to Drizzle.'
include_cta: true
---

<TopBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 'Using the Nuxt Prisma Module'
metaTitle: 'Add Prisma ORM Easily to Your Nuxt Apps'
metaDescription: 'Learn how to easily add Prisma ORM to your Nuxt apps, use its features, and understand its limitations.'
include_cta: true
---

The Nuxt Prisma module simplifies the integration of Prisma ORM into your Nuxt applications.
Expand Down Expand Up @@ -298,7 +299,7 @@ The `usePrismaClient` module does not currently allow for configuration of `Pris

### The `usePrismaClient` composable is not supported in edge runtimes

The `usePrismaClient` composable currently relies on a `PrismaClient` instance that does not work in edge runtimes. If you require edge support for the composable, please let us know on [Discord](https://pris.ly/discord) or [GitHub](https://github.com/prisma/nuxt-prisma).
The `usePrismaClient` composable currently relies on a `PrismaClient` instance that does not work in edge runtimes. If you require edge support for the composable, please let us know on [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text) or [GitHub](https://github.com/prisma/nuxt-prisma).

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion content/300-accelerate/500-known-limitations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ toc: true

<TopBlock>

Below are descriptions of known limitations when using Accelerate. If you encounter any additional ones, please share them with us via [Discord](https://pris.ly/discord).
Below are descriptions of known limitations when using Accelerate. If you encounter any additional ones, please share them with us via [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=intro-text).

</TopBlock>

Expand Down
4 changes: 2 additions & 2 deletions content/300-accelerate/600-faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ Accelerate's global cache feature may not be a good fit for your app if:

- Your app is exclusively used within a specific region and both your application server and database are situated in that same region on the same network. For example, database queries will likely be much faster if your application server and database are in the same region and network. However, If your application server is in different regions or networks from your database, Accelerate will speed up your queries because the data will be cached in the closest data center to your application.

- You _only_ need a general-purpose cache. Accelerate is a connection pooler and a _specialized cache_ that only caches your database query responses in code. A general-purpose cache, such as Redis, would allow you to cache data from multiple sources, such as external APIs, which Accelerate currently doesn't support. If general-purpose caching interests you, please share your feedback with us via our [Discord](https://pris.ly/discord).
- You _only_ need a general-purpose cache. Accelerate is a connection pooler and a _specialized cache_ that only caches your database query responses in code. A general-purpose cache, such as Redis, would allow you to cache data from multiple sources, such as external APIs, which Accelerate currently doesn't support. If general-purpose caching interests you, please share your feedback with us via our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text).

- Your application data _always_ needs to be up-to-date on retrieval, making it difficult to establish a reasonable cache strategy.

Even without using Accelerate's global cache, you can still greatly benefit from Accelerate by using its connection pool, especially in serverless or edge functions, where it is difficult to manage and scale database connections. You can learn more about the serverless challenge [here](/orm/prisma-client/setup-and-configuration/databases-connections#the-serverless-challenge).

## Can I use Accelerate with other ORMs/query builders/drivers?

No. We currently do not have any plans for supporting other ORMs/query builders or drivers. However, if you're interested in support for other libraries, feel free to reach out and let us know in our [Discord](https://pris.ly/discord) community in the `#help-and-questions` channel.
No. We currently do not have any plans for supporting other ORMs/query builders or drivers. However, if you're interested in support for other libraries, feel free to reach out and let us know in our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text) community in the `#help-and-questions` channel.

## What is the maximum allowed value for the `ttl` parameter when configuring `cacheStrategy`?

Expand Down
2 changes: 1 addition & 1 deletion content/300-accelerate/700-feedback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ hide_table_of_contents: true

<TopBlock>

You can submit any feedback about Accelerate in our [Discord server](https://pris.ly/discord).
You can submit any feedback about Accelerate in our [Discord server](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=intro-text).

</TopBlock>
4 changes: 2 additions & 2 deletions content/500-platform/30-maturity-levels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If a feature on the Prisma Data Platform is labeled as **Early Access**:
- We want to gather more feedback and adjust the solution as necessary, knowing that users are prepared for significant breaking changes
- We reserve ourselves the right to throttle or remove access to a feature in Early Access to preserve the stability of the platform, or enforcing its use to stay within the scope defined in our [Terms of Service](https://pris.ly/terms).

As always, your feedback in our [Discord](https://pris.ly/discord) is invaluable to shape the design of the features. This will help us ensure that they can solve your problems in the best way possible.
As always, your feedback in our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text) is invaluable to shape the design of the features. This will help us ensure that they can solve your problems in the best way possible.

### Preview

Expand All @@ -31,7 +31,7 @@ If a feature on the Prisma Data Platform is labeled as **Preview**:
- We have increased the stability of the software compared to the Early Access phase. While there might still be some issues, they should be less frequent and less critical.
- We use the Preview phase as a final stress test to ensure the product is ready for heavy production workloads.

We recommend testing the product in a staging environment and welcome any feedback in our [Discord](https://pris.ly/discord). This will assist us in improving the product for its final release.
We recommend testing the product in a staging environment and welcome any feedback in our [Discord](https://pris.ly/discord?utm_source=docs&utm_campaign=tracking-cta&utm_medium=inline-text). This will assist us in improving the product for its final release.

### General Availability

Expand Down
Loading
Loading