After updating to the latest Appwrite version, I noticed that many-to-many relationship fields are no longer returned when using listDocuments. Previously, I would get the full objects, but now the fields seem to be missing entirely.
const demo = await databases.listDocuments("DATABASE ID", "COLLECTION ID")
console.log(demo.documents)
Expected output (old behavior):
[
{
"$id": "some-id",
"many-to-many-relation": [
{ "$id": "123", "name": "John Doe" },
{ "$id": "456", "name": "Jane Doe" }
],
"other-relations": { "$id": "some-id", "title": "Frontend Developer" }
}
]
Actual output (new behavior):
[
{
"$id": "some-id",
"other-relations": "some-id"
// many-to-many-relation is missing completely
}
]
Recommended threads
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...
- Request for temporary 3 to 4 hours datab...
Hi Appwrite Team, I hope you are doing well.We are an early-stage startup currently running on Appwrite Cloud. We have unfortunately exhausted our database rea...
- Realtime Error Invalid query: Syntax err...
I was test driving Self-Hosted Appwrite for my use with Swift IOS apps as a backend while back and after successful trials, I started to move to incorporate int...