AshJsonApi.Resource.PrimaryKey (ash_json_api v0.24.1) View Source

Encode the id of the JSON API response from selected attributes of a resource

Options

  • :keys - Required. the list of attributes to encode JSON API primary key

  • :delimeter - false The delimeter to concatenate the primary key values. Default to be '-' The default value is "-".

Link to this section Summary

Functions

Encode the id of the JSON API response from selected attributes of a resource

Link to this section Functions

Link to this macro

primary_key(body)

View Source (macro)

Encode the id of the JSON API response from selected attributes of a resource

Options

  • :keys - Required. the list of attributes to encode JSON API primary key

  • :delimeter - false The delimeter to concatenate the primary key values. Default to be '-' The default value is "-".