Skip to content

Commit 4b48d8f

Browse files
committed
Improve example on cdc section
1 parent 18c3feb commit 4b48d8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/ROOT/pages/subscriptions/customize-cdc.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
:page-aliases: subscriptions/plugins/index.adoc, subscriptions/plugins/amqp.adoc, subscriptions/plugins/single-instance.adoc
44
:description: This page describes how to customize the behavior of subscriptions.
55

6+
GraphQL subscriptions to Neo4j use [Change Data Capture](https://neo4j.com/docs/cdc/current/). It's behaviour can be configured by passing an instance of `Neo4jGraphQLSubscriptionsCDCEngine`
7+
68
== Neo4jGraphQLSubscriptionsCDCEngine
79

810
By default, the GraphQL library uses the same driver passed to `Neo4jGraphQL` to poll for events every second.
@@ -34,6 +36,9 @@ const neoSchema = new Neo4jGraphQL({
3436
driver,
3537
features: {
3638
subscriptions: engine,
39+
queryConfig: {
40+
database: "neo4j",
41+
}
3742
},
3843
});
3944
----

0 commit comments

Comments
 (0)