You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema/impl/JpaPredicateBuilder.java
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@
29
29
30
30
importjavax.persistence.criteria.CriteriaBuilder;
31
31
importjavax.persistence.criteria.Expression;
32
+
importjavax.persistence.criteria.Fetch;
32
33
importjavax.persistence.criteria.From;
34
+
importjavax.persistence.criteria.Join;
33
35
importjavax.persistence.criteria.Path;
34
36
importjavax.persistence.criteria.Predicate;
35
37
@@ -413,8 +415,27 @@ else if (type.equals(UUID.class)) {
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema/impl/QraphQLJpaBaseDataFetcher.java
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/GraphQLExecutorListCriteriaTests.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -90,8 +90,10 @@ public void queryWithWhereInsideOneToManyRelationsWithExplictAND() {
90
90
"}";
91
91
92
92
Stringexpected = "{Authors={select=["
93
-
+ "{id=1, name=Leo Tolstoy, books=[{id=2, title=War and Peace, genre=NOVEL}]}"
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/GraphQLExecutorTests.java
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -638,8 +638,13 @@ public void queryWithWhereInsideOneToManyRelationsImplicitAND() {
638
638
" }" +
639
639
"}";
640
640
641
-
Stringexpected = "{Authors={select=["
642
-
+ "{id=1, name=Leo Tolstoy, books=[{id=2, title=War and Peace, genre=NOVEL}]}"
641
+
Stringexpected = "{Authors={select=[{"
642
+
+ "id=1, "
643
+
+ "name=Leo Tolstoy, "
644
+
+ "books=["
645
+
+ "{id=2, title=War and Peace, genre=NOVEL}, "
646
+
+ "{id=3, title=Anna Karenina, genre=NOVEL}"
647
+
+ "]}"
643
648
+ "]}}";
644
649
645
650
//when:
@@ -674,7 +679,9 @@ public void queryWithWhereInsideOneToManyRelationsWithExplictAND() {
674
679
"}";
675
680
676
681
Stringexpected = "{Authors={select=["
677
-
+ "{id=1, name=Leo Tolstoy, books=[{id=2, title=War and Peace, genre=NOVEL}]}"
682
+
+ "{id=1, name=Leo Tolstoy, books=["
683
+
+ "{id=2, title=War and Peace, genre=NOVEL}, "
684
+
+ "{id=3, title=Anna Karenina, genre=NOVEL}]}"
678
685
+ "]}}";
679
686
680
687
//when:
@@ -830,15 +837,14 @@ public void queryWithWhereInsideManyToOneNestedRelationsWithOnToManyCollectionFi
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/StarwarsQueryExecutorTests.java
+54-43Lines changed: 54 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -402,10 +402,10 @@ public void queryByCollectionOfEnumsAtRootLevel() {
0 commit comments