Skip to content

Commit 9b159ec

Browse files
fix broken links
1 parent 2710e37 commit 9b159ec

59 files changed

Lines changed: 221 additions & 176 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/GettingStarted/index.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,36 @@ export const PrismaPostgres = ({ color, height, width }: any) => (
8282
</svg>
8383
);
8484

85+
export const Plus = ({ color, width, height }: any) => (
86+
<svg
87+
xmlns="http://www.w3.org/2000/svg"
88+
height={height ? height : "16"}
89+
width={width ? width : "14"}
90+
viewBox="0 0 448 512"
91+
style={{ marginRight: `4px`, transform: `translateY(2px)` }}
92+
>
93+
<path
94+
fill={color ? color : "currentColor"}
95+
d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"
96+
/>
97+
</svg>
98+
);
99+
100+
export const Plug = ({ color, width, height }: any) => (
101+
<svg
102+
xmlns="http://www.w3.org/2000/svg"
103+
height={height ? height : "16"}
104+
width={width ? width : "14"}
105+
viewBox="0 0 384 512"
106+
style={{ marginRight: `4px`, transform: `translateY(2px)` }}
107+
>
108+
<path
109+
fill={color ? color : "currentColor"}
110+
d="M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"
111+
/>
112+
</svg>
113+
);
114+
85115
export const BorderBoxWrapper = ({ children, ...props }) => (
86116
<div {...props} className={styles.borderBox}>
87117
{children}
@@ -123,6 +153,21 @@ export const LinkCard = ({ icon, title, desc, link, highlight }: any) => {
123153
);
124154
};
125155

156+
export const QuickstartLinkCard = ({ title, highlight, link, children }: any) => {
157+
return (
158+
<Link
159+
to={link}
160+
className={clsx(styles.linkCardWrapper, highlight && styles.linkCardHighlight)}
161+
style={highlight ? { borderColor: highlight } : {}}
162+
>
163+
<div className={styles.title}>
164+
<h6>{title}</h6>
165+
</div>
166+
<div>{children}</div>
167+
</Link>
168+
);
169+
};
170+
126171
export const Tab = ({ children, ...props }) => (
127172
<div {...props} className={styles.tab}>
128173
{children}

versioned_docs/version-6.0.0/200-orm/050-overview/500-databases/600-mongodb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ console.log(findNulls)
309309
310310
This is because `name: null` is checking for equality, and a non-existing field isn't equal to `null`.
311311
312-
To include missing fields as well, use the [`isSet` filter](/orm/reference/prisma-client-reference#isset) to explicitly search for fields which are either `null` or not set. This will return both records:
312+
To include missing fields as well, use the [`isSet` filter](/6.0/orm/reference/prisma-client-reference#isset) to explicitly search for fields which are either `null` or not set. This will return both records:
313313
314314
<CodeWithResult expanded={true}>
315315

versioned_docs/version-6.0.0/200-orm/100-prisma-schema/10-overview/02-data-sources.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ datasource db {
1515

1616
A Prisma schema can only have _one_ data source. However, you can:
1717

18-
- [Programmatically override a data source `url` when creating your `PrismaClient`](/orm/reference/prisma-client-reference#programmatically-override-a-datasource-url)
18+
- [Programmatically override a data source `url` when creating your `PrismaClient`](/6.0/orm/reference/prisma-client-reference#programmatically-override-a-datasource-url)
1919
- [Specify a different URL for Prisma Migrate's shadow database if you are working with cloud-hosted development databases](/orm/prisma-migrate/understanding-prisma-migrate/shadow-database#cloud-hosted-shadow-databases-must-be-created-manually)
2020

2121
> **Note**: Multiple provider support was removed in 2.22.0. Please see [Deprecation of provider array notation](https://github.com/prisma/prisma/issues/3834) for more information.

versioned_docs/version-6.0.0/200-orm/100-prisma-schema/20-data-model/10-models.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,20 +1164,20 @@ Refer to the [relations documentation](/orm/prisma-schema/data-model/relations)
11641164

11651165
Every model in the data model definition will result in a number of CRUD queries in the generated [Prisma Client API](/orm/prisma-client):
11661166

1167-
- [`findMany()`](/orm/reference/prisma-client-reference#findmany)
1168-
- [`findFirst()`](/orm/reference/prisma-client-reference#findfirst)
1169-
- [`findFirstOrThrow()`](/orm/reference/prisma-client-reference#findfirstorthrow)
1170-
- [`findUnique()`](/orm/reference/prisma-client-reference#findunique)
1171-
- [`findUniqueOrThrow()`](/orm/reference/prisma-client-reference#finduniqueorthrow)
1172-
- [`create()`](/orm/reference/prisma-client-reference#create)
1173-
- [`update()`](/orm/reference/prisma-client-reference#update)
1174-
- [`upsert()`](/orm/reference/prisma-client-reference#upsert)
1175-
- [`delete()`](/orm/reference/prisma-client-reference#delete)
1176-
- [`createMany()`](/orm/reference/prisma-client-reference#createmany)
1177-
- [`createManyAndReturn()`](/orm/reference/prisma-client-reference#createmanyandreturn)
1178-
- [`updateMany()`](/orm/reference/prisma-client-reference#updatemany)
1179-
- [`updateManyAndReturn()`](/orm/reference/prisma-client-reference#updatemanyandreturn)
1180-
- [`deleteMany()`](/orm/reference/prisma-client-reference#deletemany)
1167+
- [`findMany()`](/6.0/orm/reference/prisma-client-reference#findmany)
1168+
- [`findFirst()`](/6.0/orm/reference/prisma-client-reference#findfirst)
1169+
- [`findFirstOrThrow()`](/6.0/orm/reference/prisma-client-reference#findfirstorthrow)
1170+
- [`findUnique()`](/6.0/orm/reference/prisma-client-reference#findunique)
1171+
- [`findUniqueOrThrow()`](/6.0/orm/reference/prisma-client-reference#finduniqueorthrow)
1172+
- [`create()`](/6.0/orm/reference/prisma-client-reference#create)
1173+
- [`update()`](/6.0/orm/reference/prisma-client-reference#update)
1174+
- [`upsert()`](/6.0/orm/reference/prisma-client-reference#upsert)
1175+
- [`delete()`](/6.0/orm/reference/prisma-client-reference#delete)
1176+
- [`createMany()`](/6.0/orm/reference/prisma-client-reference#createmany)
1177+
- [`createManyAndReturn()`](/6.0/orm/reference/prisma-client-reference#createmanyandreturn)
1178+
- [`updateMany()`](/6.0/orm/reference/prisma-client-reference#updatemany)
1179+
- [`updateManyAndReturn()`](/6.0/orm/reference/prisma-client-reference#updatemanyandreturn)
1180+
- [`deleteMany()`](/6.0/orm/reference/prisma-client-reference#deletemany)
11811181

11821182
The operations are accessible via a generated property on the Prisma Client instance. By default the name of the property is the lowercase form of the model name, e.g. `user` for a `User` model or `post` for a `Post` model.
11831183

@@ -1196,7 +1196,7 @@ const allUsers = await prisma.user.findMany()
11961196

11971197
Prisma Client also generates **type definitions** that reflect your model structures. These are part of the generated [`@prisma/client`](/orm/prisma-client/setup-and-configuration/generating-prisma-client#the-prismaclient-npm-package) node module.
11981198

1199-
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`](/orm/reference/prisma-client-reference#select) or [`include`](/orm/reference/prisma-client-reference#include) ).
1199+
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`](/6.0/orm/reference/prisma-client-reference#select) or [`include`](/6.0/orm/reference/prisma-client-reference#include) ).
12001200

12011201
Even when using plain JavaScript, the type definitions are still included in the `@prisma/client` node module, enabling features like [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense)/autocompletion in your editor.
12021202

versioned_docs/version-6.0.0/200-orm/100-prisma-schema/20-data-model/20-relations/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const updateAuthor = await prisma.user.update({
215215
})
216216
```
217217

218-
In the underlying database, this query uses a [nested `connect` query](/orm/reference/prisma-client-reference#connect) to link the post with an `id` of 4 to the user with an `id` of 20. The query does this with the following steps:
218+
In the underlying database, this query uses a [nested `connect` query](/6.0/orm/reference/prisma-client-reference#connect) to link the post with an `id` of 4 to the user with an `id` of 20. The query does this with the following steps:
219219

220220
- The query first looks for the user with an `id` of `20`.
221221
- The query then sets the `authorID` foreign key to `20`. This links the post with an `id` of `4` to the user with an `id` of `20`.

versioned_docs/version-6.0.0/200-orm/200-prisma-client/000-setup-and-configuration/005-introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const users = await prisma.user.findMany()
157157

158158
<Admonition type="info">
159159

160-
All Prisma Client methods return an instance of [`PrismaPromise`](/orm/reference/prisma-client-reference#prismapromise-behavior) which only executes when you call `await` or `.then()` or `.catch()`.
160+
All Prisma Client methods return an instance of [`PrismaPromise`](/6.0/orm/reference/prisma-client-reference#prismapromise-behavior) which only executes when you call `await` or `.then()` or `.catch()`.
161161

162162
</Admonition>
163163

versioned_docs/version-6.0.0/200-orm/200-prisma-client/000-setup-and-configuration/010-generating-prisma-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ import { PrismaClient } from './generated/client'
120120
:::note
121121

122122

123-
For improved compatibility with ECMAScript modules (ESM) and to ensure consistent behaviour of Prisma ORM across different Node.js runtimes, you can also use the newer [`prisma-client`](/orm/prisma-schema/overview/generators#prisma-client) generator. This generator is specifically designed to handle common challenges with module resolution and runtime variations, providing a smoother integration experience and less friction with bundlers.
123+
For improved compatibility with ECMAScript modules (ESM) and to ensure consistent behaviour of Prisma ORM across different Node.js runtimes, you can also use the newer [`prisma-client`](/6.0/orm/prisma-schema/overview/generators#prisma-client) generator. This generator is specifically designed to handle common challenges with module resolution and runtime variations, providing a smoother integration experience and less friction with bundlers.
124124

125125
:::
126126

versioned_docs/version-6.0.0/200-orm/200-prisma-client/000-setup-and-configuration/015-instantiate-prisma-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const prisma = new PrismaClient()
3333

3434
:::tip
3535

36-
You can further customize `PrismaClient` with [constructor parameters](/orm/reference/prisma-client-reference#prismaclient) — for example, set [logging levels](/orm/prisma-client/observability-and-logging/logging), [transaction options](/orm/prisma-client/queries/transactions#transaction-options) or customize [error formatting](/orm/prisma-client/setup-and-configuration/error-formatting).
36+
You can further customize `PrismaClient` with [constructor parameters](/6.0/orm/reference/prisma-client-reference#prismaclient) — for example, set [logging levels](/orm/prisma-client/observability-and-logging/logging), [transaction options](/orm/prisma-client/queries/transactions#transaction-options) or customize [error formatting](/orm/prisma-client/setup-and-configuration/error-formatting).
3737

3838
:::
3939

versioned_docs/version-6.0.0/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/100-connection-management.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ tocDepth: 3
99

1010
`PrismaClient` connects and disconnects from your data source using the following two methods:
1111

12-
- [`$connect()`](/orm/reference/prisma-client-reference#connect-1)
13-
- [`$disconnect()`](/orm/reference/prisma-client-reference#disconnect-1)
12+
- [`$connect()`](/6.0/orm/reference/prisma-client-reference#connect-1)
13+
- [`$disconnect()`](/6.0/orm/reference/prisma-client-reference#disconnect-1)
1414

1515
In most cases, you **do not need to explicitly call these methods**. `PrismaClient` automatically connects when you run your first query, creates a [connection pool](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool), and disconnects when the Node.js process ends.
1616

@@ -29,7 +29,7 @@ See the [connection management guide](/orm/prisma-client/setup-and-configuration
2929

3030
## `$connect()`
3131

32-
It is not necessary to call [`$connect()`](/orm/reference/prisma-client-reference#connect-1) thanks to the _lazy connect_ behavior: The `PrismaClient` instance connects lazily when the first request is made to the API (`$connect()` is called for you under the hood).
32+
It is not necessary to call [`$connect()`](/6.0/orm/reference/prisma-client-reference#connect-1) thanks to the _lazy connect_ behavior: The `PrismaClient` instance connects lazily when the first request is made to the API (`$connect()` is called for you under the hood).
3333

3434
### Calling `$connect()` explicitly
3535

@@ -44,7 +44,7 @@ await prisma.$connect()
4444

4545
## `$disconnect()`
4646

47-
When you call [`$disconnect()`](/orm/reference/prisma-client-reference#disconnect-1) , Prisma Client:
47+
When you call [`$disconnect()`](/6.0/orm/reference/prisma-client-reference#disconnect-1) , Prisma Client:
4848

4949
1. Runs the [`beforeExit` hook](#exit-hooks)
5050
2. Ends the Query Engine child process and closes all connections

versioned_docs/version-6.0.0/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ datasource db {
8888

8989
The number of connections Prisma Client uses can be viewed using [logging](/orm/prisma-client/observability-and-logging/logging) and [metrics](/orm/prisma-client/observability-and-logging/metrics).
9090

91-
Using the `info` [logging level](/orm/reference/prisma-client-reference#log-levels), you can log the number of connections in a connection pool that are opened when Prisma Client is instantiated.
91+
Using the `info` [logging level](/6.0/orm/reference/prisma-client-reference#log-levels), you can log the number of connections in a connection pool that are opened when Prisma Client is instantiated.
9292

9393
For example, consider the following Prisma Client instance and invocation:
9494

0 commit comments

Comments
 (0)