GraphZen
  • Home
  • Blog
  • Documentation
  • API
  • Get Started
Show / Hide Table of Contents

Class InterfaceTypeBuilder<TInterface, TContext>

Inheritance
Object
InterfaceTypeBuilder<TInterface, TContext>
Implements
IInterfaceTypeBuilder<TInterface, TContext>
IAnnotableBuilder<IInterfaceTypeBuilder<TInterface, TContext>>
IFieldsDefinitionBuilder<IInterfaceTypeBuilder<TInterface, TContext>, TInterface, TContext>
Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
public class InterfaceTypeBuilder<TInterface, TContext> : IInterfaceTypeBuilder<TInterface, TContext>, IAnnotableBuilder<IInterfaceTypeBuilder<TInterface, TContext>>, IFieldsDefinitionBuilder<IInterfaceTypeBuilder<TInterface, TContext>, TInterface, TContext>, IInfrastructure<InternalInterfaceTypeBuilder> where TContext : GraphQLContext
Type Parameters
Name Description
TInterface
TContext

Constructors

InterfaceTypeBuilder(InternalInterfaceTypeBuilder)

Declaration
public InterfaceTypeBuilder(InternalInterfaceTypeBuilder builder)
Parameters
Type Name Description
GraphZen.TypeSystem.Internal.InternalInterfaceTypeBuilder builder

Methods

ClrType(Type)

Declaration
public IInterfaceTypeBuilder<object, TContext> ClrType(Type clrType)
Parameters
Type Name Description
Type clrType
Returns
Type Description
IInterfaceTypeBuilder<Object, TContext>

ClrType<TNewInterfaceType>()

Declaration
public IInterfaceTypeBuilder<TNewInterfaceType, TContext> ClrType<TNewInterfaceType>()
Returns
Type Description
IInterfaceTypeBuilder<TNewInterfaceType, TContext>
Type Parameters
Name Description
TNewInterfaceType

Description(String)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Description(string description)
Parameters
Type Name Description
String description
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

DirectiveAnnotation(String, Object)

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

Field(String)

Declaration
public IFieldBuilder<TInterface, object, TContext> Field(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IFieldBuilder<TInterface, Object, TContext>

Field(String, Action<IFieldBuilder<TInterface, Object, TContext>>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Field(string name, Action<IFieldBuilder<TInterface, object, TContext>> configurator)
Parameters
Type Name Description
String name
Action<IFieldBuilder<TInterface, Object, TContext>> configurator
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

Field(String, String, Action<IFieldBuilder<TInterface, Object, TContext>>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Field(string name, string type, Action<IFieldBuilder<TInterface, object, TContext>> configurator = null)
Parameters
Type Name Description
String name
String type
Action<IFieldBuilder<TInterface, Object, TContext>> configurator
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

Field<TField>(Expression<Func<TInterface, TField>>, Action<IFieldBuilder<TInterface, TField, TContext>>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Field<TField>(Expression<Func<TInterface, TField>> selector, Action<IFieldBuilder<TInterface, TField, TContext>> configurator = null)
Parameters
Type Name Description
Expression<Func<TInterface, TField>> selector
Action<IFieldBuilder<TInterface, TField, TContext>> configurator
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>
Type Parameters
Name Description
TField

Field<TField>(String, Action<IFieldBuilder<TInterface, TField, TContext>>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Field<TField>(string name, Action<IFieldBuilder<TInterface, TField, TContext>> configurator = null)
Parameters
Type Name Description
String name
Action<IFieldBuilder<TInterface, TField, TContext>> configurator
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>
Type Parameters
Name Description
TField

IgnoreDirectiveAnnotation(String)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> IgnoreDirectiveAnnotation(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

IgnoreField(String)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> IgnoreField(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

IgnoreField<TField>(Expression<Func<TInterface, TField>>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> IgnoreField<TField>(Expression<Func<TInterface, TField>> selector)
Parameters
Type Name Description
Expression<Func<TInterface, TField>> selector
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>
Type Parameters
Name Description
TField

Name(String)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> Name(string newName)
Parameters
Type Name Description
String newName
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

ResolveType(TypeResolver<TInterface, TContext>)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> ResolveType(TypeResolver<TInterface, TContext> resolveTypeFn)
Parameters
Type Name Description
TypeResolver<TInterface, TContext> resolveTypeFn
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

UnignoreField(String)

Declaration
public IInterfaceTypeBuilder<TInterface, TContext> UnignoreField(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IInterfaceTypeBuilder<TInterface, TContext>

Implements

IInterfaceTypeBuilder<TInterface, TContext>
IAnnotableBuilder<TBuilder>
IFieldsDefinitionBuilder<TBuilder, TSource, TContext>
Back to top Copyright © 2017-2019 GraphZen LLC