Skip to content

OGM subscription guide is out of date #161

@mjfwebb

Description

@mjfwebb

https://neo4j.com/docs/graphql/current/ogm/subscriptions/

There is no longer a Neo4jGraphQLSubscriptionsSingleInstancePlugin() and the OGM constructor does not take a plugins property any longer. It has been replaced with a built-in subscription feature which is toggled using the features.subscriptions flag

Old:

const ogm = new OGM({
    typeDefs,
    driver,
    plugins: {
        subscriptions: subscriptionsPlugin
    },
});

New:

const ogm = new OGM({
    typeDefs,
    driver,
    features: {
        subscriptions: true
    },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions