operator > method

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

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