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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...