有没有一种方法可以在Chrome DevTools中调试Apollo GraphQL订阅? [英] Is there a way to debug Apollo GraphQL subscriptions in Chrome DevTools?
问题描述
在Chrome DevTools的Network
标签中,我只能找到GraphQL查询和变异请求:
In the Network
tab of the Chrome DevTools, I can only find GraphQL queries and mutations requests:
在侦听GraphQL订阅并收到响应时,此选项卡中没有任何内容.还有其他地方可以从Chrome DevTools获取GraphQL订阅吗?
While listening to a GraphQL subscription, and receiving a response, nothing appears in this tab. Is there another place to fetch GraphQL subscription from the Chrome DevTools?
有关信息,我将apollo-client
与apollo-angular
一起使用.
For information, I am using apollo-client
with apollo-angular
.
推荐答案
在Chrome DevTools的Network
标签中,您应该将过滤器切换为WS
才能查看和调试Apollo GraphQL订阅.您可以在下面的图片中看到它:
In the Network
tab of the Chrome DevTools, you should switch the filter to WS
to see and debug your Apollo GraphQL subscription. You can see it in the pictures below:
这篇关于有没有一种方法可以在Chrome DevTools中调试Apollo GraphQL订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!