← All types

PortalSitePageHandler

One handler of a page.

Fields

name

String!Non-null

Name of the handler: the exports.<name> of the page's server Lua it calls.

Whether the handler is a read loader or a form action.

Possible values (2)
READ

A loader: renders data for the page or a refresh region; it never writes.

ACTION

A form action: may write, then returns errors, a render or a redirect.

JSON Schema object of the handler's input.

JSON Schema object of the handler's output.

Referenced by (1)
Exact type SDL
"""One handler of a page."""
type PortalSitePageHandler {
  """
  Name of the handler: the `exports.<name>` of the page's server Lua it calls.
  """
  name: String!
  """Whether the handler is a read loader or a form action."""
  mode: PortalSiteHandlerMode!
  """JSON Schema object of the handler's input."""
  inputSchema: JSON!
  """JSON Schema object of the handler's output."""
  outputSchema: JSON!
}