Skip to content

Glossary: Next.js Beyond the Basics

returning()

Also written: .returning()

A Drizzle step on insert or update that hands back the affected row, with its new id and defaults. On an update it gives undefined when no row matched.

Where the book teaches it

Related terms

.all(), .get() and .run()Transaction