Interface RelatorOptions<PrimaryType, RelatedType>

interface RelatorOptions<PrimaryType, RelatedType> {
    linkers: {
        related?: Linker<[PrimaryType, nullish | SingleOrArray<RelatedType>]>;
        relationship?: Linker<[PrimaryType, nullish | SingleOrArray<RelatedType>]>;
    };
    metaizer?: Metaizer<[PrimaryType, nullish | SingleOrArray<RelatedType>]>;
    relatedName?: string;
}

Type Parameters

  • PrimaryType

  • RelatedType extends Dictionary<any> = any

Properties

linkers: {
    related?: Linker<[PrimaryType, nullish | SingleOrArray<RelatedType>]>;
    relationship?: Linker<[PrimaryType, nullish | SingleOrArray<RelatedType>]>;
}

A dictionary of Linkers to use for constructing links.

Type declaration

See

Resource object relationships for more information.

A Metaizer that gets the meta about the relationship.

relatedName?: string

Generated using TypeDoc