holidayextras / jsonapi-server

A config driven NodeJS framework implementing json:api and GraphQL
MIT License
488 stars 115 forks source link

Set page[limit] to the number of related resources being requested. #433

Open queenvictoria opened 5 years ago

queenvictoria commented 5 years ago

This patch is designed to solve the case where a large number of included resources are required (greater than 50) and the rerouter doesn't retrieve them.

Basically:

  1. Count the number of resources required.
  2. Set the page[limit] parameter for the rerouter.

Related to issues #418 and #260