Skip to content

Upsert returning null value error #15730

Discussion options

You must be logged in to vote

Hello,

Can you try with defaultToNull: false?

const { error } = await supabase
      .from('my_table')
      .upsert([{ id: 3, name: 'Abc' }, { name: 'Def' }], { onConflict: 'name', defaultToNull: false});

This is a recent feature so you might have to upgrade your instance by pausing/unpausing.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@jayehernandez
Comment options

Answer selected by jayehernandez
Comment options

You must be logged in to vote
3 replies
@steve-chavez
Comment options

@soedirgo
Comment options

@soedirgo
Comment options

Comment options

You must be logged in to vote
1 reply
@GerritPlehn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants