Interface: Action
A server-side write operation, callable from the client and the server.
Create one with the action constructor.
See Actions.
Extendsโ
BaseSpecElement<"action">
Propertiesโ
auth?โ
optionalauth?:boolean
Whether this Action requires auth. If your app has auth enabled, this
defaults to true.
Only available if your app has auth enabled.
entities?โ
optionalentities?:string[]
A list of entities you wish to use inside your Action.
See Using Entities in Actions.
fnโ
fn:
Reference<AnyFunction>
Reference to the Action's NodeJS implementation.
See the docs for details on the implementation and its context.
kindโ
kind:
"action"
The internal Wasp type of a SpecElement. Used by the compiler. You should not set this field directly, instead use the dedicated constructors.
Inherited fromโ
BaseSpecElement.kind