We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a simple table that has 2 columns I care about.
created_at: timestamp (always has a value) read_on: timestamps (null if unread, value if read).
I want to show all unread first, then order the rest by created_at with newest first.
let { data: announcements, error: announcementError } = await supabase .from('announcements') .select('*') .eq('user_id', session?.user.id) .order('read_on', { nullsFirst: true }) .order('created_at', { ascending: true });
That call doesn't seem to change the results at all. Running the 2nd order() by itself works as expected.
The text was updated successfully, but these errors were encountered:
Anyone able to reproduce this?
Sorry, something went wrong.
hello?
I can't reproduce, can you share a bit more details so I can set up my db the same way you are? the 2nd order seems to be working as expected for me.
No branches or pull requests
I have a simple table that has 2 columns I care about.
created_at: timestamp (always has a value)
read_on: timestamps (null if unread, value if read).
I want to show all unread first, then order the rest by created_at with newest first.
That call doesn't seem to change the results at all. Running the 2nd order() by itself works as expected.
The text was updated successfully, but these errors were encountered: