import { SuperRefinement } from 'zod/lib/types' import { Mapper } from '../../Mapper' import { oneToMany } from './oneToMany' export const oneToOne = ($parent: string, $child: string, getParents: Mapper, getChildren: Mapper, getParentId: Mapper, getChildId: Mapper, getParentChildId: Mapper, getChildParentId: Mapper): SuperRefinement => (database, ctx) => { oneToMany($parent, $child, getParents, getChildren, getParentId, getChildId, getChildParentId) oneToMany($child, $parent, getChildren, getParents, getChildId, getParentId, getParentChildId) }