Class PartialPreparedRequests

All Implemented Interfaces:

@Component public class PartialPreparedRequests extends Object implements Queries
This class implements the away to call GraphQl queries, where all queries 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 queries are valid.