Class GraphQlQueryableExtensions
Extension methods for creating GraphQL-backed IQueryable instances.
public static class GraphQlQueryableExtensions
- Inheritance
-
objectGraphQlQueryableExtensions
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
clientGraphQlClientThe GraphQL client.
includesstring[]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
clientGraphQlClientThe GraphQL client.
includesstring[]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
sourceIQueryable<T>configureAction<GraphQlQueryOptions<T>>
Returns
- IQueryable<T>
Type Parameters
T