Skip to content

Nicer rendering for queries #9

Open
edubrovski opened this issue Jun 29, 2022 · 0 comments
Open

Nicer rendering for queries #9

edubrovski opened this issue Jun 29, 2022 · 0 comments

Comments

@edubrovski
Copy link
Contributor

edubrovski commented Jun 29, 2022

Currently we don't do any formatting when rendering queries.

  1. Let's use newlines and tabs to make queries more readable, e.g
{ $and:
    [
        {  "intField": { $eq: 3 } },
        { "stringField": { $ne: "some" } }
    ]
}

instead of

{ $and: [ { "intField": { $eq: 3 } }, { "stringField": { $ne: "some" } } ] }
  1. Use a compiler flag to enable/disable AST printing; disable AST printing by default.

@oolong/maintainers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant