Skip to main content

LegislatorTerm

Each row is one term of service. A legislator may have many terms across both chambers.

GraphQL type: LegislatorTerm · Connection: LegislatorTermsConnection

Queries

QueryReturnsDescription
allLegislatorTerms(filter, orderBy, first, last, before, after)LegislatorTermsConnectionPaginated list with filtering and ordering
legislatorTermById(id: BigInt!)LegislatorTermLook up by primary key

Fields

FieldGraphQL TypeNotes
idBigIntPK
bioguideIdStringrequired FK
termTypeStringrequired. One of: rep, sen
startDateDaterequired
endDateDaterequired
stateStringrequired
partyString
caucusString
districtIntHouse only. 0 = at-large district. -1 = unknown in historical data.
senateClassIntOne of: 1, 2, 3
stateRankStringOne of: junior, senior
howString
urlString
addressString
phoneString
officeString

Relationships

Belongs to

FieldReturnsVia
legislatorByBioguideIdLegislatorbioguideId

Example

{
allLegislatorTerms(
filter: { state: { equalTo: "TX" }, termType: { equalTo: "sen" } }
orderBy: START_DATE_DESC
first: 10
) {
nodes {
startDate
endDate
party
state
legislatorByBioguideId {
officialFull
}
}
}
}