Overview

This page is just an example MDX.

TOC

Will be auto-generated from h2 headings

MDX blocks

Paragraph

Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.

List

  • one
  • two
  • three

Code blocks

1async function main() {
2 const allUsers = await prisma.user.findMany()
3 console.log(allUsers)
4}
1datasource db {
2 provider = "sqlite"
3 url = env("DATABASE_URL")
4}
5generator client {
6 provider = "prisma-client-js"
7}
8model Post {
9 id Int @id @default(autoincrement())
10 title String
11 content String?
12 published Boolean @default(false)
13 author User? @relation(fields: [authorId], references: [id])
14 authorId Int?
15}
16model User {
17 id Int @id @default(autoincrement())
18 email String @unique
19 name String?
20 posts Post[]
21}

Code block with copy

1async function main() {
2 const allUsers = await prisma.user.findMany()
3 console.log(allUsers)
4}

Code block with line number

1async function main() {
2 const allUsers = await prisma.user.findMany()
3 console.log(allUsers)
4}

Code block with highlighted code

1async function main() {
+ added code
- deleted code
4 neutral highlight
5}

Inline code

inlineCode

File name with icon

4 different icons available

  • file.pdf
  • dev.db
  • Windows
  • schema.ts

Tabbed blocks

schema.ts
dev.db
idemailname
1"sarah@prisma.io""Sarah"
2"maria@prisma.io""Maria"

Expand/Collapse section

More :)

Table

idemailname
1"sarah@prisma.io""Sarah"
2"maria@prisma.io""Maria"

Fancy button

Button text