←back to thread

71 points genshii | 1 comments | | HN request time: 0.272s | source

Hey all, I just released v2.0.0 of FilterQL, a query language and TypeScript library. This version adds support for Operations, which allow you to transform the data after filtering.

If you think this would be useful in a project you're working on, give it a try and let me know what you think!

Show context
h1fra ◴[] No.45038671[source]
why a dsl when you could do ql.filter<Movies>(movies).where('y', '>=', 2008) or even just use kysely with a plugin
replies(1): >>45040593 #
genshii ◴[] No.45040593[source]
Mainly because you might not always want to filter in-code. e.g. A CLI tool could take in a query as an argument, or a web app could allow a user to enter a query.
replies(1): >>45041175 #
1. esafak ◴[] No.45041175[source]
If you're in the CLI I'd use nushell or dasel, if you're stuck with a legacy shell.