[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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...