You can translate the question and the replies:

How to handle exception in Denodo if we get any error in GraphQL response . We want to use our own custom exception details Also How to apply input validation in case of GraphQL request.

Hi Team: Could you please check on the below questions and update on the same 1) How to handle exception in Denodo if we get any error in GraphQL response . We want to use our own custom exception details ? 2) How to apply input validation in case of GraphQL request. Thanks in Advance!
user
07-03-2022 03:47:25 -0500

1 Answer

Hi, Whenever faced with errors in GraphQL service, I will check the **vdp.log** file located at *$DENODO_HOME/logs/vdp* to understand more about the error in GraphQL response. Also, to validate the results of my GraphQL request, I found these steps to be very helpful: 1. Download the results of my GraphQL request and with this downloaded GraphQL JSON file, import it into Denodo Platform as [JSON Sources](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_data_sources_and_base_views/json_sources/json_sources). 2. [Flatten](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_derived_views/creating_flatten_views/creating_flatten_views) the newly created base view that was brought onto Denodo Platform in the earlier step. 3. Create a view in Denodo Platform that serves as the input validation 4. Using the flatten view and the view created in the third step, create a [Minus View](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_derived_views/creating_minus_views/creating_minus_views) on top of the two views. This output of the minus view will indicate, if any, possible data discrepancies. Hope this helps!
Denodo Team
07-03-2022 20:54:20 -0500
You must sign in to add an answer. If you do not have an account, you can register here