I am starting a project with faunadb, where users can login using either their email, username or phone number. Is there a way to query fauna for any of those 3 fields submitted by the user?
Asked
Active
Viewed 198 times
0
-
create Indexes user_by_email, users_by_username, users_by_phone, from there you can use an Unions for OR operations. make sure those are all unique Indexes, don't want any duplicates for any of those fields. see https://stackoverflow.com/questions/61509089/how-to-query-by-multiple-conditions-in-faunadb – i_a Dec 30 '20 at 18:49
-
Ok, that's what I had in mind. Thanks a lot. – Dec 30 '20 at 19:01