[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
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
