While using updateStringAttribute with this params (dart sdk)
await _databases.get().updateStringAttribute(
databaseId: ...,
collectionId: ...,
key: ...,
xrequired: false,
xdefault: null,
);
I receive this error:
general_argument_invalid, Param "default" is not optional. (400)
What is the SDK version?
10.0
maybe try : xdefault: '[DEFAULT]'?
await _databases.get().updateStringAttribute(
databaseId: ...,
collectionId: ...,
key: ...,
xdefault: '', // Set a default value (e.g., empty string)
);
Also make sure that you are on latest appwrite version. Sdk 10.0 is built against 1.4.3.
oye...it would be good to create an issue for this
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...