Package io.jmix.graphql.datafetcher
Class ResponseBuilder
java.lang.Object
io.jmix.graphql.datafetcher.ResponseBuilder
Converts entities to Map<String, Object> response format.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
environmentUtils
-
-
Constructor Details
-
ResponseBuilder
public ResponseBuilder()
-
-
Method Details
-
buildResponse
public Map<String,Object> buildResponse(Entity entity, FetchPlan fetchPlan, MetaClass metaClass, Set<String> props) Convert loaded entity to data fetcher return format (Map<String, Object>)- Parameters:
entity
- loaded entityfetchPlan
- loaded entity propertiesmetaClass
- entity meta classprops
- we need pass full set of properties to have information about system props such '_instanceName'- Returns:
- entity converted to response as Map<String, Object>
-
writeIdField
-