lizarddapp
DTDrizzle Team
•Created by lizarddapp on 8/5/2023 in #help
Dont throw error if the relations is not correct
const posts = await db.query.posts.findMany({
with: {
comments: true,
},
});
for example, the code above, comments doenst exist it will throw Relation comments not found
but instead can i return the Post listing but without the comments object?
1 replies