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
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this