DynamicWhere.ex
DynamicWhere.exv2.1.0·docs

JSON Cookbook

Thirteen copy-pasteable examples covering every extension method, every projection style, and every set / aggregation shape DynamicWhere.ex supports. Each example is the exact JSON your front-end would send.

Index

#ExampleWhat it shows
1Select — Field ProjectionDirect scalars, dotted reference paths, dotted collection paths, whole objects, whole collections.
2Where (single Condition)Text IContains, Number Between, Date GreaterThan, DateTime Equal, Guid, Boolean, Enum In, IsNull, Text IIn.
3Where (ConditionGroup)AND group plus an AND/OR nested example, including the equivalent SQL.
4Order — SortingSingle OrderBy and multi-key OrderBy lists.
5Page — Pagination1-indexed page number and explicit page size.
6Group — GroupBy + AggregationsGroup by a field plus Count, Average, Maximum aggregations.
7Filter — TypedFull Filter request and the FilterResult<T> response shape.
8Summary — Group + Aggregate + HavingFull Summary request plus SummaryResult response with flattened dotted aliases.
9Segment — Set OperationsUnion + Except across three condition sets, with logic note and response.
11SelectDynamic — Dynamic ProjectionAll eight path-style variants — direct, dotted reference, dotted collection, multi-level, merged, whole object, whole collection, deep reference.
12FilterDynamic — Dynamic FilterFull Filter request returning FilterResult<dynamic>, plus the projection-rule note.
13Nested Collection NavigationField path through a collection — the library wraps it in .Any() lambdas.

How to use these

Every JSON body on these pages is the literal payload an HTTP client would POST to your endpoint. Bind it to the matching shape (Filter, Segment, Summary, or a raw ConditionGroup) and pass it to the corresponding extension method.