Invalid relationship value. Must be either a document ID or a document, array given.
- 0
- Self Hosted
- Functions
- Databases
- Flutter

Since updating to 1.5.6 and 1.5.7 I'm getting this error: Invalid relationship value. Must be either a document ID or a document, array given. I've downgraded back to 1.5.5, where it's working again.
It's a simple dart function which creates a new document with a relationship:
final docId = ID.unique();
await databases.createDocument(
databaseId: 'exampleDbId',
collectionId: 'exampleCollectionId',
documentId: docId,
data: {
'title': 'Example',
'nestedDocs': [
{
"\$id": docId,
"array": [],
},
]
},
);
Stacktrace:
Error: Invalid relationship value. Must be either a document ID or a document, array given.
#0 ClientMixin.prepareResponse (package:dart_appwrite/src/client_mixin.dart:73)
#1 ClientIO.call (package:dart_appwrite/src/client_io.dart:249)
<asynchronous suspension>
#2 Databases.createDocument (package:dart_appwrite/services/databases.dart:1060)
appwrite: ^12.0.3 dart_appwrite: ^11.0.2
Recommended threads
- Error 500 connecting to Github [Unknown ...
I am trying to connect my self-hosted 1.7.4 instance to Github and am getting the following erorr: ```[Error] Timestamp: 2025-05-30T17:03:24+00:00 [Error] Met...
- I have the error: "User with the request...
Hello, I'm using a function in Appwrite and the GET and POST method works well, the POST method creates a user with the method users.create() , but when I try t...
- Why do we need this unnecessary verifica...
I just want to create my own project and write PROJECT_ID in it, but why should I do this meaningless verification, wasting of time? And also, the tutorial said...
