
then you can use this directly
Future result = databases.createDocument(
databaseId: '[DATABASE_ID]',
collectionId: '[COLLECTION_ID]',
documentId: '[DOCUMENT_ID]',
data: random,
);

just get that gts obj in your code

find ways to that in dart, or just copy paste it

93k lines

Its asking for a json object not a file

you're working a flutter app if I'm not mistaken right?

yes, for it

why would you keep a json file that big in your flutter app?

also just 1 document that big?

are you running a migration of your database?

this is a dictionary data and I want to check from it the correctness of the words entered by the player

https://stackoverflow.com/questions/71633864/how-to-read-json-file-in-dart-console-app this will help you out

Also this is not an appwrite issue

its a flutter thing, you could ask in flutter community they would give you better help

this mostly solves your issue

If this is static file data, it might be best to store it using the Storage API instead of Database API

I also have such forms of the data

read that file and then enter that variable in your dart.

+1

Is this a good way for me to check if there is such a word here every time the player makes a move?

better to keep this in app and check it on every type occurrence, you don't have to keep this in appwrite database (in my personal opinion)

i thought it would be safer to keep the dictionary on the server

you'll get more of these ideas on a flutter forum

Thank you and Mr. Steven for your help.

[SOLVED] Json object
Recommended threads
- upsert_documents is not work with jwt cl...
client.set_jwt(jwt) databases = Databases(client) databases.upsert_documents(General, Pallets, [{"$id": "684aeb3e0021e64c10f1", "name": 'тест '}]) This code al...
- Unable to set Display Name for Collectio...
In database: Collection -> Settings. Display Name: Add attribute -> Select attribute -> After selecting attribute, the "Select attribute" text still shows. A...
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
