mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
improvement: add get? metadata
This commit is contained in:
parent
3a56d4cc04
commit
0e66801ebe
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@ defmodule Ash.Resource.Actions.Read do
|
|||
:primary?,
|
||||
:filter,
|
||||
:description,
|
||||
:get?,
|
||||
transaction?: false,
|
||||
arguments: [],
|
||||
preparations: [],
|
||||
|
@ -31,6 +32,13 @@ defmodule Ash.Resource.Actions.Read do
|
|||
doc:
|
||||
"A filter template, that may contain actor references. See `Ash.Filter` for more on templates"
|
||||
],
|
||||
get?: [
|
||||
type: :boolean,
|
||||
doc: """
|
||||
Expresses that this action innately only returns a single result. Can be used by extensions to validate that you have not hooked something up that expects a list
|
||||
to an action that can only return one thing. This is not used internally (but may be in the future).
|
||||
"""
|
||||
],
|
||||
transaction?: [
|
||||
type: :boolean,
|
||||
default: false,
|
||||
|
|
Loading…
Reference in a new issue