© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
2 replies
dew

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,
            },
        },
    },
});
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
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[x: string]: never
Drizzle TeamDTDrizzle Team / help
12mo ago
nested relation
Drizzle TeamDTDrizzle Team / help
2y ago
Nested relation filtering
Drizzle TeamDTDrizzle Team / help
14mo ago
nested relation queries
Drizzle TeamDTDrizzle Team / help
3y ago