Just wondering about times I need to get nested fi...
# orm-help
r
Just wondering about times I need to get nested field/object using Prisma - does this look right?
Copy code
Promise.all([
  prisma.tender({ id: tenderId }).organisation(),
  prisma.tender({ id: tenderId }).primaryPracticeArea(),
  prisma.tender({ id: tenderId }).category(),
]).then(([organisation, primaryPracticeArea, category]) => {
  // …
})
h
You can use $fragment syntax to get them in one go
r
Ahh…that's where my graph newbie shades come down. I've no idea how to use $fragment…