Skip to content

Commit cdb05c4

Browse files
authored
Merge pull request #154 from neo4j/fix-for-subscription-docs
fix subscription docs
2 parents 4728590 + 8f07f3d commit cdb05c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/directives/schema-configuration/type-configuration.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ enum SubscriptionFields {
122122
DELETE_RELATIONSHIP
123123
}
124124
125-
directive @subscription(operations: [SubscriptionFields!]! = [CREATE, UPDATE, DELETE, CREATE_RELATIONSHIP, DELETE_RELATIONSHIP]) on OBJECT | SCHEMA
125+
directive @subscription(events: [SubscriptionFields!]! = [CREATED, UPDATED, DELETED, RELATIONSHIP_CREATED, RELATIONSHIP_DELETED]) on OBJECT | SCHEMA
126126
----
127127

128128
=== Usage
129129

130130
.Disable subscriptions for _Movie_
131131
[source, graphql, indent=0]
132132
----
133-
type Movie @subscription(operations: []) {
133+
type Movie @subscription(events: []) {
134134
title: String
135135
length: Int
136136
}
@@ -139,7 +139,7 @@ type Movie @subscription(operations: []) {
139139
.Enable only _movieCreated_ subscription for _Movie_
140140
[source, graphql, indent=0]
141141
----
142-
type Movie @subscription(operations: [CREATE]) {
142+
type Movie @subscription(events: [CREATED]) {
143143
title: String
144144
length: Int
145145
}

0 commit comments

Comments
 (0)