Anyone come across this error ```thread 'tokio-run...
# mongodb
m
Anyone come across this error
Copy code
thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', query-engine/connectors/mongodb-query-connector/src/root_queries/read.rs:106:74
"prisma": "^3.6.0",
"@prisma/client": "^3.6.0",
It looks like it is on all models that have a many to many relationship on them.
Copy code
model Organisation {
  id             String          @id @default(dbgenerated()) @map("_id") @db.ObjectId
  name           String
  activityGroups ActivityGroup[]
}

model ActivityGroup {
  id            String         @id @default(dbgenerated()) @map("_id") @db.ObjectId
  name          String
  organisations Organisation[]
}
Copy code
prisma.organisation.findMany({
  take: 100,
  skip: 0,
  select: {
    id: true,
    name: true,
    activityGroups: true,
  }
})
j
could you maybe create an issue to prisma/prisma on github?
m
Yup no problem!
j
reading the code, for me this looks like a bug, but I'm not the owner of that codebase so better let the devs who wrote that to answer 🙂
something to do with query generation, so it wants to take the id value from the item, but the item has no data