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 d9d6d60 commit f4810b0Copy full SHA for f4810b0
adminforth/dataConnectors/mongo.ts
@@ -108,7 +108,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
108
return dayjs(value).toISOString();
109
}
110
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
111
- return value === null ? null : (value ? 1 : 0);
+ return value === null ? null : (value ? true : false);
112
} else if (field.type == AdminForthDataTypes.DECIMAL) {
113
return Decimal128.fromString(value?.toString());
114
0 commit comments