loopbackio / loopbackio/loopback-next

Read only properties

Open
#2,454 8 comments 2 reactions 1 assignee View on GitHub

@achrinza is already working on this.

Since Sep 20, 2020.

feature OpenAPI Repository
Dominant language
TypeScript
Stars
5.1k
Forks
1.1k
Avg merge
2d 21h
Merged PRs (30d)
27

Description

Are there any plans of implementing this feature?

I saw a request for LB3: https://github.com/strongloop/loopback/issues/531
But there seems to be no information about this feature for LB4.

Also if anyone knows any workaround for this feature, please share it. 😃

I tried to delete the property that I want to be read only in my `PATCH` function with
`delete project.name`
but this lead to an error. My datasource is a MySQL database and obviously the SQL statement is created wrong, if you just delete the property.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.