
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

What type of relationship did you create; 1-way or 2-way?

One way. and set it to "many to one"

If it's one way from Category to Entries, then entries won't have categories data, but categories will have entries data

this how I set it up. The Entries/Journal have the attribute that I got from Category.

found the issue. 🤦

What was it? :)
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
- URGENT: Auth Data GONE and replaced by "...
This issue appeared suddenly and without warning yesterday. My auth page is replaced by the 404 error, and I don't have access to any users. When users try to l...
