Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Postman GraphQL Beta support subscription

I'm trying to use Postman v7.3.4 to develop and test GraphQL APIs. However, when using a GraphQL subscription, the response never shows the data, instead it shows something like the following:

{
    "data": null,
    "extensions": {
        "tracing": {
            "version": 1,
            "startTime": "2019-07-29T20:40:20.1062162Z",
            "endTime": "2019-07-29T20:40:22.7282162Z",
            "duration": 2621830500,
            "parsing": {
                "startOffset": 8100,
                "duration": 160500
            },
            "validation": {
                "startOffset": 8100,
                "duration": 160500
            },
            "execution": {
                "resolvers": []
            }
        }
    }
}

When using something like GraphiQL, the response shows the subscription value when it changes.

I've looked at the Postman documentation but have not been able to determine if subscriptions are actually supported.

So my question is, does Postman v7.3.4 support subscriptions? Are there plans to support in the future?

like image 946
Griggs Avatar asked Jul 29 '19 21:07

Griggs


2 Answers

Postman is now supporting websocket connections:-

https://blog.postman.com/postman-supports-websocket-apis/

like image 194
user1354825 Avatar answered Oct 13 '22 14:10

user1354825


GraphQL subscriptions work via WebSocket and WebSocket endpoints are currently not supported by Postman.

Here is a feature request to support WebSocket in Postman: https://github.com/postmanlabs/postman-app-support/issues/4009

like image 43
pernpas Avatar answered Oct 13 '22 13:10

pernpas