Class QueryReactiveExecutor
java.lang.Object
com.graphql_java_generator.samples.forum.client.graphql.forum.client.util.QueryReactiveExecutor
- All Implemented Interfaces:
GraphQLQueryReactiveExecutor
@Component
public class QueryReactiveExecutor
extends Object
implements GraphQLQueryReactiveExecutor
This class contains the methods that allows the execution of the queries or mutations that are defined in the Query
of the GraphQL schema. All the methods for this executor are in spring reactive, that is: they return a
These methods allows:
Mono
.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
-
Method Summary
Modifier and TypeMethodDescription__schema
(ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.__schemaWithBindValues
(ObjectResponse objectResponse, Map<String, Object> parameters) This method is expected by the graphql-java framework.__schemaWithBindValues
(String queryResponseDef, Map<String, Object> parameters) This method executes a partial query against the GraphQL server.__type
(ObjectResponse objectResponse, String name, Object... paramsAndValues) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.__typename
(ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework.__typename
(String queryResponseDef, Object... paramsAndValues) This method executes a partial query against the GraphQL server.__typenameWithBindValues
(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 against the GraphQL server.__typeWithBindValues
(ObjectResponse objectResponse, String name, Map<String, Object> parameters) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.boards
(ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.boardsWithBindValues
(ObjectResponse objectResponse, Map<String, Object> parameters) This method is expected by the graphql-java framework.boardsWithBindValues
(String queryResponseDef, Map<String, Object> parameters) This method executes a partial query against the GraphQL server.reactor.core.publisher.Mono<Query>
exec
(ObjectResponse objectResponse, Object... paramsAndValues) This method takes a full request definition, and executes it against the GraphQL server.reactor.core.publisher.Mono<Query>
This method takes a full request definition, and executes it against the GraphQL server.reactor.core.publisher.Mono<Query>
execWithBindValues
(ObjectResponse objectResponse, Map<String, Object> parameters) This method takes a full request definition, and executes it against the GraphQL server.reactor.core.publisher.Mono<Query>
execWithBindValues
(String queryResponseDef, Map<String, Object> parameters) This method takes a full request definition, and executes it against the GraphQL server.findTopics
(ObjectResponse objectResponse, String boardName, List<String> keyword, Object... paramsAndValues) This method is expected by the graphql-java framework.findTopics
(String queryResponseDef, String boardName, List<String> keyword, Object... paramsAndValues) This method executes a partial query against the GraphQL server.findTopicsWithBindValues
(ObjectResponse objectResponse, String boardName, List<String> keyword, Map<String, Object> parameters) This method is expected by the graphql-java framework.findTopicsWithBindValues
(String queryResponseDef, String boardName, List<String> keyword, Map<String, Object> parameters) This method executes a partial query against the GraphQL server.get__schemaGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the __schema REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the __Schema, as expected by the __schema query/mutation.get__typeGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the __type REACTIVE_EXECUTOR, created with the given Partial request.get__typenameGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the __typename REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the String, as expected by the __typename query/mutation.Get theBuilder
for the __Type, as expected by the __type query/mutation.getBoardsGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the boards REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the Board, as expected by the boards query/mutation.getFindTopicsGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the findTopics REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the Topic, as expected by the findTopics query/mutation.getGraphQLRequest
(String fullRequest) Get theGraphQLReactiveRequest
for full request.getNbBoardsGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the nbBoards REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the Integer, as expected by the nbBoards query/mutation.Get theBuilder
for a full request, as expected by the exec and execWithBindValues methods.getTopicsGraphQLRequest
(String partialRequest) Get theGraphQLReactiveRequest
for the topics REACTIVE_EXECUTOR, created with the given Partial request.Get theBuilder
for the Topic, as expected by the topics query/mutation.nbBoards
(ObjectResponse objectResponse, Object... paramsAndValues) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.nbBoardsWithBindValues
(ObjectResponse objectResponse, Map<String, Object> parameters) This method is expected by the graphql-java framework.nbBoardsWithBindValues
(String queryResponseDef, Map<String, Object> parameters) This method executes a partial query against the GraphQL server.topics
(ObjectResponse objectResponse, String boardName, Object... paramsAndValues) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.topicsWithBindValues
(ObjectResponse objectResponse, String boardName, Map<String, Object> parameters) This method is expected by the graphql-java framework.This method executes a partial query against the GraphQL server.
-
Constructor Details
-
QueryReactiveExecutor
public QueryReactiveExecutor()
-
-
Method Details
-
execWithBindValues
public reactor.core.publisher.Mono<Query> execWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method takes a full request definition, and executes it against the GraphQL server. As this class is a query executor, the provided request must be a query full request. This request will be executed in reactive mode, that is: it returns aMono
<com.graphql_java_generator.samples.forum.client.graphql.forum.client.Query>
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 ommit the query/mutation/subscription 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 defined in the query. 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 defined in the query (in the above sample: heroParam is an optional parameter and skip is a mandatory one). The value is the parameter vale in its Java type (for instance aDate
for theGraphQLScalarTypeDate
). The parameters which value is missing in this map will no be transmitted toward the GraphQL server.- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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 reactor.core.publisher.Mono<Query> exec(String queryResponseDef, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method takes a full request definition, and executes it against the GraphQL server. As this class is a query executor, the provided request must be a query full request. This request will be executed in reactive mode, that is: it returns aMono
<com.graphql_java_generator.samples.forum.client.graphql.forum.client.Query>
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 ommit the query/mutation/subscription 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:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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 reactor.core.publisher.Mono<Query> execWithBindValues(ObjectResponse objectResponse, Map<String, Object> parameters) throws GraphQLRequestExecutionExceptionThis method takes a full request definition, and executes it against the GraphQL server. As this class is a query executor, the provided request must be a query full request. This request will be executed in reactive mode, that is: it returns aMono
<com.graphql_java_generator.samples.forum.client.graphql.forum.client.Query>
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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetGraphQLRequest(java.lang.String)
method or one of thegetXxxxGraphQLRequest(String)
methods.parameters
- The list of values, for the bind variables defined in the query. If there is no bind variable in the defined Query, this argument may be null or an emptyMap
- Throws:
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 reactor.core.publisher.Mono<Query> exec(ObjectResponse objectResponse, Object... paramsAndValues) throws GraphQLRequestExecutionException This method takes a full request definition, and executes it against the GraphQL server. As this class is a query executor, the provided request must be a query full request. This request will be executed in reactive mode, that is: it returns aMono
<com.graphql_java_generator.samples.forum.client.graphql.forum.client.Query>
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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetGraphQLRequest(java.lang.String)
method or one of thegetXxxxGraphQLRequest(String)
methods.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:
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
Get theBuilder
for a full request, as expected by the exec and execWithBindValues methods.- Returns:
- Throws:
GraphQLRequestPreparationException
-
getGraphQLRequest
public GraphQLReactiveRequest getGraphQLRequest(String fullRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for full request. For instance:GraphQLReactiveRequest request = new GraphQLRequest(fullRequest);
- Parameters:
fullRequest
- The full GraphQL Request, as specified in the GraphQL specification- Returns:
- Throws:
GraphQLRequestPreparationException
-
boardsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Board>>> boardsWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- 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 defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
boards
public reactor.core.publisher.Mono<Optional<List<Board>>> boards(String queryResponseDef, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
boardsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Board>>> boardsWithBindValues(ObjectResponse objectResponse, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetBoardsGraphQLRequest(java.lang.String)
method.parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
boards
public reactor.core.publisher.Mono<Optional<List<Board>>> boards(ObjectResponse objectResponse, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetBoardsGraphQLRequest(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:
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
-
getBoardsResponseBuilder
Get theBuilder
for the Board, as expected by the boards query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
getBoardsGraphQLRequest
public GraphQLReactiveRequest getBoardsGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the boards REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
nbBoardsWithBindValues
public reactor.core.publisher.Mono<Optional<Integer>> nbBoardsWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- 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 defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
nbBoards
public reactor.core.publisher.Mono<Optional<Integer>> nbBoards(String queryResponseDef, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
nbBoardsWithBindValues
public reactor.core.publisher.Mono<Optional<Integer>> nbBoardsWithBindValues(ObjectResponse objectResponse, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetNbBoardsGraphQLRequest(java.lang.String)
method.parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
nbBoards
public reactor.core.publisher.Mono<Optional<Integer>> nbBoards(ObjectResponse objectResponse, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetNbBoardsGraphQLRequest(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:
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
-
getNbBoardsResponseBuilder
Get theBuilder
for the Integer, as expected by the nbBoards query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
getNbBoardsGraphQLRequest
public GraphQLReactiveRequest getNbBoardsGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the nbBoards REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
topicsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Topic>>> topicsWithBindValues(String queryResponseDef, String boardName, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query, in the native GraphQL format (see here above)boardName
- Parameter for the topics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
topics
public reactor.core.publisher.Mono<Optional<List<Topic>>> topics(String queryResponseDef, String boardName, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)boardName
- Parameter for the topics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
topicsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Topic>>> topicsWithBindValues(ObjectResponse objectResponse, String boardName, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetTopicsGraphQLRequest(java.lang.String)
method.boardName
- Parameter for the topics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
topics
public reactor.core.publisher.Mono<Optional<List<Topic>>> topics(ObjectResponse objectResponse, String boardName, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetTopicsGraphQLRequest(java.lang.String)
method.boardName
- Parameter for the topics field of Query, 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:
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
-
getTopicsResponseBuilder
Get theBuilder
for the Topic, as expected by the topics query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
getTopicsGraphQLRequest
public GraphQLReactiveRequest getTopicsGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the topics REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
findTopicsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Topic>>> findTopicsWithBindValues(String queryResponseDef, String boardName, List<String> keyword, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query, in the native GraphQL format (see here above)boardName
- Parameter for the findTopics field of Query, as defined in the GraphQL schemakeyword
- Parameter for the findTopics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
findTopics
public reactor.core.publisher.Mono<Optional<List<Topic>>> findTopics(String queryResponseDef, String boardName, List<String> keyword, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)boardName
- Parameter for the findTopics field of Query, as defined in the GraphQL schemakeyword
- Parameter for the findTopics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
findTopicsWithBindValues
public reactor.core.publisher.Mono<Optional<List<Topic>>> findTopicsWithBindValues(ObjectResponse objectResponse, String boardName, List<String> keyword, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetFindTopicsGraphQLRequest(java.lang.String)
method.boardName
- Parameter for the findTopics field of Query, as defined in the GraphQL schemakeyword
- Parameter for the findTopics field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
findTopics
public reactor.core.publisher.Mono<Optional<List<Topic>>> findTopics(ObjectResponse objectResponse, String boardName, List<String> keyword, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by thegetFindTopicsGraphQLRequest(java.lang.String)
method.boardName
- Parameter for the findTopics field of Query, as defined in the GraphQL schemakeyword
- Parameter for the findTopics field of Query, 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:
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
-
getFindTopicsResponseBuilder
Get theBuilder
for the Topic, as expected by the findTopics query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
getFindTopicsGraphQLRequest
public GraphQLReactiveRequest getFindTopicsGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the findTopics REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
__schemaWithBindValues
public reactor.core.publisher.Mono<Optional<__Schema>> __schemaWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- 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 defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
__schema
public reactor.core.publisher.Mono<Optional<__Schema>> __schema(String queryResponseDef, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
__schemaWithBindValues
public reactor.core.publisher.Mono<Optional<__Schema>> __schemaWithBindValues(ObjectResponse objectResponse, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by theget__schemaGraphQLRequest(java.lang.String)
method.parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
__schema
public reactor.core.publisher.Mono<Optional<__Schema>> __schema(ObjectResponse objectResponse, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by theget__schemaGraphQLRequest(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:
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__schemaResponseBuilder
Get theBuilder
for the __Schema, as expected by the __schema query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
get__schemaGraphQLRequest
public GraphQLReactiveRequest get__schemaGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the __schema REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
__typeWithBindValues
public reactor.core.publisher.Mono<Optional<__Type>> __typeWithBindValues(String queryResponseDef, String name, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query, in the native GraphQL format (see here above)name
- Parameter for the __type field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
__type
public reactor.core.publisher.Mono<Optional<__Type>> __type(String queryResponseDef, String name, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)name
- Parameter for the __type field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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
-
__typeWithBindValues
public reactor.core.publisher.Mono<Optional<__Type>> __typeWithBindValues(ObjectResponse objectResponse, String name, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by theget__typeGraphQLRequest(java.lang.String)
method.name
- Parameter for the __type field of Query, as defined in the GraphQL schemaparameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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
-
__type
public reactor.core.publisher.Mono<Optional<__Type>> __type(ObjectResponse objectResponse, String name, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by theget__typeGraphQLRequest(java.lang.String)
method.name
- Parameter for the __type field of Query, 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:
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__typeResponseBuilder
Get theBuilder
for the __Type, as expected by the __type query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
get__typeGraphQLRequest
public GraphQLReactiveRequest get__typeGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the __type REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-
__typenameWithBindValues
public reactor.core.publisher.Mono<Optional<String>> __typenameWithBindValues(String queryResponseDef, Map<String, Object> parameters) throws GraphQLRequestExecutionException, GraphQLRequestPreparationExceptionThis method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- 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 defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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 reactor.core.publisher.Mono<Optional<String>> __typename(String queryResponseDef, Object... paramsAndValues) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException This method executes a partial query against the GraphQL server. That is, the query that is one of the queries defined in the GraphQL query object. The queryResponseDef contains the part of the query that is after the query name.
For instance, if the query hero has one parameter (as defined in the GraphQL schema):- Parameters:
queryResponseDef
- The response definition of the query/mutation, in the native GraphQL format (see here above)parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
GraphQLRequestPreparationException
- When an error occurs during the request preparation, typically when building theObjectResponse
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 reactor.core.publisher.Mono<Optional<String>> __typenameWithBindValues(ObjectResponse objectResponse, Map<String, Object> parameters) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest POJO, as returned by theget__typenameGraphQLRequest(java.lang.String)
method.parameters
- The list of values, for the bind variables defined in the query/mutation. If there is no bind variable in the defined query/mutation, this argument may be null or an emptyMap
- Throws:
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 reactor.core.publisher.Mono<Optional<String>> __typename(ObjectResponse objectResponse, Object... paramsAndValues) throws 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: theObjectResponse
type of this parameter is defined for backward compatibility. In new implementations, the expected type is the generated GraphQLRequest 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:
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
Get theBuilder
for the String, as expected by the __typename query/mutation.- Returns:
- Throws:
GraphQLRequestPreparationException
-
get__typenameGraphQLRequest
public GraphQLReactiveRequest get__typenameGraphQLRequest(String partialRequest) throws GraphQLRequestPreparationException Get theGraphQLReactiveRequest
for the __typename REACTIVE_EXECUTOR, created with the given Partial request.- Parameters:
partialRequest
- The Partial GraphQL request, as explained in the plugin client documentation- Returns:
- Throws:
GraphQLRequestPreparationException
-