C# 클래스 GraphQL.DocumentExecuter

상속: IDocumentExecuter
파일 보기 프로젝트 열기: graphql-dotnet/graphql-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
BuildExecutionContext ( ISchema schema, object root, Document document, Operation operation, Inputs inputs, object userContext, CancellationToken cancellationToken, Metrics metrics ) : ExecutionContext
CoerceValue ( ISchema schema, IGraphType type, IValue input, Variables variables = null ) : object
CollectFields ( ExecutionContext context, IGraphType specificType, SelectionSet selectionSet, Fields>.Dictionary fields, List visitedFragmentNames ) : Fields>.Dictionary
CompleteValueAsync ( ExecutionContext context, IGraphType fieldType, Fields fields, object result ) : Task
DocumentExecuter ( ) : System
DocumentExecuter ( IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer ) : System
DoesFragmentConditionMatch ( ExecutionContext context, string fragmentName, IGraphType type ) : bool
ExecuteAsync ( Action configure ) : Task
ExecuteAsync ( ExecutionOptions config ) : Task
ExecuteAsync ( ISchema schema, object root, string query, string operationName, Inputs inputs = null, object userContext = null, CancellationToken cancellationToken = default(CancellationToken), IEnumerable rules = null ) : Task
ExecuteFieldsAsync ( ExecutionContext context, IObjectGraphType rootType, object source, Fields>.Dictionary fields ) : object>>.Task
ExecuteOperationAsync ( ExecutionContext context ) : object>>.Task
GetArgumentValues ( ISchema schema, QueryArguments definitionArguments, System.Arguments astArguments, Variables variables ) : object>.Dictionary
GetFieldDefinition ( ISchema schema, IObjectGraphType parentType, Field field ) : GraphQL.Types.FieldType
GetOperationRootType ( Document document, ISchema schema, Operation operation ) : IObjectGraphType
GetVariableValue ( Document document, ISchema schema, VariableDefinition variable, object input ) : object
GetVariableValues ( Document document, ISchema schema, VariableDefinitions variableDefinitions, Inputs inputs ) : Variables
IsValidValue ( ISchema schema, IGraphType type, object input ) : bool
ResolveFieldAsync ( ExecutionContext context, IObjectGraphType parentType, object source, Fields fields ) : Task>
ShouldIncludeNode ( ExecutionContext context, Directives directives ) : bool

비공개 메소드들

메소드 설명
GenerateError ( ResolveFieldResult resolveResult, Field field, ExecutionContext context, Exception exc ) : ResolveFieldResult
GetOperation ( string operationName, Document document ) : Operation
ValueFromAst ( IValue value ) : object
ValueFromScalar ( ScalarGraphType scalar, object input ) : object

메소드 상세

BuildExecutionContext() 공개 메소드

public BuildExecutionContext ( ISchema schema, object root, Document document, Operation operation, Inputs inputs, object userContext, CancellationToken cancellationToken, Metrics metrics ) : ExecutionContext
schema ISchema
root object
document GraphQL.Language.AST.Document
operation Operation
inputs Inputs
userContext object
cancellationToken System.Threading.CancellationToken
metrics Metrics
리턴 GraphQL.Execution.ExecutionContext

CoerceValue() 공개 메소드

public CoerceValue ( ISchema schema, IGraphType type, IValue input, Variables variables = null ) : object
schema ISchema
type IGraphType
input IValue
variables Variables
리턴 object

CollectFields() 공개 메소드

public CollectFields ( ExecutionContext context, IGraphType specificType, SelectionSet selectionSet, Fields>.Dictionary fields, List visitedFragmentNames ) : Fields>.Dictionary
context GraphQL.Execution.ExecutionContext
specificType IGraphType
selectionSet GraphQL.Language.AST.SelectionSet
fields Fields>.Dictionary
visitedFragmentNames List
리턴 Fields>.Dictionary

CompleteValueAsync() 공개 메소드

public CompleteValueAsync ( ExecutionContext context, IGraphType fieldType, Fields fields, object result ) : Task
context GraphQL.Execution.ExecutionContext
fieldType IGraphType
fields Fields
result object
리턴 Task

DocumentExecuter() 공개 메소드

public DocumentExecuter ( ) : System
리턴 System

DocumentExecuter() 공개 메소드

public DocumentExecuter ( IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer ) : System
documentBuilder IDocumentBuilder
documentValidator IDocumentValidator
complexityAnalyzer IComplexityAnalyzer
리턴 System

DoesFragmentConditionMatch() 공개 메소드

public DoesFragmentConditionMatch ( ExecutionContext context, string fragmentName, IGraphType type ) : bool
context GraphQL.Execution.ExecutionContext
fragmentName string
type IGraphType
리턴 bool

ExecuteAsync() 공개 메소드

public ExecuteAsync ( Action configure ) : Task
configure Action
리턴 Task

ExecuteAsync() 공개 메소드

public ExecuteAsync ( ExecutionOptions config ) : Task
config ExecutionOptions
리턴 Task

ExecuteAsync() 공개 메소드

public ExecuteAsync ( ISchema schema, object root, string query, string operationName, Inputs inputs = null, object userContext = null, CancellationToken cancellationToken = default(CancellationToken), IEnumerable rules = null ) : Task
schema ISchema
root object
query string
operationName string
inputs Inputs
userContext object
cancellationToken System.Threading.CancellationToken
rules IEnumerable
리턴 Task

ExecuteFieldsAsync() 공개 메소드

public ExecuteFieldsAsync ( ExecutionContext context, IObjectGraphType rootType, object source, Fields>.Dictionary fields ) : object>>.Task
context GraphQL.Execution.ExecutionContext
rootType IObjectGraphType
source object
fields Fields>.Dictionary
리턴 object>>.Task

ExecuteOperationAsync() 공개 메소드

public ExecuteOperationAsync ( ExecutionContext context ) : object>>.Task
context GraphQL.Execution.ExecutionContext
리턴 object>>.Task

GetArgumentValues() 공개 메소드

public GetArgumentValues ( ISchema schema, QueryArguments definitionArguments, System.Arguments astArguments, Variables variables ) : object>.Dictionary
schema ISchema
definitionArguments QueryArguments
astArguments System.Arguments
variables Variables
리턴 object>.Dictionary

GetFieldDefinition() 공개 메소드

public GetFieldDefinition ( ISchema schema, IObjectGraphType parentType, Field field ) : GraphQL.Types.FieldType
schema ISchema
parentType IObjectGraphType
field GraphQL.Language.AST.Field
리턴 GraphQL.Types.FieldType

GetOperationRootType() 공개 메소드

public GetOperationRootType ( Document document, ISchema schema, Operation operation ) : IObjectGraphType
document GraphQL.Language.AST.Document
schema ISchema
operation Operation
리턴 IObjectGraphType

GetVariableValue() 공개 메소드

public GetVariableValue ( Document document, ISchema schema, VariableDefinition variable, object input ) : object
document GraphQL.Language.AST.Document
schema ISchema
variable VariableDefinition
input object
리턴 object

GetVariableValues() 공개 메소드

public GetVariableValues ( Document document, ISchema schema, VariableDefinitions variableDefinitions, Inputs inputs ) : Variables
document GraphQL.Language.AST.Document
schema ISchema
variableDefinitions VariableDefinitions
inputs Inputs
리턴 Variables

IsValidValue() 공개 메소드

public IsValidValue ( ISchema schema, IGraphType type, object input ) : bool
schema ISchema
type IGraphType
input object
리턴 bool

ResolveFieldAsync() 공개 메소드

public ResolveFieldAsync ( ExecutionContext context, IObjectGraphType parentType, object source, Fields fields ) : Task>
context GraphQL.Execution.ExecutionContext
parentType IObjectGraphType
source object
fields Fields
리턴 Task>

ShouldIncludeNode() 공개 메소드

public ShouldIncludeNode ( ExecutionContext context, Directives directives ) : bool
context GraphQL.Execution.ExecutionContext
directives Directives
리턴 bool