public class GQLExecutor extends Object
| 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)
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)
Initialize GraphQL executorManualMetaModel from given
GQLMetaModel with a callback IGQLExecutorCallback |
| Modifier and Type | Method and Description |
|---|---|
GQLExecutionResult |
execute(graphql.ExecutionInput executionInput)
Execute given
ExecutionInput |
GQLExecutionResult |
execute(String requestString)
Wrapper for execution
|
GQLExecutionResult |
execute(String requestString,
String operationName,
Object context,
Map<String,Object> arguments)
Wrapper for execution
|
IGQLErrorProcessor |
getErrorProcessor() |
graphql.GraphQL |
getGraphql() |
GQLInternalMetaModel |
getMetaModel() |
graphql.schema.GraphQLSchema |
getSchema() |
protected GQLExecutionResult |
wrapResult(graphql.ExecutionResult executionResult)
Wrap result
|
public 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)
GQLMetaModel with no callbackschemaConfig - the schema configuration GQLSchemaConfigmetaModel - the meta modelerrorProcessor - the IGQLErrorProcessorgetByIdDataFetcher - the DataFetcher for 'getById' methodslistDataFetcher - the DataFetcher for 'getAll' methodssaveDataFetcher - the DataFetcher for 'save' methodsdeleteDataFetcher - the DataFetcher for 'delete' methodscustomMethodDataFetcher - the DataFetcher for custom methodspropertyDataFetchers - custom GQLPropertyDataFetcher listpublic 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)
GQLMetaModel with a callback IGQLExecutorCallbackschemaConfig - the schema configuration GQLSchemaConfigmetaModel - the meta modelerrorProcessor - the IGQLErrorProcessorcallback - the IGQLExecutorCallbackgetByIdDataFetcher - the DataFetcher for 'getById' methodslistDataFetcher - the DataFetcher for 'getAll' methodssaveDataFetcher - the DataFetcher for 'save' methodsdeleteDataFetcher - the DataFetcher for 'delete' methodscustomMethodDataFetcher - the DataFetcher for custom methodspropertyDataFetchers - custom GQLPropertyDataFetcher listpublic GQLExecutionResult execute(String requestString)
requestString - the request content as stringGQLExecutionResultpublic GQLExecutionResult execute(String requestString, String operationName, Object context, Map<String,Object> arguments)
requestString - the request content as stringoperationName - the operation namecontext - the context objectarguments - the arguments MapGQLExecutionResultpublic GQLExecutionResult execute(graphql.ExecutionInput executionInput)
ExecutionInputexecutionInput - the ExecutionInputGQLExecutionResultprotected GQLExecutionResult wrapResult(graphql.ExecutionResult executionResult)
executionResult - the ExecutionResultGQLExecutionResultpublic graphql.schema.GraphQLSchema getSchema()
public graphql.GraphQL getGraphql()
public IGQLErrorProcessor getErrorProcessor()
public GQLInternalMetaModel getMetaModel()
Copyright © 2019. All rights reserved.