Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Custom & type-safe queries'
metaDescription: 'Learn how to use SafeQL and Prisma Client extensions to work around features not natively supported by Prisma, such as PostGIS.'
---

<TopBlock title={frontMatter.title} />

## 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`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Raw database access with Prisma Client.'
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

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.

This may happen for several reasons, e.g., because you need to optimize the performance of a specific query or because your data requirements can't be expressed by Prisma Client's query API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Prisma Client extensions | Shared packages & examples'
metaDescription: 'Explore the Prisma Client extensions that have been built by Prisma and its community'
---

<TopBlock title={frontMatter.title} />

## Extensions made by Prisma

The following is a list of extensions we've built at Prisma:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ 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.'
---

<TopBlock title={frontMatter.title} />

## Overview

_Module bundlers_ bundle JavaScript modules into a single JavaScript file. Most bundlers work by copying over the JavaScript code from a variety of source files into the target file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tocDepth: 3
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections depth="3" />
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Learn everything you need to know about Prisma Migrate.'
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

<Admonition type="info">

**Does not apply for MongoDB**<br/>Instead of `migrate dev` and related commands, use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) for [MongoDB](/orm/overview/databases/mongodb).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Learn about the mental model and basic building blocks of Pris
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
2 changes: 2 additions & 0 deletions docs/200-orm/300-prisma-migrate/300-workflows/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Learn about important Prisma Migrate workflows, like seeding,
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
2 changes: 2 additions & 0 deletions docs/200-orm/500-reference/100-prisma-schema-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tocDepth: 3
toc: true
---

<TopBlock title={frontMatter.title} />

## `datasource`

Defines a [data source](/orm/prisma-schema/overview/data-sources) in the Prisma schema.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'How to upgrade from Prisma 1 to Prisma ORM version 2.x and later'
metaDescription: 'Learn how to upgrade your Prisma 1 project to Prisma ORM version 2.x and later'
---

<TopBlock title={frontMatter.title} />

## Overview

This page helps you make an informed decision on when and how to upgrade from Prisma 1 to Prisma ORM version 2._x_ and later.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Upgrade Prisma 1 with nexus-prisma to @nexus/schema'
metaDescription: 'Learn how to upgrade existing Prisma 1 projects with nexus-prisma to Prisma ORM 2 and Nexus.'
---

<TopBlock title={frontMatter.title} />

## 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/prisma/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 drop them in the [`#prisma1-community`](https://app.slack.com/client/T0MQBS8JG/C0152UA4DH9) channel in the [Prisma Slack](https://slack.prisma.io).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Upgrading from Prisma 1 with prisma-binding to Nexus'
metaDescription: 'Learn how to upgrade existing Prisma 1 projects with prisma-binding to Prisma ORM 2.0 and Nexus.'
---

<TopBlock title={frontMatter.title} />

## 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/prisma/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 drop them in the [`#prisma1-community`](https://app.slack.com/client/T0MQBS8JG/C0152UA4DH9) channel in the [Prisma Slack](https://slack.prisma.io).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Upgrading from Prisma 1 with prisma-binding to SDL-first'
metaDescription: 'Learn how to upgrade existing Prisma 1 projects with prisma-binding to Prisma ORM 2 (SDL-first).'
---

<TopBlock title={frontMatter.title} />

## Overview

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 @@ -4,6 +4,8 @@ metaTitle: 'Upgrading a REST API from Prisma 1 to Prisma ORM 2'
metaDescription: 'Learn how to upgrade a REST API from Prisma 1 to Prisma ORM 2.'
---

<TopBlock title={frontMatter.title} />

## Overview

This upgrade guide describes how to migrate a Node.js project that's based on [Prisma 1](https://github.com/prisma/prisma1) and uses the [Prisma 1 client](https://v1.prisma.io/docs/1.34/prisma-client/) to implement a REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Upgrade from the Prisma 1 MongoDB Beta to Prisma ORM 2 or later'
metaDescription: 'Learn how to upgrade your MongoDB application running Prisma 1 to Prisma ORM 2 or later.'
---

<TopBlock title={frontMatter.title} />

## Introduction

This guide helps you migrate from the Prisma 1 MongoDB Beta to MongoDB on Prisma ORM 2 or later. To learn more about the differences between Prisma 1 and Prisma ORM 2.x and later, refer to [this document](/orm/more/upgrade-guides/upgrade-from-prisma-1/how-to-upgrade#main-differences-between-prisma-1-and-prisma-orm-version-2x-and-later).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ staticLink: false
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
2 changes: 2 additions & 0 deletions docs/200-orm/800-more/300-upgrade-guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Learn how to upgrade Prisma ORM versions.'
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
2 changes: 2 additions & 0 deletions docs/200-orm/800-more/450-migrating-to-prisma/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'How to migrate to Prisma ORM from other ORMs and query builder
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metaTitle: 'Creating bug reports for Prisma ORM'
metaDescription: 'This page explains best practices for creating bug reports for Prisma ORM, including sharing additional debugging output and other recommendations.'
---

<TopBlock title={frontMatter.title} />

## Overview

You can help us improve Prisma ORM by creating **bug reports**. When creating a bug report, it's important that you include as much information as possible about your issue. That way, it's easier to reproduce.
Expand Down
2 changes: 2 additions & 0 deletions docs/200-orm/800-more/600-help-and-troubleshooting/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metaDescription: 'Help & troubleshooting in Prisma ORM projects.'
hide_table_of_contents: true
---

<TopBlock title={frontMatter.title} />

## In this section

<Subsections />
2 changes: 1 addition & 1 deletion src/theme/DocCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import isInternalUrl from '@docusaurus/isInternalUrl';
import {translate} from '@docusaurus/Translate';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
import styles from './styles.module.scss';
function CardContainer({href, children}) {
return (
<Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
transition-property: border;
color: var(--main-font-color);
background-color: transparent;
text-decoration: none !important;
}

.cardContainer:hover {
Expand Down