rado 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Formatter.js +3 -2
- package/package.json +1 -1
package/dist/lib/Formatter.js
CHANGED
|
@@ -324,14 +324,15 @@ var Formatter = class {
|
|
|
324
324
|
const column = expr.target.table.columns[field];
|
|
325
325
|
switch (column?.type) {
|
|
326
326
|
case ColumnType.Json:
|
|
327
|
-
|
|
327
|
+
if (ctx.formatAsJson)
|
|
328
|
+
return call("json", selection);
|
|
328
329
|
default:
|
|
329
330
|
return selection;
|
|
330
331
|
}
|
|
331
332
|
}
|
|
332
333
|
default:
|
|
333
334
|
return this.formatAccess(
|
|
334
|
-
this.formatExpr(expr,
|
|
335
|
+
this.formatExpr(expr, ctx),
|
|
335
336
|
field,
|
|
336
337
|
ctx.formatAsJson
|
|
337
338
|
);
|