
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
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
- Is it possible to have multiple smtp on ...
I already have one in one project but is it possible to use different one in another?
- How to pass session from browser to a mo...
I have a self-hosted Appwrite container. I also have a www page (A) which should acts as login page for different www services (B). User click login in B, is re...
