mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
fix many to many reference query
This commit is contained in:
@@ -9,12 +9,6 @@ import { type RelationType, RelationTypes } from "./relation-types";
|
||||
*/
|
||||
export type OneToOneRelationConfig = ManyToOneRelationConfig;
|
||||
|
||||
/* export type OneToOneRelationConfig = {
|
||||
mappedBy?: string; // author|users
|
||||
inversedBy?: string; // posts
|
||||
required?: boolean;
|
||||
}; */
|
||||
|
||||
export class OneToOneRelation extends ManyToOneRelation {
|
||||
constructor(source: Entity, target: Entity, config?: OneToOneRelationConfig) {
|
||||
const { mappedBy, inversedBy, required } = config || {};
|
||||
|
||||
Reference in New Issue
Block a user