| Package | Description |
|---|---|
| com.graphql_java_generator.client | |
| com.graphql_java_generator.client.request |
This package contains all the classes used to generate the requests toward the GraphQL server.
|
| com.graphql_java_generator.client.response |
All classes about the management of the response, coming from the GraphQL server
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
GraphqlUtils.checkFieldOfGraphQLType(String name,
Boolean shouldBeScalar,
Class<?> owningClass)
Check if the given field is owned by the class of this
ObjectResponse. |
void |
GraphqlUtils.checkName(String graphqlIdentifier)
Checks that the given GraphQL name is valid.
|
Class<?> |
GraphqlUtils.getGraphQLType(AccessibleObject fieldOrMethod)
Returns the Class indicated as the value for the graphqlType attribute of the GraphQLScalar or GraphQLNonScalar
annotation
|
boolean |
GraphqlUtils.isScalar(AccessibleObject fieldOrMethod)
Indicates whether the given class is a scalar or not
|
| Modifier and Type | Method and Description |
|---|---|
ObjectResponse |
Builder.build()
Returns the built
ObjectResponse. |
static Builder |
ObjectResponse.newQueryResponseDefBuilder(Class<?> clazz,
String fieldName)
Contruct a new
Builder. |
static Builder |
ObjectResponse.newQueryResponseDefBuilder(Class<?> clazz,
String fieldName,
String fieldAlias)
Contruct a new
Builder |
Builder |
Builder.withField(String fieldName)
Adds a scalar field with no alias, to the
ObjectResponse we are building |
Builder |
Builder.withField(String fieldName,
String alias)
Adds a scalar field with an alias, to the
ObjectResponse we are building |
Builder |
Builder.withQueryResponseDef(String queryResponseDef)
Builds a
ObjectResponse from a part of a GraphQL query. |
Builder |
Builder.withSubObject(String fieldName,
ObjectResponse objectResponse)
Adds a non scalar field (a subobject) without alias, to the
ObjectResponse we are building |
Builder |
Builder.withSubObject(String fieldName,
String fieldAlias,
ObjectResponse subobjetResponseDef)
Adds a scalar field (a subobject) with an alias, to the
ObjectResponse we are building |
| Modifier and Type | Class and Description |
|---|---|
class |
GraphQLInternalErrorException
Thrown when an internal error of the GraphQL generator occurs
|
Copyright © 2019. All rights reserved.