Last active
December 19, 2021 18:27
-
-
Save jagdishlove/e0014b683efc688a87b7a06d2afcb318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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