We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As discussed. Add a DTO option to the crud decorator to use an optional DTO object instead of the entity.
@Crud({ model: { type: User, }, dto: { create: UserCreateDTO, update: UserUpdateDTO, }, params: { companyId: { field: 'companyId', type: 'number', }, id: { field: 'id', type: 'number', primary: true, }, }, query: { join: { company: { exclude: ['description'], }, profile: { eager: true, exclude: ['updatedAt'], }, }, }, }) @ApiUseTags('users') @Controller('/companies/:companyId/users') export class UserController extends CrudController<User> {}
The text was updated successfully, but these errors were encountered:
feat(crud): added dto options
c189bab
fix #132 Co-authored-by: bashleigh <[email protected]>
bashleigh
Successfully merging a pull request may close this issue.
As discussed. Add a DTO option to the crud decorator to use an optional DTO object instead of the entity.
The text was updated successfully, but these errors were encountered: