const result = await db.query(users).findMany({
with: {
posts: true
},
});
OR
const result = await db.query[modelName]findMany({
with: {
posts: true
},
});
const result = await db.query(users).findMany({
with: {
posts: true
},
});
OR
const result = await db.query[modelName]findMany({
with: {
posts: true
},
});