Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OGM subscription guide is out of date #161

Open
mjfwebb opened this issue Jul 10, 2024 · 0 comments
Open

OGM subscription guide is out of date #161

mjfwebb opened this issue Jul 10, 2024 · 0 comments

Comments

@mjfwebb
Copy link
Contributor

mjfwebb commented Jul 10, 2024

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
    },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant