GraphZen
  • Home
  • Blog
  • Documentation
  • API
  • Get Started
  • GraphZen.TypeSystem
  • FieldBuilder<TDeclaringType, TField, TContext>
Show / Hide Table of Contents
  • GraphZen
    • DocumentValidator
    • GraphQLCanBeNullAttribute
    • GraphQLContext
    • GraphQLContextOptions
    • GraphQLContextOptions<TContext>
    • GraphQLContextOptionsBuilder
    • GraphQLContextOptionsBuilder<TContext>
    • GraphQLDeprecatedAttribute
    • GraphQLError
    • GraphQLException
    • GraphQLIgnoreAttribute
    • GraphQLListItemCanBeNullAttribute
    • GraphQLListItemNonNullAttribute
    • GraphQLNameAttribute
    • GraphQLNonNullAttribute
    • GraphQLObjectAttribute
    • GraphQLTypeAttribute
    • GraphQLUnionAttribute
    • GraphZenApplicationBuilderExtensions
    • GraphZenServiceCollectionExtensions
    • IDocumentValidator
    • IGraphQLDirective
    • PlaygroundApplicationBuilderExtensions
    • Program
  • GraphZen.CodeGen
    • CodeGenHelpers
    • CodeGenStringBuilderExtensions
    • CodeGenTasks
  • GraphZen.LanguageModel
    • ArgumentSyntax
    • ArgumentSyntaxExtensions
    • BooleanValueSyntax
    • BooleanValueSyntaxExtensions
    • Break
    • ContinueAction
    • DefinitionSyntax
    • DirectiveDefinitionSyntax
    • DirectiveDefinitionSyntaxExtensions
    • DirectiveLocation
    • DirectiveSyntax
    • DirectiveSyntaxExtensions
    • DocumentSyntax
    • DocumentSyntaxExtensions
    • EnumTypeDefinitionSyntax
    • EnumTypeDefinitionSyntaxExtensions
    • EnumTypeExtensionSyntax
    • EnumTypeExtensionSyntaxExtensions
    • EnumValueDefinitionSyntax
    • EnumValueDefinitionSyntaxExtensions
    • EnumValueSyntax
    • EnumValueSyntaxExtensions
    • ExecutableDefinitionSyntax
    • FieldDefinitionSyntax
    • FieldDefinitionSyntaxExtensions
    • FieldSyntax
    • FieldSyntaxExtensions
    • FloatValueSyntax
    • FloatValueSyntaxExtensions
    • FragmentDefinitionSyntax
    • FragmentDefinitionSyntaxExtensions
    • FragmentSpreadSyntax
    • FragmentSpreadSyntaxExtensions
    • GraphQLSyntaxVisitor
    • GraphQLSyntaxVisitor<TResult>
    • GraphQLSyntaxWalker
    • GraphQLSyntaxWalker<TResult>
    • IArgumentsNode
    • IDescribedSyntax
    • IDirectivesSyntax
    • IFieldsNode
    • IFragmentTypeConditionSyntax
    • INamedSyntax
    • InlineFragmentSyntax
    • InlineFragmentSyntaxExtensions
    • InputObjectTypeDefinitionSyntax
    • InputObjectTypeDefinitionSyntaxExtensions
    • InputObjectTypeExtensionSyntax
    • InputObjectTypeExtensionSyntaxExtensions
    • InputValueDefinitionSyntax
    • InputValueDefinitionSyntaxExtensions
    • InterfaceTypeDefinitionSyntax
    • InterfaceTypeDefinitionSyntaxExensions
    • InterfaceTypeDefinitionSyntaxExtensions
    • InterfaceTypeExtensionSyntax
    • InterfaceTypeExtensionSyntaxExtensions
    • IntValueSyntax
    • IntValueSyntaxExtensions
    • IParser
    • IPrinter
    • ISyntaxNodeLocation
    • ListTypeSyntax
    • ListTypeSyntaxExtensions
    • ListValueSyntax
    • ListValueSyntaxExtensions
    • NamedSyntaxExtensions
    • NamedTypeSyntax
    • NamedTypeSyntaxExtensions
    • NameSyntax
    • NameSyntaxExtensions
    • NonNullTypeSyntax
    • NonNullTypeSyntaxExtensions
    • NullableTypeSyntax
    • NullValueSyntax
    • NullValueSyntaxExtensions
    • ObjectFieldSyntax
    • ObjectFieldSyntaxExtensions
    • ObjectTypeDefinitionSyntax
    • ObjectTypeDefinitionSyntaxExtensions
    • ObjectTypeExtensionSyntax
    • ObjectTypeExtensionSyntaxExtensions
    • ObjectValueSyntax
    • ObjectValueSyntaxExtensions
    • OperationDefinitionSyntax
    • OperationDefinitionSyntaxExtensions
    • OperationType
    • OperationTypeDefinitionSyntax
    • OperationTypeDefinitionSyntaxExtensions
    • ParallelSyntaxWalker
    • PunctuatorSyntax
    • PunctuatorSyntaxExtensions
    • ScalarTypeDefinitionSyntax
    • ScalarTypeDefinitionSyntaxExtensions
    • ScalarTypeExtensionSyntax
    • ScalarTypeExtensionSyntaxExtensions
    • SchemaDefinitionSyntax
    • SchemaDefinitionSyntaxExtensions
    • SchemaExtensionSyntax
    • SchemaExtensionSyntaxExtensions
    • SelectionSetSyntax
    • SelectionSetSyntaxExtensions
    • SelectionSyntax
    • Skip
    • Source
    • SourceLocation
    • StringValueSyntax
    • StringValueSyntaxExtensions
    • SyntaxFactory
    • SyntaxKind
    • SyntaxLocation
    • SyntaxNode
    • SyntaxNodeExtensions
    • TypeDefinitionSyntax
    • TypeExtensionSyntax
    • TypeSyntax
    • TypeSystemDefinitionSyntax
    • TypeSystemExtensionSyntax
    • UnionTypeDefinitionSyntax
    • UnionTypeDefinitionSyntaxExtensions
    • UnionTypeExtensionSyntax
    • UnionTypeExtensionSyntaxExtensions
    • ValueSyntax
    • VariableDefinitionSyntax
    • VariableDefinitionSyntaxExtensions
    • VariableSyntax
    • VariableSyntaxExtensions
    • VisitAction
    • VistitorContext
  • GraphZen.LanguageModel.Validation
    • DocumentValidationContext
    • DocumentValidationRules
    • DocumentValidationRuleVisitor
    • ParallelValidationVisitor
    • ValidationContext
    • ValidationRule
    • ValidationRuleVisitor
  • GraphZen.LanguageModel.Validation.Rules
    • EnumTypesMustBeWellDefined
    • FieldArgsMustBeProperlyNamed
    • FieldArgumentsMustHaveInputTypes
    • InputObjectFieldsMustHaveInputTypes
    • InputObjectsMustHaveFields
    • InterfaceExtensionsShouldBeValid
    • InterfaceFieldsMustHaveOutputTypes
    • LoneSchemaDefinition
    • ObjectFieldsMustHaveOutputTypes
    • ObjectsCanOnlyImplementUniqueInterfaces
    • ObjectsMustAdhereToInterfaceTheyImplement
    • ObjectsMustHaveFields
    • SchemaMustHaveRootObjectTypes
    • UnionTypesMustBeValid
  • GraphZen.QueryEngine
    • ExecutionOptions
    • ExecutionResult
    • Executor
    • IExecutionContext
    • IExecutor
  • GraphZen.QueryEngine.Validation
    • IQueryValidator
    • QueryValidationContext
    • QueryValidationRules
    • QueryValidationRuleVisitor
    • QueryValidator
  • GraphZen.QueryEngine.Validation.Rules
    • ExecutableDefinitions
    • FieldsOnCorrectType
    • FragmentsOnCompositeTypes
    • InputDocumentNonConflictingVariableInference
    • KnownArgumentNames
    • KnownDirectives
    • KnownFragmentNames
    • KnownTypeNames
    • LoneAnonymousOperation
    • NoFragmentCycles
    • NoUndefinedVariables
    • NoUnusedFragments
    • NoUnusedVariables
    • OverlappingFieldsCanBeMerged
    • PossibleFragmentSpreads
    • ProvidedRequiredArguments
    • ScalarLeafs
    • SingleFieldSubscriptions
    • UniqueArgumentNames
    • UniqueDirectivesPerLocation
    • UniqueFragmentNames
    • UniqueInputFieldNames
    • UniqueOperationNames
    • UniqueVariableNames
    • ValuesOfCorrectType
    • VariablesAreInputTypes
    • VariablesInAllowedPosition
  • GraphZen.TypeSystem
    • AnnotatableMember
    • AnnotatableMemberDefinition
    • Argument
    • ArgumentDefinition
    • DefaultIDirectiveAnnotationSyntaxConverter
    • DeprecatedBuilderExtensions
    • Directive
    • DirectiveAnnotation
    • DirectiveBuilder<TDirective>
    • DirectiveDefinition
    • DirectiveDefinitionArgumentsAccessorExtensions
    • EnumType
    • EnumTypeBuilder<TEnum>
    • EnumTypeDefinition
    • EnumTypeDefinitionValuesAccessorExtensions
    • EnumTypeValuesAccessorExtensions
    • EnumTypeValuesByValueAccessorExtensions
    • EnumValue
    • EnumValueBuilder
    • EnumValueDefinition
    • Field
    • FieldArgumentsAccessorExtensions
    • FieldBuilder<TDeclaringType, TField, TContext>
    • FieldDefinition
    • FieldDefinitionArgumentsAccessorExtensions
    • FieldsDefinition
    • FieldsDefinitionFieldsAccessorExtensions
    • GraphQLTypeExtensions
    • GraphQLTypes
    • IAnnotableBuilder<TBuilder>
    • IArgumentsArgumentsAccessorExtensions
    • IArgumentsDefinitionBuilder<TBuilder>
    • IDirectiveBuilder<TDirective>
    • IEnumTypeBuilder<TEnumValue>
    • IEnumValueBuilder
    • IFieldBuilder<TDeclaringType, TField, TContext>
    • IFieldsDefinitionBuilder<TBuilder, TSource, TContext>
    • IInputObjectTypeBuilder<TInputObject>
    • IInterfaceTypeBuilder<TInterface, TContext>
    • InputField
    • InputFieldDefinition
    • InputObjectType
    • InputObjectTypeBuilder<TInputObject>
    • InputObjectTypeDefinition
    • InputObjectTypeDefinitionFieldsAccessorExtensions
    • InputObjectTypeFieldsAccessorExtensions
    • InputValue
    • InputValueBuilder
    • InputValueDefinition
    • InterfaceType
    • InterfaceTypeBuilder<TInterface, TContext>
    • InterfaceTypeDefinition
    • InterfaceTypeDefinitionFieldsAccessorExtensions
    • InterfaceTypeFieldsAccessorExtensions
    • Introspection
    • IObjectTypeBuilder<TObject, TContext>
    • IScalarTypeBuilder<TScalar, TValueNode>
    • ISchemaBuilder<TContext>
    • IsTypeOf<TObject, TContext>
    • ISyntaxConverter
    • IUnionTypeBuilder<TUnion, TContext>
    • LeafLiteralParser<TScalar, TValueNode>
    • LeafSerializer
    • LeafSerializer<TScalar>
    • LeafValueParser
    • LeafValueParser<TScalar>
    • ListType
    • Member
    • MemberDefinition
    • NamedType
    • NamedTypeDefinition
    • NonNullType
    • ObjectType
    • ObjectTypeBuilder<TObject, TContext>
    • ObjectTypeDefinition
    • ObjectTypeDefinitionFieldsAccessorExtensions
    • ObjectTypeFieldsAccessorExtensions
    • Resolver<TSource, TResult>
    • ScalarType
    • ScalarTypeBuilder<TScalar, TValueNode>
    • ScalarTypeDefinition
    • Schema
    • SchemaBuilder
    • SchemaBuilder<TContext>
    • SchemaBuilderExtensions
    • SchemaDefinition
    • SchemaDefinitionExtensions
    • SchemaExtensions
    • SchemaPrinter
    • SpecDirectives
    • SpecScalars
    • SyntaxConverter
    • SyntaxHelpers
    • TypeComparators
    • TypeIdentity
    • TypeKind
    • TypeKindHelpers
    • TypeReference
    • TypeResolver
    • TypeResolver<TSource, TContext>
    • UnionType
    • UnionTypeBuilder<TUnion, TContext>
    • UnionTypeDefinition
  • GraphZen.TypeSystem.Taxonomy
    • IAbstractType
    • IAbstractTypeDefinition
    • IAnnotatableDefinition
    • IArgument
    • IArgumentDefinition
    • IArguments
    • IArgumentsDefinition
    • IClrInfo
    • IClrType
    • ICompositeType
    • ICompositeTypeDefinition
    • IDeprecation
    • IDescription
    • IDirective
    • IDirectiveAnnotation
    • IDirectiveAnnotations
    • IDirectiveAnnotationsDefinition
    • IDirectiveDefinition
    • IDirectiveLocations
    • IDirectiveLocationsDefinition
    • IDirectives
    • IDirectivesDefinition
    • IEnumType
    • IEnumTypeDefinition
    • IEnumTypes
    • IEnumTypesDefinition
    • IEnumValue
    • IEnumValueDefinition
    • IEnumValues
    • IEnumValuesDefinition
    • IField
    • IFieldDefinition
    • IFields
    • IFieldsDefinition
    • IGraphQLType
    • IGraphQLTypeReference
    • IInputDefinition
    • IInputField
    • IInputFieldDefinition
    • IInputFields
    • IInputFieldsDefinition
    • IInputObjectType
    • IInputObjectTypeDefinition
    • IInputObjectTypes
    • IInputObjectTypesDefinition
    • IInputValue
    • IInputValueDefinition
    • IInterfaces
    • IInterfacesDefinition
    • IInterfaceType
    • IInterfaceTypeDefinition
    • IInterfaceTypes
    • IInterfaceTypesDefinition
    • ILeafType
    • ILeafTypeDefinition
    • IListType
    • ILiteralParser
    • ILiteralParserDefinition
    • IMember
    • IMemberDefinition
    • IMemberTypes
    • IMemberTypesDefinition
    • IMutableAbstractTypeDefinition
    • IMutableAnnotatableDefinition
    • IMutableArgumentDefinition
    • IMutableArgumentsDefinition
    • IMutableClrType
    • IMutableDefinition
    • IMutableDeprecation
    • IMutableDescription
    • IMutableDirectiveAnnotationsDefinition
    • IMutableDirectiveDefinition
    • IMutableDirectiveLocationsDefinition
    • IMutableDirectivesDefinition
    • IMutableEnumTypeDefinition
    • IMutableEnumTypesDefinition
    • IMutableEnumValueDefinition
    • IMutableEnumValuesDefinition
    • IMutableFieldDefinition
    • IMutableFieldsDefinition
    • IMutableInputFieldDefinition
    • IMutableInputFieldsDefinition
    • IMutableInputObjectTypeDefinition
    • IMutableInputObjectTypesDefinition
    • IMutableInputValueDefinition
    • IMutableInterfacesDefinition
    • IMutableInterfaceTypeDefinition
    • IMutableInterfaceTypesDefinition
    • IMutableLiteralParserDefinition
    • IMutableMemberTypesDefinition
    • IMutableMutationTypeDefinition
    • IMutableNamed
    • IMutableNamedTypeDefinition
    • IMutableObjectTypeDefinition
    • IMutableObjectTypesDefinition
    • IMutableQueryTypeDefinition
    • IMutableScalarTypeDefinition
    • IMutableScalarTypesDefinition
    • IMutableSchemaDefinition
    • IMutableSerializerDefinition
    • IMutableSubscriptionTypeDefinition
    • IMutableUnionTypeDefinition
    • IMutableUnionTypesDefinition
    • IMutableValueParserDefinition
    • IMutationType
    • IMutationTypeDefinition
    • INamed
    • INamedType
    • INamedTypeDefinition
    • INamedTypeReference
    • INonNullType
    • INullableType
    • IObjectType
    • IObjectTypeDefinition
    • IObjectTypes
    • IObjectTypesDefinition
    • IOutputDefinition
    • IQueryType
    • IQueryTypeDefinition
    • IScalarType
    • IScalarTypeDefinition
    • IScalarTypes
    • IScalarTypesDefinition
    • ISchema
    • ISchemaDefinition
    • ISerializer
    • ISerializerDefinition
    • ISubscriptionType
    • ISubscriptionTypeDefinition
    • ISyntaxConvertable
    • IUnionType
    • IUnionTypeDefinition
    • IUnionTypes
    • IUnionTypesDefinition
    • IValueParser
    • IValueParserDefinition
    • IWrappingNullableType
    • IWrappingType
  • GraphZen.Utilities
    • Helpers
    • TypeInfo

Class FieldBuilder<TDeclaringType, TField, TContext>

Inheritance
Object
FieldBuilder<TDeclaringType, TField, TContext>
Implements
IFieldBuilder<TDeclaringType, TField, TContext>
IAnnotableBuilder<IFieldBuilder<TDeclaringType, TField, TContext>>
IArgumentsDefinitionBuilder<IFieldBuilder<TDeclaringType, TField, TContext>>
Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
public class FieldBuilder<TDeclaringType, TField, TContext> : IFieldBuilder<TDeclaringType, TField, TContext>, IAnnotableBuilder<IFieldBuilder<TDeclaringType, TField, TContext>>, IArgumentsDefinitionBuilder<IFieldBuilder<TDeclaringType, TField, TContext>>, IInfrastructure<InternalFieldBuilder> where TContext : GraphQLContext
Type Parameters
Name Description
TDeclaringType
TField
TContext

Constructors

FieldBuilder(InternalFieldBuilder)

Declaration
public FieldBuilder(InternalFieldBuilder builder)
Parameters
Type Name Description
GraphZen.TypeSystem.Internal.InternalFieldBuilder builder

Methods

Argument(String)

Declaration
public InputValueBuilder Argument(string name)
Parameters
Type Name Description
String name
Returns
Type Description
InputValueBuilder

Argument(String, Action<InputValueBuilder>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Argument(string name, Action<InputValueBuilder> configurator)
Parameters
Type Name Description
String name
Action<InputValueBuilder> configurator
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Argument(String, String, Action<InputValueBuilder>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Argument(string name, string type, Action<InputValueBuilder> configurator = null)
Parameters
Type Name Description
String name
String type
Action<InputValueBuilder> configurator
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Argument<TArg>(String, Action<InputValueBuilder>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Argument<TArg>(string name, Action<InputValueBuilder> configurator = null)
Parameters
Type Name Description
String name
Action<InputValueBuilder> configurator
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>
Type Parameters
Name Description
TArg

Deprecated(Boolean)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Deprecated(bool deprecated = true)
Parameters
Type Name Description
Boolean deprecated
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Deprecated(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Deprecated(string reason)
Parameters
Type Name Description
String reason
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Description(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Description(string description)
Parameters
Type Name Description
String description
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

DirectiveAnnotation(String, Object)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> DirectiveAnnotation(string name, object value = null)
Parameters
Type Name Description
String name
Object value
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

FieldType(String)

Declaration
public IFieldBuilder<TDeclaringType, object, TContext> FieldType(string type)
Parameters
Type Name Description
String type
Returns
Type Description
IFieldBuilder<TDeclaringType, Object, TContext>

FieldType<TFieldNew>(Boolean)

Declaration
public IFieldBuilder<TDeclaringType, TFieldNew, TContext> FieldType<TFieldNew>(bool canBeNull = false)
Parameters
Type Name Description
Boolean canBeNull
Returns
Type Description
IFieldBuilder<TDeclaringType, TFieldNew, TContext>
Type Parameters
Name Description
TFieldNew

FieldType<TFieldNew>(Boolean, Boolean)

Declaration
public IFieldBuilder<TDeclaringType, TFieldNew, TContext> FieldType<TFieldNew>(bool canBeNull = false, bool itemCanBeNull = false)
    where TFieldNew : IEnumerable
Parameters
Type Name Description
Boolean canBeNull
Boolean itemCanBeNull
Returns
Type Description
IFieldBuilder<TDeclaringType, TFieldNew, TContext>
Type Parameters
Name Description
TFieldNew

IgnoreArgument(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> IgnoreArgument(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

IgnoreDirectiveAnnotation(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> IgnoreDirectiveAnnotation(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Name(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Name(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve(Func<TDeclaringType, TField>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Resolve(Func<TDeclaringType, TField> resolver)
Parameters
Type Name Description
Func<TDeclaringType, TField> resolver
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve(Func<TDeclaringType, Object, TField>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Resolve(Func<TDeclaringType, dynamic, TField> resolver)
Parameters
Type Name Description
Func<TDeclaringType, Object, TField> resolver
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve(Func<TDeclaringType, Object, GraphQLContext, TField>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Resolve(Func<TDeclaringType, dynamic, GraphQLContext, TField> resolver)
Parameters
Type Name Description
Func<TDeclaringType, Object, GraphQLContext, TField> resolver
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve(Func<TDeclaringType, Object, GraphQLContext, ResolveInfo, TField>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Resolve(Func<TDeclaringType, dynamic, GraphQLContext, ResolveInfo, TField> resolver)
Parameters
Type Name Description
Func<TDeclaringType, Object, GraphQLContext, GraphZen.TypeSystem.Internal.ResolveInfo, TField> resolver
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve(Func<TField>)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> Resolve(Func<TField> resolver)
Parameters
Type Name Description
Func<TField> resolver
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Resolve<TSource>(Func<TSource, TField>)

Declaration
public IFieldBuilder<TSource, TField, TContext> Resolve<TSource>(Func<TSource, TField> resolver)
Parameters
Type Name Description
Func<TSource, TField> resolver
Returns
Type Description
IFieldBuilder<TSource, TField, TContext>
Type Parameters
Name Description
TSource

UnignoreArgument(String)

Declaration
public IFieldBuilder<TDeclaringType, TField, TContext> UnignoreArgument(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IFieldBuilder<TDeclaringType, TField, TContext>

Implements

IFieldBuilder<TDeclaringType, TField, TContext>
IAnnotableBuilder<TBuilder>
IArgumentsDefinitionBuilder<TBuilder>
Back to top Copyright © 2017-2019 GraphZen LLC