We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889ad23 commit 17d7ea8Copy full SHA for 17d7ea8
packages/cubejs-backend-native/js/ResultWrapper.ts
@@ -7,7 +7,13 @@ export class ResultWrapper {
7
8
public cached: Boolean = false;
9
10
+ private readonly isNative: Boolean = false;
11
+
12
public constructor(private readonly nativeReference: any) {
13
+ if (nativeReference) {
14
+ this.isNative = true;
15
+ }
16
17
this.proxy = new Proxy(this, {
18
get: (target, prop: string | symbol) => {
19
// intercept indexes
@@ -18,7 +24,7 @@ export class ResultWrapper {
24
25
// intercept isNative
20
26
if (prop === 'isNative') {
21
- return true;
27
+ return this.isNative;
22
28
}
23
29
30
// intercept array props and methods
0 commit comments