Skip to content

feat: nested fields - #41

Merged
rmarganti merged 3 commits into
mainfrom
nested-fields
Feb 8, 2026
Merged

feat: nested fields#41
rmarganti merged 3 commits into
mainfrom
nested-fields

Conversation

@rmarganti

@rmarganti rmarganti commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Changes

  • Adds support for filtering on nested fields in @filter-def/in-memory and @filter-def/bigquery packages
  • errors for @filter-def/drizzle, due to driver-specific implementations. For now, we are driver agnostic.

Example (BigQuery):

interface UserWithAddress {
    name: { first: string; last: string };
    address: { city: string; geo: { lat: number; lng: number } };
}

const userFilter = bigqueryFilter<UserWithAddress>().def({
    firstName: { kind: "eq", field: "name.first" },
    lat: { kind: "eq", field: "address.geo.lat" },
});

const where = userFilter({ firstName: 'Bob', lat: 25 });
// {
//     sql: 'name.first = @firstName AND address.geo.lat = @lat',
//     params: { firstName: 'Bob', lat: 21 },
// }

@rmarganti
rmarganti merged commit 0baebc1 into main Feb 8, 2026
1 check passed
@rmarganti
rmarganti deleted the nested-fields branch February 8, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant