SupabaseS
Supabase2y ago
Hugo

How to order a joined query?

    const conversationWithMessagesQuery = supabase
        .from('conversations')
        .select('*, messages (*)')
        .eq('id', conversation_id)
        .limit(1)
        .single();

I want the messages to be ordered by
created_at
DESC, how do I do this for a join?
Was this page helpful?