https://supabase.com/ logo
Hello everyone im using supabase js client and won...
# help
k
Hello everyone im using supabase js client and wonder if there is any possibility to get rid of this indent from !inner() filter my code looks like this
Copy code
let { data, error } = await supabase
            .from("questions_answers")
            .select("question_id, answers!inner(*)")
            .in("question_id", questions_ids);
and i getting response like this:
Copy code
[{
    question_id: '11864b50-88a1-44dd-881d-1d63ad1d2067',
    answers: {
      answer_id: '7915fc01-35ee-4053-91ae-75f0e972a1eb',
      answer_name: 'e',
      answer_type: 'text_one',
      answer_correct: true,
      answer_addon: null,
      answer_addon_src: ''
    }
  }]
and i want to achieve something like this:
Copy code
[{
      question_id: '11864b50-88a1-44dd-881d-1d63ad1d2067',
      answer_id: '7915fc01-35ee-4053-91ae-75f0e972a1eb',
      answer_name: 'e',
      answer_type: 'text_one',
      answer_correct: true,
      answer_addon: null,
      answer_addon_src: ''
}]
n
Hello @kudziak! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
You can do this in JS land, but not directly from using the join feature of the js library.
n
Thread was archived by @kudziak. Anyone can send a message to unarchive it.