© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
28 replies
nikiv.dev

help with drizzle types not inferred well

async function addTopic(topic: string, content: string, parent?: string) {
  try {
    let parentId: number | null = null
    await db.transaction(async (tx) => {
      await tx
        .select({ id: topics.id })
        .from(topics)
        .where({ name: topic, ownerId: 1 })
        .all()
    })
async function addTopic(topic: string, content: string, parent?: string) {
  try {
    let parentId: number | null = null
    await db.transaction(async (tx) => {
      await tx
        .select({ id: topics.id })
        .from(topics)
        .where({ name: topic, ownerId: 1 })
        .all()
    })
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

Explicit inferred types
Drizzle TeamDTDrizzle Team / help
3y ago
Inferred Types not picking up Relations
Drizzle TeamDTDrizzle Team / help
3y ago
Error With types from Drizzle
Drizzle TeamDTDrizzle Team / help
15mo ago
drizzle-zod with custom types
Drizzle TeamDTDrizzle Team / help
3y ago