JustZack / audit-congress

A website collecting & displaying information about the activities of congress.
0 stars 0 forks source link

Add generic result functions used by the API can return #68

Open JustZack opened 6 months ago

JustZack commented 6 months ago

I.E:

Tables might return a TableResult (extends Result) containing:

JustZack commented 6 months ago

This would be returned by AuditCongressQuerys so that there is result field and count field.

The main goal being to provide meta data about the query, which may be used on the frontend (i.e. how many bills a search for congress '118' and type 'Senate' selects in total, VS. how many the pagination limits it to).