Single Instance Plugin

Subscriptions are only available as a beta; its API may change in the future. It is not recommended to use subscriptions in production environments.

The @neo4j/graphql library provides a zero-dependency plugin to be used during development to quickly deploy a subscriptions server locally in a single instance. If can be imported directly:

const { Neo4jGraphQL, Neo4jGraphQLSubscriptionsSingleInstancePlugin } = require('@neo4j/graphql');

const neoSchema = new Neo4jGraphQL({
    plugins: {
        subscriptions: new Neo4jGraphQLSubscriptionsSingleInstancePlugin(),

For a full example, check the Getting started guide.

This plugin is not recommended for production environments unless running a single instance.