Legislative subject terms assigned to a bill by the Congressional Research Service, from the Congress.gov /subjects endpoint. One row per bill/term; the set is replaced wholesale when the bill updates. The primary policy area lives on bills.policy_area, not here.
GraphQL type: BillSubject · Connection: BillSubjectsConnection
Queries
| Query | Returns | Description |
|---|
allBillSubjects(filter, orderBy, first, last, before, after) | BillSubjectsConnection | Paginated list with filtering and ordering |
billSubjectById(id: BigInt!) | BillSubject | Look up by primary key |
Fields
| Field | GraphQL Type | Notes |
|---|
id | BigInt | PK |
billId | String | required FK |
subject | String | Legislative subject term, e.g. "Health care costs and insurance". required |
Relationships
Belongs to
| Field | Returns | Via |
|---|
billByBillId | Bill | billId |