Skip to content

Commit 2875d47

Browse files
authored
feat: expose loadResponse annotation (#894)
1 parent 8421b80 commit 2875d47

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/cubejs-client-core/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ declare module '@cubejs-client/core' {
560560

561561
query(): Query;
562562
rawData(): T[];
563+
annotation(): QueryAnnotations;
563564
}
564565

565566
export type Filter = {

packages/cubejs-client-core/src/ResultSet.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ class ResultSet {
507507
rawData() {
508508
return this.loadResponse.data;
509509
}
510+
511+
annotation() {
512+
return this.loadResponse.annotation;
513+
}
510514

511515
timeDimensionBackwardCompatibleData() {
512516
if (!this.backwardCompatibleData) {

0 commit comments

Comments
 (0)