How do you debug your Nest queries?

前端 未结 8 2074
失恋的感觉
失恋的感觉 2021-02-05 14:02

I\'m new to Nest, and I very likely am not creating my query like I think I am. My question is more along the lines of teach a man to fish rather than give me a fish. However,

8条回答
  •  天涯浪人
    2021-02-05 14:28

    You can get the values of search request URL and JSON request body as under:

    var requestURL = response.RequestInformation.RequestUrl;
    var jsonBody = Encoding.UTF8.GetString(response.RequestInformation.Request);
    

    You can find other useful properties in RequestInformation for debugging.

提交回复
热议问题