有没有一种方法可以在Chrome DevTools中调试Apollo GraphQL订阅? [英] Is there a way to debug Apollo GraphQL subscriptions in Chrome DevTools?

查看:189
本文介绍了有没有一种方法可以在Chrome DevTools中调试Apollo GraphQL订阅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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-clientapollo-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆