walkable-server / walkable

A Clojure(script) SQL library for building APIs: Datomic® (GraphQL-ish) pull syntax, data driven configuration, dynamic filtering with relations in mind
https://walkable.gitlab.io/
Eclipse Public License 2.0
445 stars 15 forks source link

Serialize query result to valid json #179

Closed eko234 closed 3 years ago

eko234 commented 3 years ago

Hi, I'm trying to use walkable to build a rest json api, so far the concept seems great, the thing is I'm kinda noob to clojure but I do get the philosophy of simplicity and I'm ok with it, I know I can write some data manipulation function to turn walkable query results into valid maps or arrays to be serialized by ring middleware, (I'm using ring as my http server), but I wanted to know if there is an easier or built-in way to go about it.

myguidingstar commented 3 years ago

hi, imo the "built-in" way for such things should live in ring side, not walkable. Maybe ring-middleware-format is what you're looking for?

eko234 commented 3 years ago

hi, imo the "built-in" way for such things should live in ring side, not walkable. Maybe ring-middleware-format is what you're looking for?

Thanks.