supabase-community / supabase-go

A Go Client library for Supabase
MIT License
226 stars 19 forks source link

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

Open yiezh opened 5 months ago

yiezh commented 5 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 3 months ago

Have the same issue. Is there any solution yet?

barponce commented 1 month ago

Same issue here, any solution yet?