ge method

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 ge(Comparable<T> value) => QueryPredicateOperation(
      fieldName,
      GreaterOrEqualQueryOperator<Comparable<T>>(value),
    );