graphile / crystal-pre-merge

Repository moved
https://github.com/graphile/crystal
39 stars 10 forks source link

Add an upsert operation #471

Open benjie opened 11 months ago

benjie commented 11 months ago

Either by augmenting pgInsertSingle with an "on conflict" method, or by creating a proper upsert method.

Since users can do this themselves via withPgClient this is not a priority.

Context: https://discord.com/channels/489127045289476126/498852330754801666/1139205403352248431

Reported by: "Mr. Orange"