feat(class-transformer-decorators): add plugin#856
feat(class-transformer-decorators): add plugin#856butchmarshall wants to merge 1 commit intodotansimha:mainfrom
Conversation
|
|
Hey, it's been a while since you made this feature. Any idea when it could be merged? I assume you are using it in your projects. Would it be possible for you to drop off here a simple & effective quick setup guide for this? Also, if it is possible, your impressions during the time using it, like:
I'm trying to prevent my team from having to manually map each entity in order to properly use them as classes and build logic only on the required ones. |
Description
The class-transformer package implements the plainToClass method, which as its name suggests is used to map a plain object to a class.
This plugin decorates the generated classes with the required decorators to make this method work.
Related #855
Type of change
Please delete options that are not relevant.
expected)
Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take
action on it as appropriate
How Has This Been Tested?
This will test both the
classWhitelistandclassNamePatternconfig properties to ensure only the matched classes are decorated.Test Environment:
@graphql-codegen/class-transformer-decorators:Checklist:
CONTRIBUTING doc and the
style guidelines of this project