operator >= method

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

A greater than or equal to operation.

Matches models where the given field is greater than or equal to the provided value.

Examples:

Both examples return Posts where the rating is greater than or equal to 10.

Example with .ge() method:

Amplify.DataStore.query(
 Post.classType,
 where: Post.RATING.ge(10),
);

Example with >= operator:

Amplify.DataStore.query(
 Post.classType,
 where: Post.RATING >= 10,
);

Implementation

QueryPredicateOperation operator >=(Comparable<T> value) => ge(value);