Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
4 replies
RyryšŸ’»šŸ¤“

Supabase query url getting appended on every subsequent request

PostgREST🟢SQL
Hi, I have a db query string stored in file A as a const. I then import it in my component and append it with
.eq(column, 'string1')
.eq(column, 'string1')
. This works as expected on the first call. However, on subsequent calls, as the matching string changes, query url somehow gets appended on top of the previous condition, rather than overwriting it.

Current
url illustation:
First call:
http://.../rest/v1/table?..&column=eq.string1
http://.../rest/v1/table?..&column=eq.string1

Second call:
http://.../rest/v1/table?..&column=eq.string1&column=eq.string2
http://.../rest/v1/table?..&column=eq.string1&column=eq.string2

.. And so on

Expected
First call:
http://.../rest/v1/table?..&column=eq.string1
http://.../rest/v1/table?..&column=eq.string1

Second call:
http://.../rest/v1/table?..&column=eq.string2
http://.../rest/v1/table?..&column=eq.string2


Any suggested ways to handle this?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase query
SupabaseSSupabase / help-and-questions
4y ago
Saved query expression generates multiple `eq` filter on every other request
SupabaseSSupabase / help-and-questions
3y ago
Version query parameter in the URL - supabase-js library
SupabaseSSupabase / help-and-questions
4y ago
Getting STATUS_ACCESS_VIOLATION on every page
SupabaseSSupabase / help-and-questions
7mo ago