Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Brackets #36

@unlight

Description

@unlight

Consider following queries:
$filter=name eq 'John' or name lt 'Doe' and address gt 'x1234'
$filter=(name eq 'John' or name lt 'Doe') and name gt 'x1234'
AST for these queries is the same.

{
    "type": "or",
    "left": {
        "type": "eq",
        "left": {
            "type": "property",
            "name": "name"
        },
        "right": {
            "type": "literal",
            "value": "John"
        }
    },
    "right": {
        "type": "and",
        "left": {
            "type": "lt",
            "left": {
                "type": "property",
                "name": "name"
            },
            "right": {
                "type": "literal",
                "value": "Doe"
            }
        },
        "right": {
            "type": "gt",
            "left": {
                "type": "property",
                "name": "address"
            },
            "right": {
                "type": "literal",
                "value": "x1234"
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions