| Package | Description |
|---|---|
| com.daikit.graphql.builder | |
| com.daikit.graphql.builder.types | |
| com.daikit.graphql.execution | |
| com.daikit.graphql.meta.attribute | |
| com.daikit.graphql.meta.entity |
| Modifier and Type | Field and Description |
|---|---|
static GQLExecutionContext |
GQLExecutionContext.DEFAULT
Default execution context.
|
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLSchema |
GQLSchemaBuilder.build(GQLExecutionContext executionContext,
GQLSchemaConfig schemaConfig,
GQLInternalMetaModel internalMetaModel,
graphql.schema.DataFetcher<?> getByIdDataFetcher,
graphql.schema.DataFetcher<GQLListLoadResult> listDataFetcher,
graphql.schema.DataFetcher<?> saveDataFetcher,
graphql.schema.DataFetcher<GQLDeleteResult> deleteDataFetcher,
graphql.schema.DataFetcher<?> customMethodDataFetcher,
List<GQLPropertyDataFetcher<?>> propertyDataFetchers)
Initialize GraphQL schema from given
GQLMetaModel |
| Modifier and Type | Method and Description |
|---|---|
protected Map<GQLAbstractAttributeMetaData,graphql.schema.GraphQLFieldDefinition> |
GQLAbstractTypesBuilder.buildEntityFieldDefinitions(GQLExecutionContext executionContext,
GQLEntityMetaData entity) |
void |
GQLEntityTypesBuilder.buildEntityTypes(GQLExecutionContext executionContext,
GQLInternalMetaModel metaModel,
List<GQLPropertyDataFetcher<?>> propertiesDataFetchers)
Build entities
GraphQLObjectType types from given
GQLInternalMetaModel |
void |
GQLInputEntityTypesBuilder.buildInputEntities(GQLExecutionContext executionContext,
GQLInternalMetaModel metaModel)
Build
GraphQLObjectType from given GQLInternalMetaModel |
void |
GQLInterfaceTypesBuilder.buildInterfaceTypes(GQLExecutionContext executionContext,
GQLInternalMetaModel metaModel,
List<GQLPropertyDataFetcher<?>> propertiesDataFetchers)
Build abstract entities
GraphQLInterfaceType types from given
GQLInternalMetaModel |
graphql.schema.GraphQLObjectType |
GQLMutationTypeBuilder.buildMutationType(GQLExecutionContext executionContext,
GQLInternalMetaModel metaModel,
graphql.schema.DataFetcher<?> saveDataFetcher,
graphql.schema.DataFetcher<GQLDeleteResult> deleteDataFetcher,
graphql.schema.DataFetcher<?> customMethodsDataFetcher)
Build mutation type
|
graphql.schema.GraphQLObjectType |
GQLQueryTypeBuilder.buildQueryType(GQLExecutionContext executionContext,
GQLInternalMetaModel metaModel,
graphql.schema.DataFetcher<?> getByIdDataFetcher,
graphql.schema.DataFetcher<GQLListLoadResult> listDataFetcher,
graphql.schema.DataFetcher<?> customMethodsDataFetcher)
Build query type
|
| Modifier and Type | Method and Description |
|---|---|
GQLExecutionContext |
GQLExecutor.getDefaultExecutionContext() |
GQLExecutionContext |
GQLRootContext.getExecutionContext() |
| Modifier and Type | Method and Description |
|---|---|
Set<GQLExecutionContext> |
GQLExecutor.getAllExecutionContexts() |
| Modifier and Type | Method and Description |
|---|---|
GQLExecutionResult |
GQLExecutor.execute(GQLExecutionContext executionContext,
graphql.ExecutionInput executionInput)
Execute given
ExecutionInput |
GQLExecutionResult |
GQLExecutor.execute(GQLExecutionContext executionContext,
String requestString)
Wrapper for execution
|
GQLExecutionResult |
GQLExecutor.execute(GQLExecutionContext executionContext,
String requestString,
String operationName,
Object rootContext,
Map<String,Object> arguments)
Wrapper for execution
|
Optional<graphql.GraphQL> |
GQLExecutor.getGraphql(GQLExecutionContext executionContext)
Get graphQL executor for given context
|
Optional<graphql.schema.GraphQLSchema> |
GQLExecutor.getSchema(GQLExecutionContext executionContext)
Get schema for given context
|
default void |
IGQLExecutorCallback.onAfterExecute(GQLExecutionContext executionContext,
graphql.ExecutionInput executionInput,
GQLExecutionResult executionResult)
Callback after execution
|
default void |
IGQLExecutorCallback.onBeforeExecute(GQLExecutionContext executionContext,
graphql.ExecutionInput executionInput)
Callback before execution
|
void |
GQLRootContext.setExecutionContext(GQLExecutionContext executionContext) |
| Constructor and Description |
|---|
GQLRootContext(GQLExecutionContext executionContext,
Object customContext)
Constructor
|
| Constructor and Description |
|---|
GQLExecutor(GQLSchemaConfig schemaConfig,
GQLMetaModel metaModel,
IGQLErrorProcessor errorProcessor,
graphql.schema.DataFetcher<?> getByIdDataFetcher,
graphql.schema.DataFetcher<GQLListLoadResult> listDataFetcher,
graphql.schema.DataFetcher<?> saveDataFetcher,
graphql.schema.DataFetcher<GQLDeleteResult> deleteDataFetcher,
graphql.schema.DataFetcher<?> customMethodDataFetcher,
List<GQLPropertyDataFetcher<?>> propertyDataFetchers,
List<GQLExecutionContext> allPossibleExecutionContexts)
Initialize GraphQL executorManualMetaModel from given
GQLMetaModel with no callback |
GQLExecutor(GQLSchemaConfig schemaConfig,
GQLMetaModel metaModel,
IGQLErrorProcessor errorProcessor,
IGQLExecutorCallback callback,
graphql.schema.DataFetcher<?> getByIdDataFetcher,
graphql.schema.DataFetcher<GQLListLoadResult> listDataFetcher,
graphql.schema.DataFetcher<?> saveDataFetcher,
graphql.schema.DataFetcher<GQLDeleteResult> deleteDataFetcher,
graphql.schema.DataFetcher<?> customMethodDataFetcher,
List<GQLPropertyDataFetcher<?>> propertyDataFetchers,
List<GQLExecutionContext> allPossibleExecutionContexts)
Initialize GraphQL executorManualMetaModel from given
GQLMetaModel with a callback IGQLExecutorCallback |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GQLAbstractAttributeMetaData.isMandatoryForCreate(GQLExecutionContext executionContext)
Get whether this attribute is mandatory for creation in given context
|
boolean |
GQLAbstractAttributeMetaData.isMandatoryForUpdate(GQLExecutionContext executionContext)
Get whether this attribute is mandatory for update in given context
|
boolean |
GQLAbstractAttributeMetaData.isNullableForCreate(GQLExecutionContext executionContext)
Get whether this attribute is nullable for creation in given context
|
boolean |
GQLAbstractAttributeMetaData.isNullableForUpdate(GQLExecutionContext executionContext)
Get whether this attribute is nullable for update in given context
|
boolean |
GQLAbstractAttributeMetaData.isReadable(GQLExecutionContext executionContext)
Get whether this attribute is readable in given context
|
boolean |
GQLAbstractAttributeMetaData.isSaveable(GQLExecutionContext executionContext)
Get whether this attribute is saveable in given context
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GQLEntityMetaData.isDeletable(GQLExecutionContext executionContext)
Get whether this entity is deleteable in given context
|
boolean |
GQLEntityMetaData.isReadable(GQLExecutionContext executionContext)
Get whether this entity is readable in given context
|
boolean |
GQLEntityMetaData.isSaveable(GQLExecutionContext executionContext)
Get whether this entity is saveable in given context
|
Copyright © 2019–2020. All rights reserved.