P
Prisma8mo ago
gotthold

Is it possible to include nested fields in client extensions?

Say i have a a model like this:
model order {
//...
lineItems LineItem[]
}
model order {
//...
lineItems LineItem[]
}
I now want to include a computed field inside order that computes the total over all lineItems. Is this possible directly using the needs field? Currently i am requiring the order to have its id and i then query again for the same order with all lineItems included, just wondering if there is a better way.
Solution:
this is not supported, sadly
Jump to solution
1 Reply
Solution
gotthold
gotthold8mo ago
this is not supported, sadly
Want results from more Discord servers?
Add your server