ash v1.10.0 Ash.DataLayer.Delegate View Source

A datalayer for adding a resource to one API that simply delegates to a resource in a different (or the same) API

Link to this section Summary

Functions

A section for configuring which resource/api is delegated to

Link to this section Functions

Link to this macro

delegate(body)

View Source (macro)

A section for configuring which resource/api is delegated to

Options

  • :to - Required. A tuple of {api, resource} to delegate calls to

  • :base_filter - A filter to apply to queries made against the resource

  • :authorize? - If true, calls to the destination api are authorized according to that resource's rules The default value is false.