File tree 1 file changed +8
-0
lines changed
schema/src/main/java/com/introproventures/graphql/jpa/query/schema/impl
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 82
82
import java .util .concurrent .ConcurrentHashMap ;
83
83
import java .util .concurrent .atomic .AtomicInteger ;
84
84
import java .util .function .Function ;
85
+ import java .util .function .Predicate ;
85
86
import java .util .function .Supplier ;
86
87
import java .util .stream .Collectors ;
87
88
import java .util .stream .Stream ;
@@ -184,6 +185,13 @@ public GraphQLSchema build() {
184
185
185
186
GraphQLSchema .Builder schema = GraphQLSchema .newSchema ().query (getQueryType ());
186
187
188
+ entityManager
189
+ .getMetamodel ()
190
+ .getEntities ()
191
+ .stream ()
192
+ .filter (Predicate .not (entityCache ::containsKey ))
193
+ .forEach (entity -> schema .additionalType (getEntityObjectType (entity )));
194
+
187
195
if (enableSubscription ) {
188
196
schema .subscription (getSubscriptionType ());
189
197
}
You can’t perform that action at this time.
0 commit comments