supabase-community / supabase-go

A Go Client library for Supabase
MIT License
197 stars 17 forks source link

Unable to use both gte and lte queries on a single field. #13

Open yiezh opened 4 months ago

yiezh commented 4 months ago

client.From("table").Select("*", "exact", false).Gte("created_at", start).Lte("created_at", end)

use this query, Lte("created_at", end) will override Gte("created_at", start), because Get and Lte do same thing: f.params["created_at"]=something.

In javascript, use gte and lte, is append value: this.url.searchParams.append(column, gte.${value}), this.url.searchParams.append(column, lte.${value}).

TomEngelmann commented 1 month ago

Have the same issue. Is there any solution yet?

barponce commented 6 hours ago

Same issue here, any solution yet?