
Hi, I will attach an image below from an old tutorial, which I cannot reproduce anymore.

There is no way to create collection with Flutter SDK. You should call a server side Function for creating collection with Flutter

so the code in the image is redandant now?

There is no such Function db.getCollection() for Flutter SDK. You can try like, performing a CRUD on a Collection and if e.code is 404 (No such Collection) then call your Server Function and create new Collection for current user

Please check these Snippets to clear your concept

Hey, The following snippet is used to get the following collection of the given customId. This project uses both Server + client side SDK to do that. (Server Side to create collections and attributes) .
It will take a while to update the code and blogs to latest version (probably end july)
But to create the collection, you can create cloud function that create the collection for you ( you can pass the id in the params when execution from the client side) You can check at this snippet (https://appwrite.io/docs/server/databases?sdk=dart-default#databasesCreateCollection)
Recommended threads
- Vercel Deployment issue
I am trying to deploy my web project using vercel, but in the deployed link, it is fetching some of the attributes and for the rest it is giving "not found" err...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
