James Lee
06/05/2021, 10:56 AMMichael
06/08/2021, 3:26 PMargs: [{id: "123"}, {id: "345}]
prisma.model.findMany({
where: {…}
})
phapha
06/12/2021, 2:38 AMMitchell Amihod
06/17/2021, 2:12 AMThis error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Can't reach database server at `my-host-here`:`5432`
Please make sure your database server is running at `my-host-here`:`5432`.
at LineStream.<anonymous> (/app/node_modules/@prisma/client/runtime/index.js:27666:31)...
Prisma client 2.25.0 // Any advice how I should handle this? Using it in the context of nestjs? is there a way to configure a retry with prisma client?Mitchell Amihod
06/17/2021, 2:13 AMawait this.$connect(); (this being the prisma client)
Mitchell Amihod
06/17/2021, 2:19 AMTony Vi
06/17/2021, 8:39 PMprisma-client
(v2.23.0
) call. Here I'm trying to sort included issues. But nothing happens. Any kind of sort doesn't have effect.
@Query(() => Queue, { nullable: true })
async queueByKey(@Arg('key', () => String) key: string, @Ctx() ctx: Context) {
return ctx.prisma.queue.findUnique({
where: { key },
include: {
issues: {
orderBy: {
createdAt: 'desc',
},
},
},
});
}
Thanks for the any suggestion! 🙏Torrino
06/24/2021, 3:31 PMprisma generate
my prisma/client is generated as version 2.21.2 even though I updated my packages. Can't find the issue, would appreciate help 😔
EDIT: My prisma client in the node modules folder is version 2.21.2 even though that version number isn't present anywhere in the package.json or package-lock.json files.Torrino
06/26/2021, 10:27 AMPierre Ortega
06/26/2021, 8:22 PMiamtheworstdev
06/28/2021, 1:58 AMiamtheworstdev
06/28/2021, 7:30 PMPaul T
06/28/2021, 9:13 PMconst events = await prisma.event.findMany()
await Promise.all(events.map(async e) => {
const performers = await prisma.performer.findMany({ where: ..logicToFindPerformers });
await prisma.event.update(
{
where: { id: e.id },
data: { performers: performers.map((p) => ({ id: p.id })) }
}
)
})
But I am getting this error message from the client:
Unknown arg 'performers' in data.performers for type EventUncheckedUpdateInput.
I can see from my generated schema that I do have a join table created (_EventToPerformer
), so what is the correct way to join existing records in a many to many relationship?Bernd Münzer
06/29/2021, 12:00 PMRidhwaan Shakeel
06/29/2021, 4:05 PMRidhwaan Shakeel
06/29/2021, 4:05 PMJamey Nakama
06/29/2021, 5:22 PM#11 51.92 ✔ Installed the @prisma/client and prisma packages in your project
#11 51.92 Error: Could not resolve @prisma/client.
#11 51.92 Please try to install it with npm install @prisma/client and rerun prisma generate 🙏.
That might not be enough to know what’s going on, due to our own setup, but changing nothing but the version makes our builds fail.
Does anything stand out to anyone based on the versions?Jamey Nakama
06/29/2021, 5:23 PM@prisma/client
as a normal dependency (not dev)iamtheworstdev
06/30/2021, 5:48 PMRidhwaan Shakeel
06/30/2021, 11:16 PMRidhwaan Shakeel
06/30/2021, 11:16 PMMaotora
07/01/2021, 11:26 PMMaotora
07/01/2021, 11:27 PMprisma generate
I get
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
at validateString (internal/validators.js:124:11)
at Object.join (path.js:1148:7)
at getDotPrismaDir (/home/ubuntu/app/nexus-app/node_modules/@prisma/client/generator-build/index.js:73072:33)
at Object.generateClient (/home/ubuntu/app/nexus-app/node_modules/@prisma/client/generator-build/index.js:73094:49)
at Object.onGenerate (/home/ubuntu/app/nexus-app/node_modules/@prisma/client/generator-build/index.js:78382:34)
at LineStream.<anonymous> (/home/ubuntu/app/nexus-app/node_modules/@prisma/client/generator-build/index.js:2802:40)
at LineStream.emit (events.js:375:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at LineStream.Readable.push (internal/streams/readable.js:204:10)
Patrick Ayres
07/02/2021, 8:26 PMPatrick Ayres
07/02/2021, 8:29 PMType of property 'AND' circularly references itself in mapped type...
Gautam Paranjape
07/07/2021, 5:40 AMSting Alleman
07/07/2021, 9:20 PMkoufatzis
07/09/2021, 4:28 PMcreate
if something fails. I see only the return type of the happy case documented on the prisma website.Mattèo Gauthier
07/12/2021, 6:10 PMRidhwaan Shakeel
07/13/2021, 1:16 PM