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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...