Skip to content

`JSONAPIResourceStore` primary resource access on `Document`

Pre-release
Pre-release

Choose a tag to compare

@mattpolzin mattpolzin released this 01 Jul 18:17
50db3c4

See the new example test case for details.

In short, document.storedPrimaryResource() for single resource documents and document.storedPrimaryResources() for many resource documents will access the document's primary resource(s) as StoredResources. This means it is faster and more convenient to treat the response document as a coherent unit of primary resources with their related includes directly accessible.