You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Bug Report: incorrect error message when trying to create a document with oneway relationship the wrong way round #8345
Relationship between currency and user is oneway and should be "currency->user".
When I tried to create a user document with the other way round: databases.createDocument( ...collectionUser, "1", { userID: "1", name: "han", type: "organization", currency: { currencyID: "han", amount: 100000, } }, allPermissions )
the error message I got instead is: "AppwriteException [Error]: Invalid relationship value. Must be either a document ID or a document, array given.", which is very confusing.
👍 Expected behavior
An error message should say relationship attribute doesn't exist or something like that.
👎 Actual Behavior
"AppwriteException [Error]: Invalid relationship value. Must be either a document ID or a document, array given."
🎲 Appwrite version
Version 1.5.x
💻 Operating system
Windows
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
Activity
HarshMN2345 commentedon Sep 17, 2026
this is fixed now , closing it