New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve personNode from bills #124

Open
BamaStangGuy opened this Issue Nov 26, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@BamaStangGuy
Copy link

BamaStangGuy commented Nov 26, 2018

Take the following to examples in which I am trying to return the personNode.

{
  search_1: bills(first: 20, jurisdiction: "Alabama", session: "2018rs") {
    edges {
      node {
        id
        title
        updatedAt
        votes {
          edges {
            node {
              counts {
                value
                option
              }
              votes {
                voterName
                voter {
                  id
                  contactDetails {
                    value
                    note
                    type
                  }
                }
                option
              }
            }
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

and this one:

{
  b1: bill(jurisdiction: "Alabama", session: "2018rs", identifier: "HB 100") {
    id
    identifier
    title
    classification
    updatedAt
    createdAt
    subject
    legislativeSession {
      identifier
      jurisdiction {
        name
      }
    }
    actions {
      date
      description
      classification
    }
    versions {
      date
      note
      links {
        url
      }
    }
    sponsorships {
      name
      person {
        id
        name
      }
    }
  }
}

In the first one, votes -> votes -> voter returns null on all records with votes.
In the second one sponsorships ->person returns null.

@jamesturk jamesturk added the API label Dec 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment