
In dart how do we create array of string attribute in AppWrite collection In my app I’m using collections to create chatrooms for chat conversations where in I need to keep array string for saving multiple image ids or links <#634237163986485249>

Uhh have you tried passing a List<String>
?

We need to use one of this server functions right ? Do you mean , I have to create a string attribute and past List<String> to it ?

Oh sorry, I thought you meant how do you create/update a document.
You will need to create a string attribute. One of the options is to make it an array or not

Ok so just for the confirmation
- I need to use this createStringAtrribute function but I can pass an array to it while creating a document right ?
Future result = databases.createStringAttribute( databaseId: '[DATABASE_ID]', collectionId: '[COLLECTION_ID]', key: '', size: 1, xrequired: false, );

Yes, correct.
Size should be the length of each string.
You're missing the array option

“You’re missing the array option”
sorry I didn’t get this statement

I got it array parameter is present in the function Thank you @Steven

[SOLVED] create array string attribute in dart
Recommended threads
- Multiple import failures migrating from ...
Multiple import failures migrating from cloud to localhost Docker. See attached doc for logs. Local docker on win 11 is V1.7.4 as per latest setup, but cloud ...
- Authentication flow using CreateEmailTok...
Hey all, I am using the .NET SDK for Appwrite v1.7.4 and are working on an authentication / login flow. The process: 1. User logs in with mail 2. Backend cal...
- Download hangs when downloading more tha...
Appwrite 1.7.4 Self hosting on Netcup, I have root server with 4 cores, 8Gb RAM I've uploaded 55Mb file to storage (11 chunks). Whenever I try to download it (...
