[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
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- The current user is not authorized to pe...
I'm just getting this error while it was working couple minutes ago, my users have permissions to access and create tables data but on some databases I'm just g...
- My projects archived. Did not see the up...
Kindly restore project for me: 67680a26001bdf36beb8 You can delete: 678c96ba00305f78bb13 675d05040004853fb43f
