Skip to the content.

< Back


IQueryStringBuilder

Namespace: GraphQL.Query.Builder

The GraphQL query builder interface.

public interface IQueryStringBuilder

Attributes NullableContextAttribute

Methods

Clear()

Clears the string builder.

void Clear()

Build<TSource>(IGraphQLField<TSource>)

Builds the query.

string Build<TSource>(IGraphQLField<TSource> query)

Type Parameters

TSource

Parameters

query IGraphQLField<TSource>
The query.

Returns

String
The GraphQL query as string, without outer enclosing block.

BuildSelectionSet<TSource>(IGraphQLField<TSource>)

Builds the query selection set, without the enclosing braces.

string BuildSelectionSet<TSource>(IGraphQLField<TSource> query)

Type Parameters

TSource

Parameters

query IGraphQLField<TSource>
The query.

Returns

String
The GraphQL selection set as string.


< Back