Skip to content

Commit 46107e7

Browse files
committed
Add documentation
1 parent 2ad3b78 commit 46107e7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

doc/modules/ROOT/pages/management-ops/graph-update/dropping-parts.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ YIELD
3737
|===
3838
| Name | Type | Default | Description
3939
| 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.
4041
|===
4142

4243
.Results
@@ -150,6 +151,28 @@ YIELD propertiesRemoved
150151
The above example requires all given properties to be present on _at least one_ projected node label.
151152
--
152153

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+
153176
[[catalog-graph-delete-rel-type]]
154177
=== Drop relationships of a given type
155178

0 commit comments

Comments
 (0)