File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
doc/modules/ROOT/pages/management-ops/graph-update Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 37
37
|===
38
38
| Name | Type | Default | Description
39
39
| concurrency | Integer | 4 | The number of concurrent threads. Note, this procedure is always running single-threaded.
40
+ | failIfMissing | Boolean | true | If false, the procedure will ignore properties that do not exist in the graph.
40
41
|===
41
42
42
43
.Results
@@ -150,6 +151,28 @@ YIELD propertiesRemoved
150
151
The above example requires all given properties to be present on _at least one_ projected node label.
151
152
--
152
153
154
+ ==== Ignore missing properties
155
+
156
+ By default, the procedure will fail if any of the given properties do not exist in the graph.
157
+ If you want to ignore missing properties, you can set the `failIfMissing` configuration option to `false`.
158
+
159
+ [role=query-example]
160
+ --
161
+ .Attempt to drop the `missing_score` property from all projected nodes in the `socialGraph`:
162
+ [source, cypher, role=noplay]
163
+ ----
164
+ CALL gds.graph.nodeProperties.drop('socialGraph', ['missing_score'], {failIfMissing: false})
165
+ YIELD propertiesRemoved, nodeProperties
166
+ ----
167
+
168
+ .Results
169
+ [opts="header"]
170
+ |===
171
+ | propertiesRemoved | nodeProperties
172
+ | 0 | []
173
+ |===
174
+ --
175
+
153
176
[[catalog-graph-delete-rel-type]]
154
177
=== Drop relationships of a given type
155
178
You can’t perform that action at this time.
0 commit comments