FeatureFuel
3

Improve order example

Source: supabase/supabase#29938 · opened by @jonathanstanley
The javascript api allows ordering the rows on a referenced table:


however the example is a little confusing because both the selected table and referenced table have a column called name


it took me a bit to discover the note buried at the bottom:


From there, I don't think it is clear for the reader what referencedTable does.
• Is it ascending or descending (or does it have to match the main table)?
• Is there a way to sort the main table according to the row's referenced value?
• What if the referenced table has a key override: towns:cities(name)?

I think it would be very good if the cities(name) was replaced with something like cities(id) so the reader knows the order("name") is referring to

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests