0
How I would make this query, being that this field (product
) is of the pointer type, which references another table (group
)?
ParseQuery<ParseObject> queryProdutos = ParseQuery.getQuery("products");
queryProdutos.whereEqualTo("group", "a431g152aa1" );
queryProdutos.findInBackground((objectGroup, e1) -> {
for (ParseObject group: objectGroup) {
Log.i("main", "return === " + group.getString("nome"));
}
});
In Nodejs I managed to solve doing so:
.equalTo("group", { __type: 'Pointer', className: 'groups', objectId: "xxxxx" })
But in Java (Android) I can’t do it that way, I tried that way too:
queryProdutos.whereEqualTo("evento", new ParseObject("eventos").get(ParamsDao.getEventoId()));