@Documented
@Retention(RUNTIME)
@Target(METHOD)
public @interface PartialRequest
-
Required Element Summary
Required Elements
Modifier and Type |
Required Element |
Description |
java.lang.String |
request |
The GraphQL request.
|
-
Optional Element Summary
Optional Elements
Modifier and Type |
Optional Element |
Description |
java.lang.String |
requestName |
The name of the request, as defined in the GraphQL schema.
|
RequestType |
requestType |
The kind of request that this method will execute.
|
-
Element Details
-
java.lang.String request
The GraphQL request. It can be either a Partial Request or a Full Request.
-
-
The kind of request that this method will execute. One of QUERY, MUTATION, SUBSCRIPTION. This is not mandatory,
and the default value is QUERY
- Default:
- com.graphql_java_generator.annotation.RequestType.query
-
java.lang.String requestName
The name of the request, as defined in the GraphQL schema. It's the field name in the Query, Mutation or
Subscription type.
This name must be exactly the same as the one defined in the GraphQL schema. For instance, it's case
sensitive.
This field is optional: if no requestName value is given, then the method name must match exactly the request
(query/mutation/subscription) field name that is defined in the GraphQL schema.
- Default:
- ""