UNPKG

@athenna/database

Version:

The Athenna database handler for SQL/NoSQL.

21 lines (20 loc) 616 B
/** * @athenna/database * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import type { HasManyOptions } from '#src/types'; import type { BaseModel } from '#src/models/BaseModel'; export declare class HasManyRelation { /** * Load a has many relation. */ static load(model: BaseModel, relation: HasManyOptions): Promise<any>; /** * Load all models that has one relation. */ static loadAll(models: BaseModel[], relation: HasManyOptions): Promise<any[]>; }