gt method

A greater than operation.

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

Examples:

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

Example with .gt() method:

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

Example with > operator:

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

Implementation

QueryPredicateOperation gt(Comparable<T> value) => QueryPredicateOperation(
      fieldName,
      GreaterThanQueryOperator<Comparable<T>>(value),
    );