Should PersonNode.votes be a connection, not an array?


#1

Some legislatures have thousands of votes per session. The size of even the simplest response to a query that includes PersonNode.votes may exceed the tentative response size limit of 5000 fields.


#2

good point, an issue for this would be great


#3

Making PersonNode.votes be a connection is probably simplest, but there are other possible remedies. For example, it might be otherwise useful to have optional date-range parameters on PersonNode.votes; I know I’d use it. Also, this would avoid breaking existing apps expecting an array.

Github issue: https://github.com/openstates/new-openstates.org/issues/127