Skip to main content

Vote

One row per roll call vote event. The vote_id is the canonical identifier from unitedstates/congress (e.g. h202-113.2013).

GraphQL type: Vote · Connection: VotesConnection

Queries​

QueryReturnsDescription
allVotes(filter, orderBy, first, last, before, after)VotesConnectionPaginated list with filtering and ordering
voteById(id: BigInt!)VoteLook up by primary key
voteByVoteId(voteId: String!)VoteLook up by unique voteId

Fields​

FieldGraphQL TypeNotes
idBigIntPK
voteIdStringCanonical vote identifier in the form [chamber][number]-[congress].[session], e.g. h202-113.2013. unique required
chamberStringrequired. One of: h, s
congressIntrequired
sessionStringCalendar year string. Sessions roughly follow calendar years but are bounded by Congress start/end dates. required
numberIntrequired
votedAtDatetime
questionString
voteTypeString
categoryStringNormalised vote category. One of: passage, amendment, cloture, nomination, treaty, recommit, quorum, leadership, conviction, veto-override, procedural, unknown.
resultString
resultTextString
requiresString
relatedBillIdStringFK
sourceUrlStringCanonical URL of the upstream source — suitable for linking users to the official primary source.
sourceUpdatedAtDatetime
createdAtDatetime
updatedAtDatetime
nominationNumberStringNomination identifier exactly as supplied by unitedstates/congress. Group related votes by (congress, nomination_number); multiple votes may reference the same nomination. NULL when absent from the source.
nominationTitleStringNomination title supplied by unitedstates/congress. NULL when absent from the source.

Relationships​

Belongs to​

FieldReturnsVia
billByRelatedBillIdBill (nullable)relatedBillId

Has many​

FieldReturnsVia
votePositionsByVoteIdVotePositionsConnectionvoteId

Example​

{
allVotes(
filter: {
category: { equalTo: "nomination" }
chamber: { equalTo: "s" }
}
orderBy: VOTED_AT_DESC
first: 10
) {
nodes {
voteId
votedAt
question
result
}
}
}