Hi, I was wondering if anyone had a good example o...
# ask-community
b
Hi, I was wondering if anyone had a good example of subscribing to a flow’s running status using graphql subscriptions? When we tried it, the api just returns an error, but it works as a query request:
Copy code
subscription {
  flow_run_state_by_pk(id: "848a9771-4962-405b-86f1-2d4561ffffff") {
    state
  }
}

result:

{
  "errors": [
    {
      "path": [
        "flow_run_state_by_pk"
      ],
      "message": "Cannot read property 'flow_run_state_by_pk' of undefined",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ],
  "data": {
    "flow_run_state_by_pk": null
  }
}
k
Hi @Brad I, I’ll ask the team if we support subscriptions
We do not support GraphQL subscriptions unfortunately
b
ok, that’s fine we just saw it in the schema and thought it may be more efficient than querying in a poll loop, thanks!