Web Developer
I'm not sure if this was already asked here, I cannot find the same issue I'm having. So here it is.
Currently, I have two collections with relationship Entry <-- Category, when I'm trying to fetch the data of the Entry the Category data I needed returns to me is null.
export async function getEntries() { const { documents } = await databases.listDocuments( process.env.NEXT_PUBLIC_APPWRITE_JOURNAL_DATABASE_ID as string, process.env.NEXT_PUBLIC_APPWRITE_JOURNAL_COLLECTION_ID_ENTRY as string ); return { entries: documents.map(mapDocumentToEntries), };}I'm thinking maybe, I need to use the Collection_ID for the Category collection. But the API only accepts one Collection_ID