tigrisdata-archive / tigris-client-ts

TypeScript client for Tigris
https://www.tigrisdata.com/docs/sdkstools/typescript/
Apache License 2.0
15 stars 10 forks source link

fix: Making search facets an object instead of ES6 map #255

Closed adilansari closed 1 year ago

adilansari commented 1 year ago

Describe your changes

- private readonly _facets: ReadonlyMap<string, FacetCountDistribution>;
+ export type Facets = { [key: string]: FacetCountDistribution };
+ private readonly _facets: Facets;
console.log(JSON.stringify(result.facets));

{"author":{"_counts":[],"_stats":{"_avg":4.5,"_count":0,"_max":0,"_min":0,"_sum":0}}}

How best to test these changes

Issue ticket number and link

closes #248

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0-beta.34 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: