Skip to content

ctx.pubsub.asyncIterator is not a function when running orm/graphql-subscriptions #8039

@Jaime02

Description

@Jaime02

Hello, I am trying to run the orm/graphql-subscriptions example. I have followed the steps described in the README file. When I open GraphQL playground and execute the suggested subscription:

subscription {
  newPost {
    id
    title
    published
    author {
      id
      email
      name
    }
  }
}

I get the following error:

{
  "errors": [
    {
      "message": "ctx.pubsub.asyncIterator is not a function",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "newPost"
      ]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions