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
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- API key not having access to database
My api key with read and write access to row and tables and DB I not working. In my test the results returned an empty database. This is the second time I am...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...