Hierarchy (View Summary)

Constructors

Properties

$modelClass: ModelClass<TakaroModel>
createdAt: string
domain: string
id: string
QueryBuilderType: QueryBuilder<TakaroModel, TakaroModel[]>
updatedAt: string
BelongsToOneRelation: RelationType
columnNameMappers: ColumnNameMappers
dbRefProp: string
defaultGraphOptions?: GraphOptions
fn: FunctionFunction
HasManyRelation: RelationType
HasOneRelation: RelationType
HasOneThroughRelation: RelationType
jsonAttributes: string[]
jsonSchema: JSONSchema
ManyToManyRelation: RelationType
modelPaths: string[]
pickJsonSchemaProperties: boolean
propRefRegex: RegExp
QueryBuilder: typeof QueryBuilder
raw: RawFunction
ref: ReferenceFunction
relatedFindQueryMutates: boolean
relatedInsertQueryMutates: boolean
relationMappings: RelationMappings | RelationMappingsThunk
tableName: string
uidProp: string
uidRefProp: string
useLimitInFirst: boolean
virtualAttributes: string[]

Accessors

  • get modifiers(): {
        domainScoped(
            query: QueryBuilder<Model, Model[]>,
            domainId: string,
        ): void;
    }
  • Returns { domainScoped(query: QueryBuilder<Model, Model[]>, domainId: string): void }

Methods

  • Parameters

    • queryContext: QueryContext

    Returns void | Promise<any>

  • Parameters

    • queryContext: QueryContext

    Returns void | Promise<any>

  • Parameters

    • queryContext: QueryContext

    Returns void | Promise<any>

  • Parameters

    • opt: ModelOptions
    • queryContext: QueryContext

    Returns void | Promise<any>

  • Parameters

    • json: Pojo
    • opt: ModelOptions

    Returns void

  • Type Parameters

    • RM extends Model

    Parameters

    • relation: String | Relation
    • related: undefined | null | RM | RM[]

    Returns this

  • Parameters

    • queryContext: QueryContext

    Returns void | Promise<any>

  • Parameters

    • jsonSchema: JSONSchema
    • json: Pojo
    • opt: ModelOptions

    Returns JSONSchema

  • Parameters

    • Optionalopt: CloneOptions

    Returns this

  • Parameters

    • keys: string | string[] | { [key: string]: boolean }

    Returns this

  • Parameters

    • keys: string | string[] | { [key: string]: boolean }

    Returns this

  • Parameters

    • json: Pojo
    • Optionalopt: ModelOptions

    Returns Pojo

  • Type Parameters

    Parameters

    • relationName: K
    • OptionaltrxOrKnex: TransactionOrKnex

    Returns RelatedQueryBuilder<TakaroModel[K]>

  • Type Parameters

    • RM extends Model

    Parameters

    • relationName: string
    • OptionaltrxOrKnex: TransactionOrKnex

    Returns QueryBuilderType<RM>

  • Parameters

    • obj: Pojo

    Returns this

  • Parameters

    • json: object
    • Optionalopt: ModelOptions

    Returns this

  • Type Parameters

    • RM extends Model

    Parameters

    • relation: String | Relation
    • related: undefined | null | RM | RM[]

    Returns this

  • Parameters

    • filterConstructor: typeof Model
    • traverser: TraverserFunction

    Returns this

  • Parameters

    • traverser: TraverserFunction

    Returns this

  • Parameters

    • Optionaljson: Pojo
    • Optionalopt: ModelOptions

    Returns Pojo

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Parameters

    • args: StaticHookArguments

    Returns any

  • Type Parameters

    • M

    Parameters

    • this: M
    • trxOrKnex: TransactionOrKnex

    Returns M

  • Type Parameters

    • M

    Parameters

    • this: M
    • trxOrKnex: TransactionOrKnex

    Returns M

  • Parameters

    • queryContext: QueryContext
    • args: CreateNotFoundErrorArgs

    Returns Error

  • Type Parameters

    • M extends Model

    Parameters

    • this: Constructor<M>
    • modelOrObject: PartialModelObject<M>
    • expression: RelationExpression<M>
    • Optionaloptions: FetchGraphOptions

    Returns SingleQueryBuilder<QueryBuilderType<M>>

  • Type Parameters

    • M extends Model

    Parameters

    • this: Constructor<M>
    • modelOrObject: PartialModelObject<M>[]
    • expression: RelationExpression<M>
    • Optionaloptions: FetchGraphOptions

    Returns QueryBuilderType<M>

  • Parameters

    • Optionalopt: FetchTableMetadataOptions

    Returns Promise<TableMetadata>

  • Type Parameters

    • M extends Model

    Parameters

    • this: Constructor<M>
    • json: object

    Returns M

  • Type Parameters

    • M extends Model

    Parameters

    • this: Constructor<M>
    • json: object
    • Optionalopt: ModelOptions

    Returns M

  • Parameters

    • Optionalknex: Knex

    Returns Knex

  • Type Parameters

    • M extends Model

    Parameters

    • this: Constructor<M>
    • OptionaltrxOrKnex: TransactionOrKnex

    Returns QueryBuilderType<M>

  • Type Parameters

    • M extends Model
    • K extends string | number | symbol

    Parameters

    • this: ConstructorType<M, PrototypeType<M>>
    • relationName: K
    • OptionaltrxOrKnex: TransactionOrKnex

    Returns ArrayRelatedQueryBuilder<M[K]>

  • Type Parameters

    • RM extends Model

    Parameters

    • relationName: string
    • OptionaltrxOrKnex: TransactionOrKnex

    Returns QueryBuilderType<RM>

  • Parameters

    • OptionalknexOrTransaction: TransactionOrKnex

    Returns Promise<Transaction>

  • Parameters

    • Optionalopt: TableMetadataOptions

    Returns TableMetadata

  • Type Parameters

    • T

    Parameters

    • callback: (trx: Transaction) => Promise<T>

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • trxOrKnex: undefined | TransactionOrKnex
    • callback: (trx: Transaction) => Promise<T>

    Returns Promise<T>

  • Parameters

    • models: Model | Model[]
    • traverser: TraverserFunction

    Returns void

  • Parameters

    • filterConstructor: typeof Model
    • models: Model | Model[]
    • traverser: TraverserFunction

    Returns void

  • Parameters

    • models: Model | Model[]
    • traverser: TraverserFunction

    Returns Promise<void>

  • Parameters

    • filterConstructor: typeof Model
    • models: Model | Model[]
    • traverser: TraverserFunction

    Returns Promise<void>