
Hi, can i use account.get if i want to check if a user exists ? in a function

No, account.get()
gets the currently logged in user.
You would want to use users.get(USER_ID)
https://appwrite.io/docs/references/cloud/server-nodejs/users#get

thank you so much, ill try it :)

and can i somehow search by email?

sure, try
const res = users.list([
Query.equal('email', 'USER_EMAIL')
]);
const user = res.users[0]
Recommended threads
- Unable to migrate from self hosted to cl...
I'm trying to migrate my project that's currently self hosted running on version 1.6.0. I was able to migrate 3 other projects that had auth, functions, and dat...
- Can multiple functions exist in one Appw...
Can I add more than one function in the `src/main.js` file of an Appwrite cloud function? What if the different functions depend on two separate events, speci...
- Postman function call
Hi I'm trying to call a locally running function, which requires auth, in headers I'm passing jwt token with key as 'x-appwrite-user-jwt", but upon logging req....
