-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23ee5e6
commit 8c21009
Showing
5 changed files
with
86 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# prisma-fns | ||
|
||
## 1.1.4 | ||
|
||
### Patch Changes | ||
|
||
- Updated README.md | ||
|
||
## 1.1.3 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ import { | |
generateSlug, | ||
save, | ||
remember, | ||
pagination, | ||
log, | ||
logPerf, | ||
// pagination, | ||
} from "./src"; | ||
|
||
const prisma = new PrismaClient() | ||
|
@@ -14,25 +16,13 @@ const prisma = new PrismaClient() | |
.$extends(generateSlug) | ||
.$extends(save) | ||
.$extends(remember) | ||
.$extends(pagination); | ||
.$extends(log) | ||
.$extends(logPerf); | ||
|
||
async function main() { | ||
// const user = await prisma.user.create({ | ||
// data: { | ||
// name: "Alice", | ||
// email: "[email protected]", | ||
// }, | ||
// }); | ||
// const prisma = new PrismaClient().$extends(logPerf); | ||
|
||
// const user = await prisma.user.getValues("email", { | ||
// email: { | ||
// contains: "@", | ||
// }, | ||
// }); | ||
|
||
const user = await prisma.user.findMany({ | ||
take: 5, | ||
}); | ||
const user = await prisma.user.findFirst(); | ||
|
||
console.log(user); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters