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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Current User is Not authorized
recreating same Thread