
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
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
- Fail to receive the verification email a...
I added my email address to prevent it from showing "appwrite," but now I'm not receiving emails for verification or password resets. The function appears to be...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
