Class Main
java.lang.Object
com.graphql_java_generator.samples.simple.client.Main
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@SpringBootApplication(scanBasePackageClasses={Main.class,GraphqlClientUtils.class,QueryTypeExecutor.class})
public class Main
extends Object
implements org.springframework.boot.CommandLineRunner
The main class, which executes the same queries, built by three different methods. See
PartialDirectRequests
,
PartialPreparedRequests
, WithBuilder
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
- Throws:
Exception
-
run
This method is started by Spring, once the Spring context has been loaded. This is run, as this class implementsCommandLineRunner
- Specified by:
run
in interfaceorg.springframework.boot.CommandLineRunner
- Throws:
Exception
-
execOne
public void execOne(Queries client) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException
-