Skip to content

Cannot change limit of included items #418

Open
@Redsandro

Description

@Redsandro

When requesting a resource, we can include it's relationships for client-side model postprocessing by using the querystring ?include=:

http://<server>/<model>/<id>?include=<hasManyRelationship>

However, if we want to load 60 tokens for a single resource, the application breaks because jsonapi-server hard-limits the included items to 50.

I tried doing this:

http://<server>/<model>/<id>?include=<hasManyRelationship>&page[limit]=100

But I'm still only getting 50.

I reckon this should be:

  1. Configurable in jsonApi.setConfig(), and
  2. Settable in the request, e.g. page[limit] (or some other include-only parameter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions