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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- Bug report: Race condition in Flutter SD...
Hi team, I've found an intermittent bug in the Flutter SDK (v20.3.0) when using `createOAuth2Session` on Android. **Symptoms** After `createOAuth2Session` re...