loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

Support virtual properties

Open ashdns opened this issue 8 years ago • 5 comments

Hi, I'm trying to add a virtual property by adding @property({store: {in: false, out: false}}) decorator, however I'm getting " Error: ER_BAD_FIELD_ERROR: Unknown column 'XXXX' in 'field list' "

ashdns avatar Jan 03 '18 01:01 ashdns

This is still happening :( Is there any workaround for this issue?

ashdns avatar Feb 05 '18 13:02 ashdns

@arash01 thank you for reporting this issue.

To my knowledge, we don't support virtual properties yet. Where did you find the information that led you to the impression that {in: false, out: false} should work?

bajtos avatar Feb 06 '18 08:02 bajtos

I've seen in the source code, also it was a similar discussion earlier. https://github.com/strongloop/loopback-next/blob/06c787b01992c878b5aafb25a53c2cdbbeb5df42/packages/repository/src/model.ts#L19-L28

ashdns avatar Feb 07 '18 03:02 ashdns

This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.

stale[bot] avatar Sep 17 '19 17:09 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Oct 17 '19 19:10 stale[bot]