Skip to content

Make updateOneBase dto type partial#679

Open
bertyhell wants to merge 1 commit intonestjsx:masterfrom
bertyhell:bugfix/update-dto-type
Open

Make updateOneBase dto type partial#679
bertyhell wants to merge 1 commit intonestjsx:masterfrom
bertyhell:bugfix/update-dto-type

Conversation

@bertyhell
Copy link
Copy Markdown

According to these docs it should be partial:

Request Body: resource object (or partial) | resource object with nested (relational) resources (or partial)

https://github.com/nestjsx/crud/wiki/Controllers#update-one-resource

Without this you get errors like this when you try to update one property in an entity:
image

According to these docs it should be partial:
> Request Body: resource object (or partial) | resource object with nested (relational) resources (or partial)

https://github.com/nestjsx/crud/wiki/Controllers#update-one-resource
@rewiko rewiko mentioned this pull request Nov 28, 2021
19 tasks
@rewiko
Copy link
Copy Markdown
Collaborator

rewiko commented Nov 28, 2021

Merged on rewiko#5

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