Operator '||' cannot be applied to 'com.amplifyframework.core.model.query.predicate.QueryPredicateOperation<java.lang.String>

0

MY CODE How to add and/or/not operator in query predicate in android?

I saw there is nothing mentioned in andorid but in JavaScript it is mentioned as below:

let filter = {
      or: [{ priority: {eq:1} },
           { priority: {eq:2} }]
  };
await API.graphql({ query: listProducts, variables: { filter: filter}}));

How to achieve the same in android java?