Rank 3: Container
[SOLVED] Document level `Permissions and Roles` using any server SDK, specifically NODE here?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
Is this the wrong way of importing?
Rank 3: Container
Can we create permissions while creating document using serverSDK? Please Help :)
Rank 3: Container
Admin
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
Rank 3: Container
Could you suggest me some good workaround.
Rank 3: Container
SO, they are individual?
Rank 3: Container
how to import them in node--sdk?
Admin
They are imported just like Client. Type sdk. and look at the autocomplete
Rank 3: Container
alright.
Rank 3: Container
This is the way, right?
Rank 3: Container
Right, It's lower case right!
Admin
The role parts are incorrect
Rank 3: Container
Yeah I have rectified.
Rank 3: Container
By the way, Why I couldn't change type: module
Rank 3: Container
my function code!
Rank 3: Container
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?
Rank 3: Container
My intension is to show all the sellers to the customer who come to my e-commerce site, but what this undefined?
Rank 3: Container
I have written the code like this to produce above payload.
Admin
Read the docs again
Rank 3: Container
Do I need to mention user(all)
Rank 3: Container
verified and unverified are the params for user right!
Admin
No, read it carefully
Rank 3: Container
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. 🙂
Rank 3: Container
[SOLVED] Document level Permissions and Roles using any server SDK, specifically NODE here?