Skip to content

Commit

Permalink
Add test for issue #160: Incorrect query translation for @Property(na…
Browse files Browse the repository at this point in the history
…me:"testIds.uuid") (#207)
  • Loading branch information
Andy2003 authored Apr 14, 2021
1 parent 02dd7a7 commit fc52604
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions core/src/test/resources/issues/gh-160.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
:toc:

= Github Issue #160: Incorrect query translation for @property

== Schema

[source,graphql,schema=true]
----
type User {
userId: ID!
uuid: String @property(name:"testIds.uuid")
}
----

== Issue

.GraphQL-Query
[source,graphql]
----
query {
user(filter: {uuid:"test-uuid"}) {
userId
uuid
}
}
----

.Cypher Params
[source,json]
----
{
"filterUserUuid" : "test-uuid"
}
----

.Cypher
[source,cypher]
----
MATCH (user:User)
WHERE user.`testIds.uuid` = $filterUserUuid
RETURN user {
.userId,
uuid: user.`testIds.uuid`
} AS user
----

0 comments on commit fc52604

Please sign in to comment.