iac-gwc-2019 / political-project-backend

Politigo, a platform to learn more about politicians, causes, and bills that equips users to take action.
2 stars 2 forks source link

Bill and person resolvers done with updated skeleton #9

Closed meredithvdv closed 5 years ago

meredithvdv commented 5 years ago

As far as I can tell, the bills, billById, billsBySubject, peopleHouse, and peopleSenate resolvers work successfully now. This means we can get a list of bills, a single bill by id, a list of bills given a subject, and a list of members of the house and senate. I also updated the schema to add more information for these queries.

I'm still figuring out subjects, since there's not any place in the API that I can tell that lists all of the subjects for every bill. There's an option to list all of the subjects for a single bill, but that doesn't seem like enough. Mentioned this in the slack- maybe we use this list? https://www.congress.gov/advanced-search/legislative-subject-terms?congresses%5B%5D=116