lt method
A less than operation.
Matches models where the given field is less than the provided value.
Examples:
Both examples return Posts where the rating is less than 10.
Example with .lt()
method:
Amplify.DataStore.query(
Post.classType,
where: Post.RATING.lt(10),
);
Example with <
operator:
Amplify.DataStore.query(
Post.classType,
where: Post.RATING < 10,
);
Implementation
QueryPredicateOperation lt(Comparable<T> value) => QueryPredicateOperation(
fieldName, LessThanQueryOperator<Comparable<T>>(value));