Option

was of query

The old name of the query, where it was renamed.

Value

One name, or a list of names. It is always stored as a list. Left out, nothing is taken as a rename.

Example

TypeScript
export const openNotes = query('openNotes', {
  access: allow((user) => user !== undefined),
  rows: notes.where({ body: { contains: 'open' } }).limit(input('limit')),
  was: 'notesOpen',
})

See also

word.query