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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly