Forjr
DocsBlogReleases

Start with

  • Installationtopic.start
  • The wordstopic.words
  • Plans: how rows are asked fortopic.plans
  • Screen files and stubstopic.screens
  • Tests of an apptopic.tests
Light or dark
  • Getting started
  • Core ideas
  • Data
  • Screens
  • Work
  • Testing
  • Running an app
  • Building on Forjr

Reference

  • Words
    • action
      • about
      • access
      • background
      • batch
      • callerGone
      • changes
      • countBy
      • danger
      • deprecated
      • follow
      • input
      • limits
      • offer
      • output
      • plain
      • remember
      • rows
      • run
      • sends
      • system
      • uses
      • was
      • worker
    • agent
    • allow
    • anyone
    • asset
    • avg
    • backfill
    • between
    • boolean
    • calc
    • caller
    • ceil
    • change
    • choice
    • chunks
    • col
    • command
    • component
    • concat
    • contains
    • count
    • cron
    • date
    • day
    • dayOf
    • declared
    • del
    • each
    • earlier
    • emit
    • evals
    • event
    • every
    • expect
    • fail
    • file
    • fingerprint
    • floor
    • flow
    • get
    • given
    • incoming
    • input
    • join
    • json
    • judge
    • later
    • least
    • link
    • list
    • lower
    • max
    • message
    • messages
    • min
    • model
    • most
    • noOtherPeople
    • noPersonal
    • now
    • number
    • object
    • optimistic
    • patch
    • post
    • project
    • put
    • python
    • query
    • random
    • range
    • read
    • request
    • role
    • round
    • route
    • s3
    • sameSecret
    • sampleOf
    • screen
    • secret
    • seed
    • service
    • setting
    • slice
    • start
    • startsWith
    • sum
    • table
    • testApp
    • text
    • token
    • trim
    • upper
    • vector
    • verified
    • where
  • Tags
  • Hooks
  • Handles
  • Adapters
  • Commands
  • Codes
DocsOptions

Option

plain of action

Holds the action to the plain form.

Value

true. What would make it code is then an error on that line. Left out, its run may be code.

Example

TypeScript
export const sendNote = action('sendNote', {
  access: role('staff'),
  run: async ({ input }) => ({ ok: input.note.length > 0 }),
  plain: true,
})

See also

word.action

On this page

  • Value
  • Example
  • See also
Forjr
DocsBlogReleasesGitHub
Forjr
  • Getting started
  • Core ideas
  • Data
  • Screens
  • Work
  • Testing
  • Running an app
  • Building on Forjr

Reference

  • Words
    • action
      • about
      • access
      • background
      • batch
      • callerGone
      • changes
      • countBy
      • danger
      • deprecated
      • follow
      • input
      • limits
      • offer
      • output
      • plain
      • remember
      • rows
      • run
      • sends
      • system
      • uses
      • was
      • worker
    • agent
    • allow
    • anyone
    • asset
    • avg
    • backfill
    • between
    • boolean
    • calc
    • caller
    • ceil
    • change
    • choice
    • chunks
    • col
    • command
    • component
    • concat
    • contains
    • count
    • cron
    • date
    • day
    • dayOf
    • declared
    • del
    • each
    • earlier
    • emit
    • evals
    • event
    • every
    • expect
    • fail
    • file
    • fingerprint
    • floor
    • flow
    • get
    • given
    • incoming
    • input
    • join
    • json
    • judge
    • later
    • least
    • link
    • list
    • lower
    • max
    • message
    • messages
    • min
    • model
    • most
    • noOtherPeople
    • noPersonal
    • now
    • number
    • object
    • optimistic
    • patch
    • post
    • project
    • put
    • python
    • query
    • random
    • range
    • read
    • request
    • role
    • round
    • route
    • s3
    • sameSecret
    • sampleOf
    • screen
    • secret
    • seed
    • service
    • setting
    • slice
    • start
    • startsWith
    • sum
    • table
    • testApp
    • text
    • token
    • trim
    • upper
    • vector
    • verified
    • where
  • Tags
  • Hooks
  • Handles
  • Adapters
  • Commands
  • Codes