How to I order by random using the supabase client...
# help
a
How to I order by random using the supabase client?
I want to do this
select * from table order by random() limit 10
Don't see a way to do this using the JS client
Can anyone help?
m
Hey @User I don't think it's possible to
order by random()
using Postgrest. If I'm correct, then it won't be possible to use the client either. You could either shuffle the returned array using JavaScript or you'd have to create a view and query that instead.