config

Usage

class User extends Model {
  static entity = 'users'
  
  // activate meta data to be saved with this model
  static config = {
      withMeta: true
  }
  static fields () {
    return {
      id: this.uid()
    }
  }
}

Typescript Declarations

export interface ModelConfigOptions {
  withMeta?: boolean
  hidden?: string[]
  visible?: string[]
}
const config: ModelConfigOptions = undefined