Nested one to one relation shows [x:string]: never

I tried using the relational query similar to the example

const users = await db.query.users.findMany({
    with: {
        posts: {
            with: {
                comments: true,
            },
        },
    },
});


however, when i try to access the result, eg. users.posts.comments, the type is missing & only shows [x:string]: never
Was this page helpful?