Class AnotherMutationTypeExecutorMySchema
java.lang.Object
org.junittest.allgraphqlcases_client_springconfiguration.AnotherMutationTypeExecutorMySchema
- All Implemented Interfaces:
GraphQLMutationExecutor
- Direct Known Subclasses:
CTP_AnotherMutationType_CTS
@Component
public class AnotherMutationTypeExecutorMySchema
extends Object
implements GraphQLMutationExecutor
A mono line description for AnotherMutationType
This class contains the methods that allows the execution of the queries or mutations that are defined in the AnotherMutationType of the GraphQL schema.
These methods allows:
This class contains the methods that allows the execution of the queries or mutations that are defined in the AnotherMutationType of the GraphQL schema.
These methods allows:
- Preparation of full requests
- Execution of prepared full requests
- Execution of direct full direct requests
- Preparation of partial requests
- Execution of prepared partial requests
- Execution of direct partial requests
- Author:
- generated by graphql-java-generator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__typename(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework.__typename(String queryResponseDef, Object... paramsAndValues) This method executes a partial query on the __typename mutation against the GraphQL server.__typenameWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) This method is expected by the graphql-java framework.__typenameWithBindValues(String queryResponseDef, Map<String, Object> parameters) This method executes a partial query on the __typename mutation against the GraphQL server._if(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) test for issue #139 (use of java reserved keyword)
This method is expected by the graphql-java framework.test for issue #139 (use of java reserved keyword)
This method executes a partial query on the _if mutation against the GraphQL server._ifWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) test for issue #139 (use of java reserved keyword)
This method is expected by the graphql-java framework._ifWithBindValues(String queryResponseDef, Map<String, Object> parameters) test for issue #139 (use of java reserved keyword)
This method executes a partial query on the _if mutation against the GraphQL server._implements(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework._implements(String queryResponseDef, Object... paramsAndValues) This method executes a partial query on the _implements mutation against the GraphQL server._implementsWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) This method is expected by the graphql-java framework._implementsWithBindValues(String queryResponseDef, Map<String, Object> parameters) This method executes a partial query on the _implements mutation against the GraphQL server.createAllFieldCases(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_AllFieldCasesInput_CINS input, Object... paramsAndValues) This method is expected by the graphql-java framework.createAllFieldCases(String queryResponseDef, CINP_AllFieldCasesInput_CINS input, Object... paramsAndValues) This method executes a partial query on the createAllFieldCases mutation against the GraphQL server.createAllFieldCasesWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_AllFieldCasesInput_CINS input, Map<String, Object> parameters) This method is expected by the graphql-java framework.createAllFieldCasesWithBindValues(String queryResponseDef, CINP_AllFieldCasesInput_CINS input, Map<String, Object> parameters) This method executes a partial query on the createAllFieldCases mutation against the GraphQL server.createHuman(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_HumanInput_CINS human, Object... paramsAndValues) This method is expected by the graphql-java framework.createHuman(String queryResponseDef, CINP_HumanInput_CINS human, Object... paramsAndValues) This method executes a partial query on the createHuman mutation against the GraphQL server.createHumanWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_HumanInput_CINS human, Map<String, Object> parameters) This method is expected by the graphql-java framework.createHumanWithBindValues(String queryResponseDef, CINP_HumanInput_CINS human, Map<String, Object> parameters) This method executes a partial query on the createHuman mutation against the GraphQL server.deleteSnacks(com.graphql_java_generator.client.request.ObjectResponse objectResponse, List<String> id, Object... paramsAndValues) Tests for issue 51
This method is expected by the graphql-java framework.deleteSnacks(String queryResponseDef, List<String> id, Object... paramsAndValues) Tests for issue 51
This method executes a partial query on the deleteSnacks mutation against the GraphQL server.deleteSnacksWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, List<String> id, Map<String, Object> parameters) Tests for issue 51
This method is expected by the graphql-java framework.Tests for issue 51
This method executes a partial query on the deleteSnacks mutation against the GraphQL server.exec(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) This method takes a full request definition, and executes it against the GraphQL server.This method takes a full request definition, and executes it against the GraphQL server.execWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) This method takes a full request definition, and executes it against the GraphQL server.execWithBindValues(String queryResponseDef, Map<String, Object> parameters) This method takes a full request definition, and executes it against the GraphQL server.get__typenameGraphQLRequest(String partialRequest) Get theGraphQLRequestMySchemafor the __typename EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.BuilderGet theBuilderfor the String, as expected by the __typename query.getCreateAllFieldCasesGraphQLRequest(String partialRequest) Get theGraphQLRequestMySchemafor the createAllFieldCases EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.BuilderGet theBuilderfor the CTP_AllFieldCases_CTS, as expected by the createAllFieldCases query.getCreateHumanGraphQLRequest(String partialRequest) Get theGraphQLRequestMySchemafor the createHuman EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.BuilderGet theBuilderfor the CTP_Human_CTS, as expected by the createHuman query.getDeleteSnacksGraphQLRequest(String partialRequest) Tests for issue 51
Get theGraphQLRequestMySchemafor the deleteSnacks EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.BuilderTests for issue 51
Get theBuilderfor the Boolean, as expected by the deleteSnacks query.getGraphQLRequest(String fullRequest) Get theGraphQLRequestMySchemafor full request.getIfGraphQLRequest(String partialRequest) test for issue #139 (use of java reserved keyword)
Get theGraphQLRequestMySchemafor the if EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.Buildertest for issue #139 (use of java reserved keyword)
Get theBuilderfor the String, as expected by the if query.getImplementsGraphQLRequest(String partialRequest) Get theGraphQLRequestMySchemafor the implements EXECUTOR, created with the given Partial request.com.graphql_java_generator.client.request.BuilderGet theBuilderfor the String, as expected by the implements query.com.graphql_java_generator.client.request.BuilderGet theBuilderfor a full request, as expected by the exec and execWithBindValues methods.
-
Constructor Details
-
AnotherMutationTypeExecutorMySchema
public AnotherMutationTypeExecutorMySchema()
-
-
Method Details
-
execWithBindValues
public AnotherMutationTypeResponse execWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionThis method takes a full request definition, and executes it against the GraphQL server. As this class is a mutation executor, the provided request must be a mutation full request.
This method offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
Here is a sample on how to use it: This method takes a full request definition, and executes it against the GraphQL server. That is, the query contains the full string that follows the mutation keyword.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the mutation, in the native GraphQL format (see here above). It must omit the mutation keyword, and start by the first { that follows. It may contain directives, as explained in the GraphQL specs.parameters- The map of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap. The key is the parameter name, as declared in the request you defined (in the above sample: param is an optional parameter and skip is a mandatory one). The value is the parameter value in its Java type (for instance aDatefor theGraphQLScalarTypeDate). The parameters which value is missing in this map will be ignored.- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
exec
public AnotherMutationTypeResponse exec(String queryResponseDef, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException This method takes a full request definition, and executes it against the GraphQL server. As this class is a mutation executor, the provided request must be a mutation full request.
This method offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above). It must omit the mutation keyword, and start by the first { that follows. It may contain directives, as explained in the GraphQL specs.paramsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
execWithBindValues
public AnotherMutationTypeResponse execWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionThis method takes a full request definition, and executes it against the GraphQL server. As this class is a mutation executor, the provided request must be a mutation full request.
This method offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
Here is a sample on how to use it:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetGraphQLRequest(java.lang.String)method or one of thegetXxxxGraphQLRequest(String)methods.parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
exec
public AnotherMutationTypeResponse exec(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException This method takes a full request definition, and executes it against the GraphQL server. As this class is a mutation executor, the provided request must be a mutation full request.
This method offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
Here is a sample on how to use it:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetGraphQLRequest(java.lang.String)method or one of thegetXxxxGraphQLRequest(String)paramsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getResponseBuilder
public com.graphql_java_generator.client.request.Builder getResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionGet theBuilderfor a full request, as expected by the exec and execWithBindValues methods.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getGraphQLRequest
public GraphQLRequestMySchema getGraphQLRequest(String fullRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Get theGraphQLRequestMySchemafor full request. For instance:GraphQLRequestMySchema request = new GraphQLRequest(fullRequest);
- Parameters:
fullRequest- The full GraphQL Request, as specified in the GraphQL specification- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
createHumanWithBindValues
public CTP_Human_CTS createHumanWithBindValues(String queryResponseDef, CINP_HumanInput_CINS human, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionThis method executes a partial query on the createHuman mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thecreateHumanof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)human- Parameter for the createHuman field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createHuman
public CTP_Human_CTS createHuman(String queryResponseDef, CINP_HumanInput_CINS human, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException This method executes a partial query on the createHuman mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thecreateHumanof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)human- Parameter for the createHuman field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createHumanWithBindValues
public CTP_Human_CTS createHumanWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_HumanInput_CINS human, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionThis method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetCreateHumanGraphQLRequest(java.lang.String)method.human- Parameter for the createHuman field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createHuman
public CTP_Human_CTS createHuman(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_HumanInput_CINS human, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetCreateHumanGraphQLRequest(java.lang.String)method.human- Parameter for the createHuman field of AnotherMutationType, as defined in the GraphQL schemaparamsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getCreateHumanResponseBuilder
public com.graphql_java_generator.client.request.Builder getCreateHumanResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionGet theBuilderfor the CTP_Human_CTS, as expected by the createHuman query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getCreateHumanGraphQLRequest
public GraphQLRequestMySchema getCreateHumanGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Get theGraphQLRequestMySchemafor the createHuman EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
createAllFieldCasesWithBindValues
public CTP_AllFieldCases_CTS createAllFieldCasesWithBindValues(String queryResponseDef, CINP_AllFieldCasesInput_CINS input, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionThis method executes a partial query on the createAllFieldCases mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thecreateAllFieldCasesof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)input- Parameter for the createAllFieldCases field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createAllFieldCases
public CTP_AllFieldCases_CTS createAllFieldCases(String queryResponseDef, CINP_AllFieldCasesInput_CINS input, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException This method executes a partial query on the createAllFieldCases mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thecreateAllFieldCasesof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)input- Parameter for the createAllFieldCases field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createAllFieldCasesWithBindValues
public CTP_AllFieldCases_CTS createAllFieldCasesWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_AllFieldCasesInput_CINS input, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionThis method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetCreateAllFieldCasesGraphQLRequest(java.lang.String)method.input- Parameter for the createAllFieldCases field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
createAllFieldCases
public CTP_AllFieldCases_CTS createAllFieldCases(com.graphql_java_generator.client.request.ObjectResponse objectResponse, CINP_AllFieldCasesInput_CINS input, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetCreateAllFieldCasesGraphQLRequest(java.lang.String)method.input- Parameter for the createAllFieldCases field of AnotherMutationType, as defined in the GraphQL schemaparamsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getCreateAllFieldCasesResponseBuilder
public com.graphql_java_generator.client.request.Builder getCreateAllFieldCasesResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionGet theBuilderfor the CTP_AllFieldCases_CTS, as expected by the createAllFieldCases query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getCreateAllFieldCasesGraphQLRequest
public GraphQLRequestMySchema getCreateAllFieldCasesGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Get theGraphQLRequestMySchemafor the createAllFieldCases EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
deleteSnacksWithBindValues
public Boolean deleteSnacksWithBindValues(String queryResponseDef, List<String> id, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionTests for issue 51
This method executes a partial query on the deleteSnacks mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thedeleteSnacksof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)id- Parameter for the deleteSnacks field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
deleteSnacks
public Boolean deleteSnacks(String queryResponseDef, List<String> id, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException Tests for issue 51
This method executes a partial query on the deleteSnacks mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of thedeleteSnacksof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)id- Parameter for the deleteSnacks field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
deleteSnacksWithBindValues
public Boolean deleteSnacksWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, List<String> id, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionTests for issue 51
This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetDeleteSnacksGraphQLRequest(java.lang.String)method.id- Parameter for the deleteSnacks field of AnotherMutationType, as defined in the GraphQL schemaparameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
deleteSnacks
public Boolean deleteSnacks(com.graphql_java_generator.client.request.ObjectResponse objectResponse, List<String> id, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException Tests for issue 51
This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetDeleteSnacksGraphQLRequest(java.lang.String)method.id- Parameter for the deleteSnacks field of AnotherMutationType, as defined in the GraphQL schemaparamsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getDeleteSnacksResponseBuilder
public com.graphql_java_generator.client.request.Builder getDeleteSnacksResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionTests for issue 51
Get theBuilderfor the Boolean, as expected by the deleteSnacks query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getDeleteSnacksGraphQLRequest
public GraphQLRequestMySchema getDeleteSnacksGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Tests for issue 51
Get theGraphQLRequestMySchemafor the deleteSnacks EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
_ifWithBindValues
public String _ifWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptiontest for issue #139 (use of java reserved keyword)
This method executes a partial query on the _if mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the_ifof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
This method name is prefixed by ${underscore}, as if is a java reserved keyword.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_if
public String _if(String queryResponseDef, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException test for issue #139 (use of java reserved keyword)
This method executes a partial query on the _if mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the_ifof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
This method name is prefixed by ${underscore}, as if is a java reserved keyword.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_ifWithBindValues
public String _ifWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptiontest for issue #139 (use of java reserved keyword)
This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
This method name is prefixed by ${underscore}, as if is a java reserved keyword. Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetIfGraphQLRequest(java.lang.String)method.parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_if
public String _if(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException test for issue #139 (use of java reserved keyword)
This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
This method name is prefixed by ${underscore}, as if is a java reserved keyword. Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetIfGraphQLRequest(java.lang.String)method.paramsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getIfResponseBuilder
public com.graphql_java_generator.client.request.Builder getIfResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptiontest for issue #139 (use of java reserved keyword)
Get theBuilderfor the String, as expected by the if query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getIfGraphQLRequest
public GraphQLRequestMySchema getIfGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException test for issue #139 (use of java reserved keyword)
Get theGraphQLRequestMySchemafor the if EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
_implementsWithBindValues
public String _implementsWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionThis method executes a partial query on the _implements mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the_implementsof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
This method name is prefixed by ${underscore}, as implements is a java reserved keyword.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_implements
public String _implements(String queryResponseDef, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException This method executes a partial query on the _implements mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the_implementsof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
This method name is prefixed by ${underscore}, as implements is a java reserved keyword.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_implementsWithBindValues
public String _implementsWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionThis method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
This method name is prefixed by ${underscore}, as implements is a java reserved keyword. Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetImplementsGraphQLRequest(java.lang.String)method.parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
_implements
public String _implements(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
This method name is prefixed by ${underscore}, as implements is a java reserved keyword. Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by thegetImplementsGraphQLRequest(java.lang.String)method.paramsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
getImplementsResponseBuilder
public com.graphql_java_generator.client.request.Builder getImplementsResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionGet theBuilderfor the String, as expected by the implements query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
getImplementsGraphQLRequest
public GraphQLRequestMySchema getImplementsGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Get theGraphQLRequestMySchemafor the implements EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
__typenameWithBindValues
public String __typenameWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionThis method executes a partial query on the __typename mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the__typenameof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
__typename
public String __typename(String queryResponseDef, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException, com.graphql_java_generator.exception.GraphQLRequestPreparationException This method executes a partial query on the __typename mutation against the GraphQL server. That is, the mutation is one of the field of the AnotherMutationType type defined in the GraphQL schema. The queryResponseDef contains the part of the query that follows the field name.
It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method takes care of writing the query name, and the parameter(s) for the query. The given queryResponseDef describes the format of the response of the server response, that is the expected fields of the__typenameof the AnotherMutationType mutation type. It can be something like "{ id name }", or "" for a scalar. Please take a look at the StarWars, Forum and other samples for more complex queries.
Here is a sample on how to use it:- Parameters:
queryResponseDef- The response definition of the query, in the native GraphQL format (see here above)parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException- When an error occurs during the request preparation, typically when building theObjectResponsecom.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
__typenameWithBindValues
public String __typenameWithBindValues(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Map<String, Object> parameters) throws com.graphql_java_generator.exception.GraphQLRequestExecutionExceptionThis method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by theget__typenameGraphQLRequest(java.lang.String)method.parameters- The list of values, for the bind variables declared in the request you defined. If there is no bind variable in the defined Query, this argument may be null or an emptyMap- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
__typename
public String __typename(com.graphql_java_generator.client.request.ObjectResponse objectResponse, Object... paramsAndValues) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException This method is expected by the graphql-java framework. It will be called when this query is called. It offers a logging of the call (if in debug mode), or of the call and its parameters (if in trace mode).
This method is valid for queries/mutations/subscriptions which don't have bind variables, as there is no parameters argument to pass the list of values.
Here is a sample:- Parameters:
objectResponse- The definition of the response format, that describes what the GraphQL server is expected to return
Note: theObjectResponsetype of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequestMySchema POJO, as returned by theget__typenameGraphQLRequest(java.lang.String)method.paramsAndValues- This parameter contains all the name and values for the Bind Variables defined in the objectResponse parameter, that must be sent to the server. Optional parameter may not have a value. They will be ignored and not sent to the server. Mandatory parameter must be provided in this argument.
This parameter contains an even number of parameters: it must be a series of name and values : (paramName1, paramValue1, paramName2, paramValue2...)- Throws:
com.graphql_java_generator.exception.GraphQLRequestExecutionException- When an error occurs during the request execution, typically a network error, an error from the GraphQL server or if the server response can't be parsed
-
get__typenameResponseBuilder
public com.graphql_java_generator.client.request.Builder get__typenameResponseBuilder() throws com.graphql_java_generator.exception.GraphQLRequestPreparationExceptionGet theBuilderfor the String, as expected by the __typename query.- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-
get__typenameGraphQLRequest
public GraphQLRequestMySchema get__typenameGraphQLRequest(String partialRequest) throws com.graphql_java_generator.exception.GraphQLRequestPreparationException Get theGraphQLRequestMySchemafor the __typename EXECUTOR, created with the given Partial request.- Parameters:
partialRequest- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
com.graphql_java_generator.exception.GraphQLRequestPreparationException
-