sanitizes null strings provided to relationship queries

This commit is contained in:
James
2020-11-04 09:07:02 -05:00
parent 0ffbd2ee0f
commit df33ceca79

View File

@@ -176,6 +176,10 @@ class ParamParser {
if (val.toLowerCase() === 'false') formattedValue = false;
}
if (schemaObject && schemaObject.ref && val === 'null') {
val = null;
}
if (operator && validOperators.includes(operator)) {
switch (operator) {
case 'greater_than_equal':