bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
22 lines (21 loc) • 816 B
TypeScript
import { type EntityRelation, type EntityRelationAnchor } from "../relations";
export declare const MutationOperations: readonly ["$set", "$create", "$attach", "$detach"];
export type MutationOperation = (typeof MutationOperations)[number];
export declare class RelationHelper {
relation: EntityRelation;
access: "source" | "target";
self: EntityRelationAnchor;
other: EntityRelationAnchor;
constructor(relation: EntityRelation, entity_name: string);
getMutationInfo(): {
primary: string | undefined;
cardinality: number | undefined;
relation_type: import("./relation-types").RelationType;
$set: boolean;
$create: boolean;
$attach: boolean;
$detach: boolean;
reference: string;
local_field: string | undefined;
};
}