FetchOptions class
{@template fetch_options} Options for querying Supabase.
count options can be used to retrieve the total number of rows that satisfies the
query. The value for count respects any filters (e.g. eq
, gt
), but ignores
modifiers (e.g. limit
, range
).
Set head to true
if you only want the count value and not the underlying data.
Set forceResponse to true
if you want to force the return type to be PostgrestResponse<T>.
{endtemplate}
Constructors
- FetchOptions({bool head = false, CountOption? count, bool forceResponse = false})
-
const
Properties
- count → CountOption?
-
count options can be used to retrieve the total number of rows that satisfies the
query. The value for count respects any filters (e.g. eq, gt), but ignores
modifiers (e.g. limit, range).
final
- forceResponse → bool
-
Set forceResponse to
true
if you want to force the return type to be PostgrestResponse<T>.final - hashCode → int
-
The hash code for this object.
no setterinherited
- head → bool
-
Set head to true if you only want the count value and not the underlying data.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureNotHead(
) → FetchOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited