orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 133 forks source link

[jsonapi] Introduce `partialSet` request option #883

Closed dgeb closed 3 years ago

dgeb commented 3 years ago

The partialSet request option provides explicit control over whether the resultset in a successful response should be interpreted as a partial set of related records. Currently, this option only applies to requests for related records.

Example usage: A request is made to a custom relationship url and you want the records returned to be added to the relationship, rather than to replace all existing members of that relationship.

If this property is not set, then data will be implicitly treated as a partial set of related records if: