Skip to content

Commit 0f81329

Browse files
committed
First TCK test for Cypher directives
1 parent 4ec015d commit 0f81329

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

src/test/kotlin/org/neo4j/graphql/CypherDirectiveTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ schema {
8888
}
8989

9090

91-
@Test @Ignore
91+
@Test
9292
fun testTck() {
9393
TckTest(schema).testTck("cypher-directive-test.md", 0)
9494
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Cypher Directive Test
2+
3+
```schema
4+
5+
```
6+
7+
### Simple Cypher Directive on Field
8+
9+
```graphql
10+
{ person { name }}
11+
```
12+
```params
13+
{}
14+
```
15+
```cypher
16+
MATCH (person:Person)
17+
RETURN person { name:apoc.cypher.runFirstColumnSingle('WITH $this AS this RETURN this.name',{this:person}) } AS person
18+
```
19+
20+
21+
22+
```graphql
23+
{ person { name }}
24+
```
25+
```params
26+
{}
27+
```
28+
```cypher
29+
MATCH (person:Person)
30+
RETURN person { name:apoc.cypher.runFirstColumnSingle('WITH $this AS this RETURN this.name',{this:person}) } AS person
31+
```

0 commit comments

Comments
 (0)