Hello while querying an user by email using :
var constraints = [
{
“key”: “email”,
“constraint_type”: “equals”,
“value”: "example@gmail.com"
}
];
Here is my api call (constraints is url encoded)
I actually found the cause and the solution: it looks like the email and other authorization-related information lives in a different data structure (as described here: Search by email with Data API?) . So what I do now to be able to search by email is that I save the email in a separate field, and then I can query by email.
I solved this by checking all the fields, assuming that the email is unique you should get a valid response :
{ key: “_all”, constraint_type: “equals”, value: “johndoe@gmail.com” }