Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access collections methods directly from cozy-client API #1277

Open
paultranvan opened this issue Dec 1, 2022 · 0 comments
Open

Access collections methods directly from cozy-client API #1277

paultranvan opened this issue Dec 1, 2022 · 0 comments

Comments

@paultranvan
Copy link
Contributor

paultranvan commented Dec 1, 2022

For now, some methods defined in collections are only accessible by calling directly calling the related collection, e.g. client.collection('io.cozy.files').updateMetadataAttribute(...).

This is not ideal, because:

  • It forces the developers to know many API methods
  • It bypasses the cozy-client logic, and notably the store.

See this PR discussion for a first work and discussion about it: #650

Also related to #244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant