u/--Ether--

▲ 5 r/node

I think I spent like a week on this & at this point I may be loosing my mind because I am probably over complicating it. I am using native pgsql drivers & trying to figure out a nice way to build a query based on the url parameters.

ie: api?username:ilike="ether"&last_name:like="Doe"&age:gte=18

But splitting the url query, & having a giant switch case for each operator seems super messy to me? Should I just use a query builder like Knex.js at this stage

reddit.com
u/--Ether-- — 8 days ago