Query class
Helper class to generate query strings.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
and(
List< String> queries) → String -
between(
String attribute, dynamic start, dynamic end) → String -
Filter resources where
attribute
is betweenstart
andend
(inclusive). -
contains(
String attribute, dynamic value) → String -
Filter resources where
attribute
containsvalue
value
can be a single value or a list. -
cursorAfter(
String id) → String -
Return results after
id
. -
cursorBefore(
String id) → String -
Return results before
id
. -
endsWith(
String attribute, String value) → String -
Filter resources where
attribute
ends withvalue
. -
equal(
String attribute, dynamic value) → String -
Filter resources where
attribute
is equal tovalue
. -
greaterThan(
String attribute, dynamic value) → String -
Filter resources where
attribute
is greater thanvalue
. -
greaterThanEqual(
String attribute, dynamic value) → String -
Filter resources where
attribute
is greater than or equal tovalue
. -
isNotNull(
String attribute) → String -
Filter resources where
attribute
is not null. -
isNull(
String attribute) → String -
Filter resources where
attribute
is null. -
lessThan(
String attribute, dynamic value) → String -
Filter resources where
attribute
is less thanvalue
. -
lessThanEqual(
String attribute, dynamic value) → String -
Filter resources where
attribute
is less than or equal tovalue
. -
limit(
int limit) → String - Return only limit results.
-
notEqual(
String attribute, dynamic value) → String -
Filter resources where
attribute
is not equal tovalue
. -
offset(
int offset) → String - Return results from offset.
-
or(
List< String> queries) → String -
orderAsc(
String attribute) → String -
Sort results by
attribute
ascending. -
orderDesc(
String attribute) → String -
Sort results by
attribute
descending. -
search(
String attribute, String value) → String -
Filter resources where by searching
attribute
forvalue
. -
select(
List< String> attributes) → String - Specify which attributes should be returned by the API call.
-
startsWith(
String attribute, String value) → String -
Filter resources where
attribute
starts withvalue
.