Skip to content

feat(crud-typeorm): ignore entity decorators when saving#692

Open
Char2sGu wants to merge 1 commit intonestjsx:masterfrom
Char2sGu:master
Open

feat(crud-typeorm): ignore entity decorators when saving#692
Char2sGu wants to merge 1 commit intonestjsx:masterfrom
Char2sGu:master

Conversation

@Char2sGu
Copy link
Copy Markdown

@Char2sGu Char2sGu commented Apr 7, 2021

The @Exclude() decorator is used to exclude some fields in the entity
in responses, but will cause confusion when creating entities because
the fields will also be excluded before saving to the database.

@rewiko
Copy link
Copy Markdown
Collaborator

rewiko commented Apr 7, 2021

Nice, would you be able to add a test to check this behaviour?

The `@Exclude()` decorator is used to exclude some fields in the entity
in responses, but will cause confusion when creating entities because
the fields will also be excluded before saving to the database.
@Char2sGu
Copy link
Copy Markdown
Author

Char2sGu commented Apr 8, 2021

Nice, would you be able to add a test to check this behaviour?

Sorry, but I am really new to testing and don’t know how to do that. :-(

@rewiko
Copy link
Copy Markdown
Collaborator

rewiko commented Apr 8, 2021

Sorry, but I am really new to testing and don’t know how to do that. :-(

No problem I can add the test.

@rewiko rewiko mentioned this pull request Nov 28, 2021
19 tasks
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

Successfully merging this pull request may close these issues.

2 participants