File tree 3 files changed +46
-5
lines changed
schema/src/main/java/com/introproventures/graphql/jpa/query/schema/impl
3 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 91
91
</pluginManagement >
92
92
</build >
93
93
94
+ <repositories >
95
+ <repository >
96
+ <id >spring-milestones</id >
97
+ <name >Spring Milestones</name >
98
+ <url >https://repo.spring.io/milestone</url >
99
+ <snapshots >
100
+ <enabled >false</enabled >
101
+ </snapshots >
102
+ </repository >
103
+ <repository >
104
+ <id >central</id >
105
+ <name >Central Repository</name >
106
+ <url >https://repo.maven.apache.org/maven2</url >
107
+ <layout >default</layout >
108
+ <snapshots >
109
+ <enabled >false</enabled >
110
+ </snapshots >
111
+ </repository >
112
+ </repositories >
113
+ <pluginRepositories >
114
+ <pluginRepository >
115
+ <id >central</id >
116
+ <name >Central Repository</name >
117
+ <url >https://repo.maven.apache.org/maven2</url >
118
+ <layout >default</layout >
119
+ <snapshots >
120
+ <enabled >false</enabled >
121
+ </snapshots >
122
+ <releases >
123
+ <updatePolicy >never</updatePolicy >
124
+ </releases >
125
+ </pluginRepository >
126
+ <pluginRepository >
127
+ <id >spring-milestones</id >
128
+ <name >Spring Milestones</name >
129
+ <url >https://repo.spring.io/milestone</url >
130
+ <snapshots >
131
+ <enabled >false</enabled >
132
+ </snapshots >
133
+ </pluginRepository >
134
+ </pluginRepositories >
135
+
94
136
</project >
Original file line number Diff line number Diff line change 14
14
</description >
15
15
16
16
<properties >
17
- <spring-boot .version>3.1.6 </spring-boot .version>
17
+ <spring-boot .version>3.2.0 </spring-boot .version>
18
18
<graphql-java .version>21.3</graphql-java .version>
19
19
<evo-inflector .version>1.3</evo-inflector .version>
20
20
<joda-time .version>2.12.5</joda-time .version>
Original file line number Diff line number Diff line change @@ -296,12 +296,11 @@ protected <T> Stream<T> getResultStream(
296
296
Thread .currentThread ()
297
297
);
298
298
}
299
+
299
300
// Let's execute query and wrap result into stream
300
- if (resultStream ) {
301
- return query .getResultStream ().map (this ::unproxy ).peek (this ::detach );
302
- }
301
+ final Stream <T > resultStream = this .resultStream ? query .getResultStream () : query .getResultList ().stream ();
303
302
304
- return query . getResultList (). stream () .map (this ::unproxy ).peek (this ::detach );
303
+ return resultStream .map (this ::unproxy ).peek (this ::detach );
305
304
}
306
305
307
306
protected Object querySingleResult (final DataFetchingEnvironment environment ) {
You can’t perform that action at this time.
0 commit comments