Skip to content

Commit e0f35ca

Browse files
committed
Update test cypher so it is valid cypher
1 parent 84b884a commit e0f35ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/graphql/tests/tck/directives/cypher/limit/cypher-with-ignore-limit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe("Cypher directive with limit and ignoreGeneratedLimit flag", () => {
4949
WHERE ANY(name IN $tagNames
5050
WHERE t.displayName = toLower(name))
5151
RETURN t
52-
LIMIT $limit
52+
LIMIT coalesce($limit, 10)
5353
"""
5454
columnName: "t"
5555
)
@@ -82,7 +82,7 @@ describe("Cypher directive with limit and ignoreGeneratedLimit flag", () => {
8282
WHERE ANY(name IN $param0
8383
WHERE t.displayName = toLower(name))
8484
RETURN t
85-
LIMIT $param1
85+
LIMIT coalesce($param1, 10)
8686
}
8787
WITH t AS this0
8888
WITH this0 { .id, .name } AS this0
@@ -122,7 +122,7 @@ describe("Cypher directive with limit and ignoreGeneratedLimit flag", () => {
122122
WHERE ANY(name IN $param0
123123
WHERE t.displayName = toLower(name))
124124
RETURN t
125-
LIMIT NULL
125+
LIMIT coalesce(NULL, 10)
126126
}
127127
WITH t AS this0
128128
WITH this0 { .id, .name } AS this0

packages/graphql/tests/tck/directives/cypher/limit/cypher-with-limit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe("Cypher directive with limit", () => {
4949
WHERE ANY(name IN $tagNames
5050
WHERE t.displayName = toLower(name))
5151
RETURN t
52-
LIMIT $limit
52+
LIMIT coalesce($limit, 10)
5353
"""
5454
columnName: "t"
5555
)
@@ -77,7 +77,7 @@ describe("Cypher directive with limit", () => {
7777
WHERE ANY(name IN $param0
7878
WHERE t.displayName = toLower(name))
7979
RETURN t
80-
LIMIT $param1
80+
LIMIT coalesce($param1, 10)
8181
}
8282
WITH t AS this0
8383
WITH this0 { .id, .name } AS this0
@@ -122,7 +122,7 @@ describe("Cypher directive with limit", () => {
122122
WHERE ANY(name IN $param0
123123
WHERE t.displayName = toLower(name))
124124
RETURN t
125-
LIMIT NULL
125+
LIMIT coalesce(NULL, 10)
126126
}
127127
WITH t AS this0
128128
WITH this0 { .id, .name } AS this0

0 commit comments

Comments
 (0)