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
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...