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

Interface IFieldsDefinitionBuilder<TBuilder, TSource, TContext>

Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
public interface IFieldsDefinitionBuilder<out TBuilder, TSource, TContext>
    where TContext : GraphQLContext
Type Parameters
Name Description
TBuilder
TSource
TContext

Methods

Field(String)

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

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

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

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

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

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

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

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

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

IgnoreField(String)

Declaration
TBuilder IgnoreField(string name)
Parameters
Type Name Description
String name
Returns
Type Description
TBuilder

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

Declaration
TBuilder IgnoreField<TField>(Expression<Func<TSource, TField>> selector)
Parameters
Type Name Description
Expression<Func<TSource, TField>> selector
Returns
Type Description
TBuilder
Type Parameters
Name Description
TField

UnignoreField(String)

Declaration
TBuilder UnignoreField(string name)
Parameters
Type Name Description
String name
Returns
Type Description
TBuilder
Back to top Copyright © 2017-2019 GraphZen LLC