Skip to content

Commit 3176940

Browse files
committed
small fix in docs
1 parent 66a1812 commit 3176940

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: cypher-builder
22
title: Cypher Builder
33
version: "current"
4-
# display_version: '1.0-preview'
4+
display_version: "3.x"
55
start_page: ROOT:index.adoc
66
nav:
77
- modules/ROOT/content-nav.adoc

docs/modules/ROOT/pages/migration-guide-3.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,23 @@ For example:
145145
[source, Javascript]
146146
----
147147
function validate(
148-
predicate: Predicate,
148+
predicate: Cypher.Predicate,
149149
message: string,
150-
params: List | Literal | Map
151-
): Cypher.VoidCypherProcedure {
152-
return new Cypher.VoidCypherProcedure(
150+
params: Cypher.List | Cypher.Literal | Cypher.Map
151+
): Cypher.VoidProcedure {
152+
return new Cypher.VoidProcedure(
153153
"apoc.util.validate",
154-
[predicate, new Literal(message), params]
154+
[predicate, new Cypher.Literal(message), params]
155155
);
156156
}
157157
----
158158

159159
[source, Javascript]
160160
----
161-
function validatePredicate(predicate: Predicate, message: string): CypherFunction {
162-
return new CypherFunction("
161+
function validatePredicate(predicate: Cypher.Predicate, message: string): Cypher.Function {
162+
return new Cypher.Function("
163163
apoc.util.validatePredicate",
164-
[predicate, new Literal(message), new Literal([0])]
164+
[predicate, new Cypher.Literal(message), new Cypher.Literal([0])]
165165
);
166166
}
167167
----

0 commit comments

Comments
 (0)