appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK ๐Ÿงก
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
271 stars 58 forks source link

๐Ÿš€ Feature: List collections #56

Closed mariomurrent-softwaresolutions closed 12 months ago

mariomurrent-softwaresolutions commented 1 year ago

๐Ÿ”– Feature description

I would be nice if the list collections method is implemented in the web-sdk as well. Currently only the node server SDK includes the listCollections method.

Is there any restriction on why this can't we used on the web-sdk?

๐ŸŽค Pitch

To be more flexible it would be nice to also have some methods from the node-sdk available in the web-sdk. I could then remove the node-js middleware.

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

๐Ÿข Have you read the Code of Conduct?

joeyouss commented 1 year ago

To ensure the highest level of security, the client SDKs of Appwrite do not include database or collection-related operations. This deliberate design choice prevents the unnecessary exposure of non-relevant collections and databases. By limiting access to only the required data, potential security risks are mitigated, as sensitive information is not exposed to unauthorized parties. This approach prioritizes data privacy and enhances overall application security.

A workaround would be to use Functions in Appwrite to implement this!

mariomurrent-softwaresolutions commented 12 months ago

Alright, sounds good. Well I'll go the other way and build my own middleware including the appwrite server SDK.

Thx for clarification