BaseCustomMappingDefinition: {
    facet?: boolean;
    hydrateRelations?: EntityRelationPaths<ProductVariant>[];
}

Type declaration

  • Optionalfacet?: boolean

    This defines whether this data will be a "faceted" field in Typesense.

    Faceted fields are indexed verbatim without any tokenization or preprocessing. For example, if you are building a product search, "color" and "brand" could be defined as facet fields.

  • OptionalhydrateRelations?: EntityRelationPaths<ProductVariant>[]

    Define any relations of the ProductVariant entity that would need to be joined in order to apply the valueFn.