eq method
An equal to operation.
Matches models where the given field is equal to the provided value.
Example:
The example returns Posts where the rating is equal to 10.
Amplify.DataStore.query(
Post.classType,
where: Post.RATING.eq(10),
);
Implementation
QueryPredicateOperation eq(T value) =>
QueryPredicateOperation(fieldName, EqualQueryOperator<T>(value));