Bret emm
03/24/2022, 5:44 PMOmar
03/28/2022, 8:34 PMPrisma Query Inspector
, formatted for enhanced readability and accompanied by all params and time each query took.
Soon there will be a feature that allows you to copy a full query with it's params ready to execute.
npm :`npm install prisma-query-inspector --save-dev`
yarn: yarn add prisma-query-inspector --dev
Make sure to follow the steps in the README.
Repo: https://github.com/omar-dulaimi/prisma-query-inspectorAndrew Ross
03/29/2022, 6:11 AMMatija Sosic
03/30/2022, 4:58 PMIan Ray
04/05/2022, 6:17 PMamock666
04/07/2022, 4:06 PMYegor Fomenko
04/13/2022, 8:30 AMYegor Fomenko
04/13/2022, 8:30 AMYegor Fomenko
04/13/2022, 5:29 PMYegor Fomenko
04/13/2022, 5:33 PMOmar
04/15/2022, 5:12 PMnpx prisma generate
So it's really useful, and gonna save you a lot of time when building APIs and other stuff.
Check it out here:
<https://www.npmjs.com/package/prisma-joi-generator>
Omar
04/17/2022, 3:34 PMNavin
04/20/2022, 3:18 PMYuval Datner
04/20/2022, 5:04 PMYegor Fomenko
04/23/2022, 1:11 PMYegor Fomenko
04/23/2022, 1:11 PMRoman Mahotskyi
04/23/2022, 5:11 PMprisma.$transaction
? I created a question on StackOverflow.
Update
Maybe I'm doing wrong by trying to mock intermediate Promises
and would be better to mock prisma.$transaction
itself. What do you think?Omar
04/23/2022, 10:13 PM@relaion
for example, In addition to the datasource and client blocks.
As a side note, if you think the Prisma ecosystem is missing something, please let me know, maybe I or we can work on it together 😁.Ilija Leko
04/24/2022, 11:10 AMSlackbot
04/26/2022, 3:28 PMtornros
04/27/2022, 6:51 AMNavin
04/27/2022, 11:14 PMShivam Singh
04/28/2022, 5:35 AMprisma.create
on this model do I need to provide both createdBy
and owner
or either of them?Lara Chu
05/03/2022, 4:09 PMAlfred Noland
05/04/2022, 8:50 AMRob
05/06/2022, 9:56 AMmodel Author {
id Int @id
name String
posts Post[]
}
model Post {
id Int @id
title String
author Author
}
prisma.post.findMany({
orderBy: [{
author: {
name: 'asc'
}
}]
})
So my problem (looking at the above example from the github issue) is that I actually DO want to order the authors on the post’s titles. And I was wondering in what ways I could achieve besides just using raw queries, which I obv. want to avoid..
Any help or advice is welcome! prisma green💌Slackbot
05/07/2022, 3:52 PMOmar
05/08/2022, 1:26 AMPrisma Zod Generator
You can find it here: https://github.com/omar-dulaimi/prisma-zod-generator
It's different from the existing zod-prisma
generator in that it generates full CRUD schemas; not just models schemas. So, it will be really useful to use in your API validations.
Zod is an awesome new validation library in case you don't know, I think you're going to like it!Harsh Singh
05/08/2022, 6:19 AMOmar
05/09/2022, 7:23 PM