Skip to content

Home > @opennd/lib > PrismaQueryBuilder > relationAnd

PrismaQueryBuilder.relationAnd property

关联查询 every,满足所有条件

Signature:

typescript
relationAnd: <RelationTableFields extends Record<string, any> = Record<string, any>>(key: keyof T | (keyof T)[] | Partial<Record<keyof T, keyof TableFields>>, params?: {
        get?: string;
        idKey?: keyof RelationTableFields;
        filter?: Filter;
    }) => this;