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
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...