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