Skip to content

Instantly share code, notes, and snippets.

@jagdishlove
Last active December 19, 2021 18:27
Show Gist options
  • Save jagdishlove/e0014b683efc688a87b7a06d2afcb318 to your computer and use it in GitHub Desktop.
Save jagdishlove/e0014b683efc688a87b7a06d2afcb318 to your computer and use it in GitHub Desktop.
mutation popupreferral($user_id:Int!, $popup_date:timestamptz!){
insert_show_referral_popup(objects:{
user_id:$user_id
popup_date:$popup_date
}on_conflict:{
constraint: show_referral_popup_pkey
update_columns:popup_date
}){
returning{
id
user_id
popup_date
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment