Table of Contents

Class GraphQlQueryableExtensions

Namespace
BpNexT.NET.GraphQL.Queryable
Assembly
BpNexT.NET.GraphQL.dll

Extension methods for creating GraphQL-backed IQueryable instances.

public static class GraphQlQueryableExtensions
Inheritance
object
GraphQlQueryableExtensions

Methods

QueryDataSet<T>(GraphQlClient, string[]?)

Creates a queryable interface for reading data via GraphQL. Uses rowsRead by default, auto-switches to conRead when Skip/Take are used.

public static IQueryable<T> QueryDataSet<T>(this GraphQlClient client, string[]? includes = null) where T : IDataSetEntity, new()

Parameters

client GraphQlClient

The GraphQL client.

includes string[]

Optional field names to include. If null, all fields are selected.

Returns

IQueryable<T>

Type Parameters

T

ReadDataSet<T>(GraphQlClient, string[]?)

Creates a queryable interface for reading data via GraphQL. Alias for QueryDataSet<T>(GraphQlClient, string[]?) — both use rowsRead by default and auto-switch to conRead when Skip/Take are used.

public static IQueryable<T> ReadDataSet<T>(this GraphQlClient client, string[]? includes = null) where T : IDataSetEntity, new()

Parameters

client GraphQlClient

The GraphQL client.

includes string[]

Optional field names to include. If null, all fields are selected.

Returns

IQueryable<T>

Type Parameters

T

WithOptions<T>(IQueryable<T>, Action<GraphQlQueryOptions<T>>)

Adds typed GraphQL options to a query.

public static IQueryable<T> WithOptions<T>(this IQueryable<T> source, Action<GraphQlQueryOptions<T>> configure) where T : IDataSetEntity, new()

Parameters

source IQueryable<T>
configure Action<GraphQlQueryOptions<T>>

Returns

IQueryable<T>

Type Parameters

T