Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Relation Options and Polymorphic Associations

Choose a tag to compare

@pixelhandler pixelhandler released this 24 Aug 18:01
· 206 commits to master since this release
  • Add support for polymorphic association in a resource
  • Add options argument for findOne/findMany helpers
  • FetchError passes original error or default message

hasOne and hasMany Relationship helpers may use a String argument for the relation name, as found in the relationship object of the JSON payload. Helpers may instead use an Object argument with properties for relation and type (type is different service) to use for fetching resource relations.