Skip to content

Commit 47e0a10

Browse files
committed
fix: docs: 100-model.mdx: fix deprecated .name
1 parent 3461f22 commit 47e0a10

File tree

1 file changed

+2
-2
lines changed
  • content/200-orm/200-prisma-client/300-client-extensions

1 file changed

+2
-2
lines changed

content/200-orm/200-prisma-client/300-client-extensions/100-model.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ For example:
148148
// `context` refers to the current model
149149
const context = Prisma.getExtensionContext(this)
150150

151-
// `context.name` returns the name of the current model
152-
console.log(context.name)
151+
// `context.$name` returns the name of the current model
152+
console.log(context.$name)
153153

154154
// Usage
155155
await(context as any).findFirst({ args })

0 commit comments

Comments
 (0)