specially when phone number is not stored in document .
TL;DR
Developers need to fetch user data by phone number from a collection without the number being stored in the document. To achieve this, use the Users service with the API key. Refer to the Users service documentation for more information: https://appwrite.io/docs/references/cloud/server-nodejs/users#list