Hi, Unsure if we’re able to use newKey when updating string attribute over node.js server api call to change an attribute name instead of having to create a new one and delete old.
Everything online is saying no but the docs have it in there
Yes, you can rename the key
i am trying to do this over a appwrite function rather than in the console, but when i pass size and newKey they are not being updated using the example doc the only thing changing is the default value; example: const result = await databases.updateStringAttribute( databaseId, collectionId, 'title1', false, 'new', 100, // optional 'titleone' // optional ); log(databases.updateStringAttribute.toString()); ' async updateStringAttribute(databaseId, collectionId, key, required, xdefault)'
The console makes the same API calls. So you can always inspect the network traffic to see what it's doing
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).
Uh I don't think that's the right syntax for logging. Also, that method is deprecated. You should use the new object style param
Recommended threads
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- Timed out waiting for runtime error
execution id 6a3e0791978712d81ee0 im having issue with appwrite function runtime performance. even after 4gbram and cpu same function sometimes completes in a...
- Project auto-blocked after load testing ...
Hi team 👋 My project has been automatically blocked with the message: "Project is currently blocked — Access to this project is restricted. Contact support if...