export const getPatient = async (userId: string) => { try { const patients = await databases.listDocuments( DATABASE_ID!, PATIENT_COLLECTION_ID!, [Query.equal('userId', [userId])] )
return parseStringify(patients.documents[0])
} catch (error) { console.log(error) } }
im getting null here, not sure what am i doing wrong. I created relationship between patiens collection and appointment and its a one way
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...