samefold
09/02/2021, 1:16 AM-----------------------------------------------------------
| user_id | first_name | last_name | email_address | role |
-----------------------------------------------------------
In an UPDATE operation, how could I allow users to edit some but not all fields for their own record? Obviously it's not good if a customer can make themselves an administrator or change their user_id
.jason-lynx
09/02/2021, 2:37 AMjbergius
09/02/2021, 3:14 AMEvаn
09/02/2021, 4:57 AMEvаn
09/02/2021, 5:10 AMOx
09/02/2021, 8:32 AMUnable to connect to server:
could not connect to server: Connection refused
Is the server running on host "db.asdasdasdasdasd.supabase.co" (XX.XX.XXX.XXX) and accepting
TCP/IP connections on port 5432
i tried connecting via ssl using an crt file as well as via password. both gave the same response.
i tried looking it up and all the answers say to configure the config file for the postgres server, but im not sure how to do that on supabasejason-lynx
09/02/2021, 9:18 AMknight
09/02/2021, 10:48 AMtinjaw
09/02/2021, 11:34 AMtinjaw
09/02/2021, 11:35 AMtinjaw
09/02/2021, 11:37 AMtinjaw
09/02/2021, 11:38 AMFabian B.
09/02/2021, 11:58 AMFabian B.
09/02/2021, 12:00 PMtinjaw
09/02/2021, 12:29 PMtinjaw
09/02/2021, 12:32 PMMichael Ketzer | streamgeist.com
09/02/2021, 4:18 PMsilentworks
09/02/2021, 4:21 PMjonny
09/02/2021, 4:22 PMMichael Ketzer | streamgeist.com
09/02/2021, 4:24 PMMichael Ketzer | streamgeist.com
09/02/2021, 4:24 PMjonny
09/02/2021, 4:32 PMtinjaw
09/02/2021, 5:01 PMmycroft_here
09/02/2021, 5:09 PM.eq()
. I am trying to do it like this const { data: subscribers, err } = await supabase
.from("subscribers")
.select("*")
.eq(["newsletter_id", letterId, "email", email]);
But its not working. Any solution?Scott P
09/02/2021, 5:30 PM.eq
to add additional filteringuser
09/02/2021, 5:31 PMmycroft_here
09/02/2021, 5:33 PM.eq()
? Let me try that and see.Scott P
09/02/2021, 5:34 PMfrom("subscribers").select("*").eq("newsletter_id", letterId).eq("email", email)
should workwaptik
09/02/2021, 5:34 PMupsert
of client library, the id auto generates. But when you use insert
, the id is not auto generated.mycroft_here
09/02/2021, 5:38 PM