DEV Community

Aayushi Vaghasiya
Aayushi Vaghasiya

Posted on

nested OR query is not working in nest js project with mongoDB database

Schema in Prisma file

here described the relation between booking model, webUser and appUser

model Booking {
  id                       String                     @id @default(auto()) @map("_id") @db.ObjectId
  venueId                  String?                    @db.ObjectId // relation scalar field (used in the `@relation` attribute above
  phone                    String
  eventId                  String?                    @db.ObjectId
  webUser                  webUser[]                  @relation(fields: [webUserId], references: [id])
  webUserId                String[]                    @db.ObjectId

Top comments (1)

Collapse
 
laptiev profile image
Dmytro

Looks like github issue