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
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...