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?

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions