You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to perform a subquery using the db.query method in a database, where you can select products with their associated categories and also retrieve information about the sizes of articles within those categories, similar to the provided code snippet:
db.query.products.findFirst({
with: {
category: true,
articles: {
sizes: true //or something like this
}
},
});
It may be possible to use sql directly, just wondering if its possible with db.query
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
is it possible to perform a subquery using the db.query method in a database, where you can select products with their associated categories and also retrieve information about the sizes of articles within those categories, similar to the provided code snippet:
It may be possible to use sql directly, just wondering if its possible with db.query
Beta Was this translation helpful? Give feedback.
All reactions