You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/200-orm/200-prisma-client/100-queries/062-computed-fields.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Computed fields allow you to derive a new field based on existing data. A common
10
10
11
11
The following example illustrates how to create a [Prisma Client extension](/orm/prisma-client/client-extensions) that adds a `fullName` computed field at runtime to the `User` model in a Prisma schema.
Copy file name to clipboardExpand all lines: content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,8 @@ This guide describes how to seed your database using Prisma Client and Prisma OR
18
18
19
19
Prisma ORM's integrated seeding functionality expects a command in the `"seed"` key in the `"prisma"` key of your `package.json` file. This can be any command, `prisma db seed` will just execute it. In this guide and as a default, we recommend writing a seed script inside your project's `prisma/` folder and starting it with the command.
20
20
21
-
<TabbedContenttransparentcode>
21
+
<TabbedContent>
22
22
<TabItemvalue="TypeScript">
23
-
<br/>
24
-
25
23
```json
26
24
"prisma": {
27
25
"seed": "ts-node prisma/seed.ts"
@@ -43,14 +41,11 @@ This can be useful to reduce memory usage (RAM) and increase execution speed of
43
41
</TabItem>
44
42
45
43
<TabItemvalue="JavaScript">
46
-
<br/>
47
-
48
44
```json
49
45
"prisma": {
50
46
"seed": "node prisma/seed.js"
51
47
},
52
48
```
53
-
54
49
</TabItem>
55
50
56
51
</TabbedContent>
@@ -77,7 +72,7 @@ Here we suggest some specific seed scripts for different situations. You are fre
77
72
78
73
### Seeding your database with TypeScript or JavaScript
79
74
80
-
<TabbedContenttransparentcode>
75
+
<TabbedContent>
81
76
82
77
<TabItemvalue="TypeScript">
83
78
@@ -346,7 +341,7 @@ main()
346
341
347
342
In addition to TypeScript and JavaScript, you can also use a Bash script (`seed.sh`) to seed your database in another language such as Go, or plain SQL.
0 commit comments