u007
u007
Explore posts from servers
PPrisma
Created by u007 on 8/8/2024 in #help-and-questions
Type instantiation is excessively deep and possibly infinite
when i use prisma extension, i get this kind of error on my ide, omg we have exceed the limitation of typescript, what can be done? #typescript
2 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
https://github.com/prisma/prisma/discussions/11929#discussioncomment-9600119 Error: MongoDB error Server selection timeout: No available servers. Topology: { Type: ReplicaSetNoPrimary, Servers: this happen randomly after 2 to 3days of running on production
6 replies
PPrisma
Created by u007 on 5/8/2024 in #help-and-questions
where inside include
hi im using mongodb driver with prisma 5.7.1,
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
i realise module.Chat seems to return even thou providerSenderId is null, does where condition works inside include?
2 replies