obiwanzenobiOriginal post
Rank 3: Container
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)
Summary
User is experiencing an error when trying to use the updateStringAttribute function with a null default value. They have tried setting the default value to an empty string and "[DEFAULT]", but the error persists. They are wondering if there is a solution for this issue.
Solution: It seems that setting the default value to null is not allowed. Instead, try setting the default value to an empty string or a different non-null value.