drizzle-team / drizzle-team/drizzle-orm
[DOCS]: Better docs for `onConflictDoNothing`
Open
docs
docs/undocumented
priority
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Describe what you want
Currently, this is the only comment about this method:
> `onConflictDoNothing` will cancel the insert if there’s a conflict
Something I see repeatedly in both Discord help channels and GH issues is users bringing up the fact that if there's a conflict while using this method, no row is returned. This behavior is intended by the database engine; however, Drizzle should inform the developer about this behavior in the documentation. This will avoid more duplicate issues here on Github and Discord.
Contributor guide
Assessment
This issue has not been assessed yet.