---
title: "HasManyThroughOptions"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-table/src/lib/table.ts#L566"
---

# HasManyThroughOptions

## Summary

Options for defining a [`hasManyThrough`](/data-table/function/hasManyThrough/) relation.

## Signature

```ts
type HasManyThroughOptions<source, target> = {
  through: Relation<source, AnyTable, RelationCardinality, any>
  throughForeignKey?: KeySelector<target>
  throughTargetKey?: string | string[]
}

```