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
- Query.search limitation
Since `string` is deprecated I used `varchar`, and now I cant use `Query.contains` , so I setup fulltext index and started using `Query.search` the issue is `Qu...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...