Class PartialPreparedQueries

java.lang.Object
org.allGraphQLCases.demo.impl.PartialPreparedQueries
All Implemented Interfaces:
PartialQueries

@Component public class PartialPreparedQueries extends Object implements PartialQueries
This class implements the way to call GraphQl partialQueries, where all partialQueries are prepared before execution.
The advantages are:
  • Performance: this avoid to build an ObjectResponse for each response. This ObjectResponse is useful, to help control at runtime if a field has been queried or not. It allows to throw an exception when your code tries to use a field that was not queried
  • Security: as all request have been prepared at startup, this make sure at startup that your partialQueries are valid.
Author:
etienne-sf