Skip to main content

Bill

Legislation referenced by roll call votes. Not a comprehensive bill database — populated from vote cross-references.

GraphQL type: Bill · Connection: BillsConnection

Queries

QueryReturnsDescription
allBills(filter, orderBy, first, last, before, after)BillsConnectionPaginated list with filtering and ordering
billById(id: BigInt!)BillLook up by primary key
billByBillId(billId: String!)BillLook up by unique billId

Fields

FieldGraphQL TypeNotes
idBigIntPK
billIdStringCanonical ID in the form [bill_type][number]-[congress], e.g. hr3590-111. unique required
billTypeStringrequired. One of: hr, hres, hjres, hconres, s, sres, sjres, sconres
billNumberIntrequired
congressIntrequired
introducedAtDate
officialTitleString
shortTitleString
popularTitleString
statusStringCurrent bill status code per the unitedstates/congress taxonomy (INTRODUCED, REFERRED, ENACTED:SIGNED, etc.).
statusAtDatetime
sponsorBioguideIdStringFK
enactedAsLawTypeString
enactedAsNumberString
sourceUpdatedAtDatetime
createdAtDatetime
updatedAtDatetime

Relationships

Belongs to

FieldReturnsVia
legislatorBySponsorBioguideIdLegislator (nullable)sponsorBioguideId

Has many

FieldReturnsVia
votesByRelatedBillIdVotesConnectionrelatedBillId
billCosponsorsByBillIdBillCosponsorsConnectionbillId
billCommitteesByBillIdBillCommitteesConnectionbillId

Example

{
allBills(
filter: { congress: { equalTo: 119 }, billType: { equalTo: "hr" } }
orderBy: INTRODUCED_AT_DESC
first: 10
) {
nodes {
billId
officialTitle
shortTitle
status
introducedAt
}
}
}