
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
- Delete account on authentication
I'm building an authentication that need to a user a choice of delete their account when they need and on the documentation, if I find delete sessions or sessio...
- Existing ID bug?!
Idk why this happens can someone explain!! why Im getting this error even if I "manually clear the collection" ?
- Constant 404 Pages
Whenever I am navigating through items and pages to go through my collections and database I end up at a page that sends me a 404 error, if i refresh it remains...
