
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
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- How can we add more than 8 attributes in...
Hey, when I tried to add attribute in my collection it showed me this Error "The maximum number or size of attributes for this collection has been reached." How...
- implement caching
It it possible to cache response for few minutes? I dont want to create function or implement a whole reverse server just to cache it in somewhere ?
