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
- Running into a server error on my self-h...
Hey everyone, I'm running into a server error on my self-hosted setup after updating to v1.19.0. The issue only happens during user creation and deletion. Ever...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...
- _APP_OPTIONS_ROUTER_PROTECTION
Hi Everyone, I just setup a fresh 1.9.0 on a server. Configured everything and now when i try to connect to appwrite for first time setup i get a _APP_OPTIONS_R...