operator < method

QueryPredicateOperation operator <(
  1. Comparable<T> value
)

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 operator <(Comparable<T> value) => lt(value);