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?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server