Replies: 2 comments 4 replies
-
any suggestion? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you saying that on an upsert like this: mutation upsert_article {
insert_article (
objects: [
{
title: "Article 1",
content: "Updated article 1 content",
published_on:"2018-10-12"
}
],
on_conflict:{
constraint: article_title_key,
update_columns: [content]
}
) {
returning {
id
title
content
published_on
}
}
} ...where there IS a conflict, your Because default functionality is that when an update happens on conflict the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I have a normal pk id as sequantial increase. when i use upsert with constraint on conflict update_columns:[] i see anormal growth on id column number. As i understood even there is a conflict postgres db auto create new id even not being used.
How can i use upsert with sequential id increase?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions