ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
Supabase
โข
4y ago
โข
2 replies
Joakim
RPC to add to an array
Hi
! I got an column in my store
_table for likes
.
It takes in UID
. so a authenticated user can like a store in this case
.
see image
.
Now I need to create an RPC takes takes in two parameters
. the UID
, and store
_id
, the UID has type uid
, and store
_id is type int4
so append user
_id to likes where store
_id is equal to the store
_id selected
It
's my first time writing one and struggle to find exactly what I need
.
So hoping for some help in writing it
, thanks
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
How to unpack an array of arrays with an RPC
S
Supabase / help-and-questions
4y ago
RPC custom function to add object to JSONB array?
S
Supabase / help-and-questions
4y ago
how can I pass an array of objects to an rpc call?
S
Supabase / help-and-questions
4y ago
SOLVED] How to cast an RPC with array? [FEATURE PROPOSAL]
S
Supabase / help-and-questions
4y ago