Skip to content

Problem with jsonlogic type and operator "between ,"not in" and "not between" #366

@Egor3842

Description

@Egor3842

I use custom rangeDate component and I need to export field's object as jsonlogic. I have two dates and operator "between" and it exported like {"<=":["2022-09-22",{"var":"date"},"2022-09-28"]}. When I import this rule to query builder with parseJsonLogic it gives me operator: "<=" and only first value, second value lost. What can I do with it? Moreover if I used "not between" in rule, it gave me a group, which has notToggle:"true" and operator:"between". I need to disable notToggle and take back operator:"not between". The same problem with "not in". How can I get it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions