'invalid input syntax for type uuid: "collection_share.shared_with"'

The following query works as expected:
SELECT 
  public.users.id, 
  public.users.username, 
  public.users.display_name 
FROM public.users 
INNER JOIN public.collection_share 
ON public.collection_share.shared_with = public.users.id
WHERE public.collection_share.collection_id = '9cf35bd2-544f-4e09-8e88-3e0db7601c36'


However, trying to convert that to supabase orm:
await supabase.from('users')
.select('id, username, display_name, collection_share!inner(collection_id, shared_with)')
.eq('id', 'collection_share.shared_with')
.eq('collection_share.collection_id', collection_id)

throws:
'invalid input syntax for type uuid: "collection_share.shared_with"'


What does this mean?
what is the right syntax?

screenshot of result from SQL query:
image.png
Was this page helpful?