Skip to content

Read foreign table range() returning more rows than specified. #3401

Discussion options

You must be logged in to vote

I was using .eq() incorrectly. I changed it to:

            const { data: menus, error } = await supabase
            .from('locations')
            .select(`
              menus (
                  all_level
              )
            `).eq('id', locationId)
            .range(0,1);

and now it returns the 1 expected menu row. Apologies!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by magiusdarrigo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant