Skip to content

Commit 72e5c24

Browse files
committed
small fixes
1 parent 71faad7 commit 72e5c24

File tree

15 files changed

+37
-33
lines changed

15 files changed

+37
-33
lines changed

core/pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,27 @@
160160
</dependency>
161161
</dependencies>
162162
</dependencyManagement>
163+
164+
<profiles>
165+
<profile>
166+
<id>create-test-file-diff</id>
167+
<activation>
168+
<activeByDefault>true</activeByDefault>
169+
</activation>
170+
<build>
171+
<plugins>
172+
<plugin>
173+
<groupId>org.apache.maven.plugins</groupId>
174+
<artifactId>maven-surefire-plugin</artifactId>
175+
<version>3.5.0</version>
176+
<configuration>
177+
<systemPropertyVariables>
178+
<neo4j-graphql-java.generate-test-file-diff>true</neo4j-graphql-java.generate-test-file-diff>
179+
</systemPropertyVariables>
180+
</configuration>
181+
</plugin>
182+
</plugins>
183+
</build>
184+
</profile>
185+
</profiles>
163186
</project>

core/src/main/kotlin/org/neo4j/graphql/schema/model/outputs/BaseSelection.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ open class BaseSelection<T : BaseSelection<T>>(
3737
prop.get(selection).forEach { field -> result[field.aliasOrName] = nestedProjection(field) }
3838
}
3939

40-
// fun <R: BaseSelection<R>> field(prop: KProperty1<R, List<BaseSelection<R>>>, value: BaseSelection<R>.() -> Unit) {
41-
// prop.get(selection).forEach { field -> result[field.aliasOrName] = value() }
42-
// }
43-
44-
// fun project(value: BaseSelection<*>.() -> Any?) {
45-
// prop.get(selection).forEach { field -> result[field.aliasOrName] = value(BaseSelection()) }
46-
// }
4740
}
4841

4942
}

core/src/main/resources/lib_directives.graphql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ directive @limit(
3939
max: Int
4040
) on OBJECT | INTERFACE
4141

42-
43-
"Instructs neo4j-graphql-java to exclude create, delete or update operations from the mutation root type."
44-
directive @mutation(
45-
"Describe operations available for this type"
46-
operations: [MutationFields!]! = [ DELETE ]
47-
) on OBJECT | INTERFACE
48-
49-
5042
"Informs neo4j-graphql-java of node metadata"
5143
directive @node(
5244
"The labels to map this GraphQL type to in the Neo4j database",
@@ -118,7 +110,3 @@ input LimitInput {
118110
"Maximum limit to be used for queries."
119111
max: Int
120112
}
121-
122-
enum MutationFields {
123-
DELETE
124-
}

core/src/test/kotlin/org/neo4j/graphql/utils/AsciiDocTestSuite.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ abstract class AsciiDocTestSuite<T>(
221221
* to find broken tests easy by its console output, enable this feature
222222
*/
223223
val FLATTEN_TESTS = System.getProperty("neo4j-graphql-java.flatten-tests", "false") == "true"
224-
val GENERATE_TEST_FILE_DIFF = System.getProperty("neo4j-graphql-java.generate-test-file-diff", "true") == "true"
224+
val GENERATE_TEST_FILE_DIFF = System.getProperty("neo4j-graphql-java.generate-test-file-diff", "false") == "true"
225225
val REFORMAT_TEST_FILE = System.getProperty("neo4j-graphql-java.reformat", "false") == "true"
226226
val UPDATE_TEST_FILE = System.getProperty("neo4j-graphql-java.update-test-file", "false") == "true"
227227
val UPDATE_SEMANTIC_EQUALLY_BLOCKS =

core/src/test/resources/integration-test-files/directives/customResolver.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ RETURN this {
898898
----
899899

900900
.GraphQL-Response
901-
[source,json,response=true]
901+
[source,json,response=true,ignore-order]
902902
----
903903
{
904904
"users": [

core/src/test/resources/integration-test-files/filtering/advanced-filtering.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ RETURN this {
734734
----
735735

736736
.GraphQL-Response
737-
[source,json,response=true]
737+
[source,json,response=true,ignore-order]
738738
----
739739
{
740740
"movies": [
@@ -793,7 +793,7 @@ RETURN this {
793793
----
794794

795795
.GraphQL-Response
796-
[source,json,response=true]
796+
[source,json,response=true,ignore-order]
797797
----
798798
{
799799
"movies": [

core/src/test/resources/integration-test-files/filtering/filter-union-relationship.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ RETURN this {
231231
----
232232

233233
.GraphQL-Response
234-
[source,json,response=true]
234+
[source,json,response=true,ignore-order]
235235
----
236236
{
237237
"actors": [

core/src/test/resources/integration-test-files/filtering/operations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RETURN this {
6969
----
7070

7171
.GraphQL-Response
72-
[source,json,response=true]
72+
[source,json,response=true,ignore-order]
7373
----
7474
{
7575
"movies": [

core/src/test/resources/integration-test-files/issues/360.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ RETURN this {
112112
----
113113

114114
.GraphQL-Response
115-
[source,json,response=true]
115+
[source,json,response=true,ignore-order]
116116
----
117117
{
118118
"events": [

core/src/test/resources/integration-test-files/issues/4532.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ RETURN this {
273273
----
274274

275275
.GraphQL-Response
276-
[source,json,response=true]
276+
[source,json,response=true,ignore-order]
277277
----
278278
{
279279
"inventories": [

0 commit comments

Comments
 (0)