how can I get a specific user documents using server sdk. which query can I use
Hi, I'm not sure how will be your workflow, but check this blog post and tell us if is what you want https://dev.to/appwrite/30daysofappwrite-jwt-l08
But server SDK use api keys instead of jwt
If I'm right
You can use .setJWT
in the server SDK
i am creating a superuser who chan see what documents other people have created like a user based filter on documents. He can add or remove permissions on certain users and I need to check another DB attribute that i why I am using server sdk. Is there any way I can get documents generated by specific users for this filter.
You would need to store the user in an attribute so that you can query against that attribute
okay
thanks
[Solved] Query to get specific user documents using server sdk
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...