有没有办法在 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-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: