https://supabase.com/ logo
Hello! I am trying to make a request and only get...
# flutter
u
Hello! I am trying to make a request and only get the data between two dates. I thought this would work but maybe I am completely wack haha. Right now it doesn't apply both the
gte
and
lte
but rather it takes the latest applied one. How would I go about this? startdate = 2021-11-1 enddate = 2021-11-30
Copy code
dart
final response = await supabase
        .from('expenses')
        .select(
            'id, amount, transaction_date, categories (id, name), profiles (id, name)')
        .eq('household_id', householdId)
        .gte('transaction_date', startDate.toIso8601String())
        .lte('transaction_date', endDate.toIso8601String())
        .execute();