
Good morning, I'm trying to create the relationships programmatically I'm doing it as it is in the documentation and it gives me this problem: databases.createRelationshipAttribute is not a function I'm using the nodejs sdk
const create_assets_engagement = async () => {
await databases.createCollection("teste", "assets_engagement", "assets_engagement");
await databases.createRelationshipAttribute("teste", "assets_engagement", "assets","oneToOne",true,"asset","assets_engagement","cascade"); */
}

What version of node-appwrite you've installed?

In your package.json
file

node version - v16.16.0 "node-appwrite": "^8.0.0"

Change to 9.0.0
and try again.

it worked my friend, I had not paid attention to the version, thank you very much

[CLOSED] databases.createRelationshipAttribute is not a function

[SOLVED] databases.createRelationshipAttribute is not a function
Recommended threads
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
