Skip to content

Commit fc52604

Browse files
authored
Add test for issue #160: Incorrect query translation for @Property(name:"testIds.uuid") (#207)
1 parent 02dd7a7 commit fc52604

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
:toc:
2+
3+
= Github Issue #160: Incorrect query translation for @property
4+
5+
== Schema
6+
7+
[source,graphql,schema=true]
8+
----
9+
type User {
10+
userId: ID!
11+
uuid: String @property(name:"testIds.uuid")
12+
}
13+
----
14+
15+
== Issue
16+
17+
.GraphQL-Query
18+
[source,graphql]
19+
----
20+
query {
21+
user(filter: {uuid:"test-uuid"}) {
22+
userId
23+
uuid
24+
}
25+
}
26+
----
27+
28+
.Cypher Params
29+
[source,json]
30+
----
31+
{
32+
"filterUserUuid" : "test-uuid"
33+
}
34+
----
35+
36+
.Cypher
37+
[source,cypher]
38+
----
39+
MATCH (user:User)
40+
WHERE user.`testIds.uuid` = $filterUserUuid
41+
RETURN user {
42+
.userId,
43+
uuid: user.`testIds.uuid`
44+
} AS user
45+
----

0 commit comments

Comments
 (0)