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

API: updateCollectionItem - lib #33

Open
1 task
Austin2Shih opened this issue Feb 22, 2024 · 1 comment
Open
1 task

API: updateCollectionItem - lib #33

Austin2Shih opened this issue Feb 22, 2024 · 1 comment
Assignees

Comments

@Austin2Shih
Copy link
Contributor

Austin2Shih commented Feb 22, 2024

  • write async updateCollectionItem(collection, id: string, body: obj) within _datalib/collections
  • return the following format: {ok: boolean, body: body || null, error: error || null}
  • Use try/catch and the custom Errors defined in _utils/response/Errors
  • Feel free to create new Error types if you see fit (following error code conventions for HTTP)
@winzamark123
Copy link
Contributor

#85

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

4 participants