Skip to content
Compare
Choose a tag to compare
@mzanoni mzanoni released this 05 Jul 05:19
· 70 commits to main since this release

What's Changed

  • feat: Get Product Facet by @mzanoni in #69
    This features a clean way of getting a concrete facet with the correct type:
    const request: ProductSearchRequest = new ProductSearchBuilder(...)
        .facets(f => f.addProductDataStringValueFacet('DataKeyName', 'Product'))
        .build();

    const result = await searcher.searchProducts(request);

    if (result && result.facets) {
        const dataStringFacet: ProductDataStringValueFacetResult | null = GetProductFacet.dataString(result.facets, 'DataKeyName', 'Product');
    }

Full Changelog: https://github.com/Relewise/relewise-sdk-javascript/compare/[email protected]@1.31.0