Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for empty literals, strings and groups #19

Open
ErisDS opened this issue Jul 17, 2018 · 0 comments
Open

Support for empty literals, strings and groups #19

ErisDS opened this issue Jul 17, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ErisDS
Copy link
Member

ErisDS commented Jul 17, 2018

Originally reported at TryGhost/GQL#36


See: TryGhost/Ghost#9258 & TryGhost/Casper#382

I've seen this pop up a few times. If you use dynamic queries, there's no guarantee that you will get anything output, and then NQL will throw a parse error.

Short term the solution is to put guards around dynamic queries, but I think we can do better in NQL Lang, by handling the concept of an empty clause, and removing the whole clause if empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant