Invalid relationship value. Must be either a document ID or a document, array given.
- 0
- Self Hosted
- Functions
- Databases
- Flutter
![](https://cdn.discordapp.com/avatars/580821350143492117/ee46d87816443e25b5f3d89ec794835d.webp)
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 : Connection reset by peer ? What ...
I am using Appwrite cloud and appwrite function I get this error ```ts Internal curl errors has occurred within the executor! Error Number: 104. Error Msg: C...
- AppwriteException: Rate limit for the cu...
AppwriteException: Rate limit for the current endpoint has been exceeded. Please try again after some time. How long time is it usually? Can i turn it off? I am...
- How to schedule call to appwrite functio...
Hello, first, i open this post due to this message: ```ts Internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection ref...
![](/images/bgs/pre-footer.png)