如何在 supabase 中进行一次此 PostgreSQL 查询?我尝试阅读 supabase 文档,但它不起作用
select rooms.id as room_id, members.id as member_id, user_id from rooms
inner join members
on rooms.id = members.room_id
where rooms.id = members.room_id
and user_id = 1
或者
select room_id, user_id, members.id from members
inner join rooms
on rooms.id = members.room_id
where members.user_id = 1