Exclude fields from being

Talk about Ten Forum.
Post Reply
mitu300
Posts: 1
Joined: Mon Dec 18, 2023 10:19 am

Exclude fields from being

Post by mitu300 »

So you will use the second method. Using interceptors that remove fields from the response allows you to hook into the request response cycle and allows you to perform additional logic before and after the route handler is executed. In this example you will use it to remove fields from the response body. There is a built-in one available for converting objects.

You will use this interceptor to remove fi photo editing servies elds from the response object. First enable replication by updating the global. Note that it is also possible to bind interceptors to methods or controllers instead of global bindings. You can writeLearn more about this in the file. Use packages to define how objects are converted. Use a decorator to .

Image

Copied in a class If you try to use the endpoint again you'll notice that the fields are still exposed. This is because the route handler in the current controller returns a client-generated type. Applies only to classes decorated with decorators. In this case it is class. So you need to update route handler to return type. First you need to create a constructor to.
Post Reply