pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
markaddleman 2020-05-25T19:23:50.083300Z

I have a pathom client that speaks json and I'd rather not have to get it to speak edn. Does anyone know of a json form of eql that has a straightforward translation to eql?

markaddleman 2020-05-25T19:25:07.083400Z

I'm particularly concerned about representing idents and eql parameters.

2020-05-25T19:29:45.084500Z

I want to create an async version of this parser so it can run under nodejs https://github.com/walkable-server/walkable/blob/3b1c218ef60c90b7a79f968c87e2ee0af46608b3/dev/src/common/walkable/integration_test/helper.clj#L27

2020-05-25T19:30:05.085100Z

it uses planner, btw

2020-05-25T19:30:32.085700Z

what do i have to change beside the dynamic resolver function?

2020-05-25T19:32:59.086200Z

what do you mean by "pathom client that speaks json"?

2020-05-25T19:34:01.087Z

eg: change p/parser to p/parallel-parser, pc/reader3 to something...

souenzzo 2020-05-25T19:34:06.087100Z

I have a lib called eql-as that I use for it. Checkout "RealWorld" example In the product that I work on, we use to map a REST API, with unqualified keys, both GET and POST's to EQL queries then dispatch it for a parser that only knows about qualified keys https://github.com/souenzzo/eql-as

markaddleman 2020-05-25T19:37:01.087400Z

I mean, my client is a typical browser-based javascript application. I want it to make queries that would be resolved by my pathom server-side application

markaddleman 2020-05-25T19:38:59.087600Z

@souenzzo Thanks! The library looks like it will be helpful after I come up with a json syntax for eql. My challenge right now is to come up with that syntax! 🙂

souenzzo 2020-05-25T19:45:33.087800Z

This lib still incomplete. any kind of feedback is welcome 🙂

1👍
markaddleman 2020-05-25T21:58:39.089400Z

It looks like pathom does an outer join when the results of two resolvers are joined together. Is there a way to get it to do an inner join instead?