[SOLVED] Document level `Permissions and Roles` using any server SDK, specifically NODE here?
- 0
- Databases
- Functions
- Web


Is this the wrong way of importing?

Can we create permissions while creating document using serverSDK? Please Help :)


That's not the right way to use those classes. They are static methods and called like Permission.read()
as mentioned in the docs: https://appwrite.io/docs/permissions#permission-types

Could you suggest me some good workaround.

SO, they are individual?

how to import them in node--sdk?

They are imported just like Client. Type sdk.
and look at the autocomplete

alright.

This is the way, right?

Right, It's lower case right!

The role parts are incorrect

Yeah I have rectified.

By the way, Why I couldn't change type: module

my function code!

Thanks, It worked. Now I will handle uploading Files and Images... Could you please suggest me good example code for handling images and image previews?

My intension is to show all the sellers to the customer who come to my e-commerce site, but what this undefined
?

I have written the code like this to produce above payload.

Read the docs again

Do I need to mention user(all)

verified
and unverified
are the params for user
right!

No, read it carefully

yeah! That's Role.users()
, Due to drowsiness, I am committing these silly mistakes. 🙂 Sorry Steven Sir. Thanks for this amazing support. I will be indebted for you for helping me through out this hackathon journey. 🙂

[SOLVED] Document level Permissions and Roles
using any server SDK, specifically NODE here?
Recommended threads
- Unable to add permission when creating a...
I am creating a collection from a cloud function using the Appwrite Dart server SDK, and I want to add permissions so it can be accessed by users. I added code ...
- Resource limit on the free plan
I'm currently building a health-focused tech project as part of a student initiative, and I’ve been using Appwrite extensively for backend services. As part o...
- search using appwrite
hi guys, i am building a web app and i got a collection that has like 500 documents, those documents are listed on a page and i got a search input, my question ...
