Fork me on GitHub
#pathom
<
2020-04-13
>
kwladyka20:04:16

how do you use pathom with PHP?

kwladyka20:04:39

I found https://github.com/igorw/edn but I doubt it is compatible with clojure EDN

eoliphant20:04:55

pathom is clojure/script only

kwladyka20:04:32

Yes, but probably I will have to use it also in other languages. At least some part of API

kwladyka20:04:40

just thinking if it is possible to achieve

eoliphant20:04:43

you could maybe create rest/graphql apiis that delegate to pathom

kwladyka20:04:46

with good EDN converter it should be

eoliphant20:04:14

it’s possible, may not be practical

kwladyka20:04:16

I would really like to avoid maintenance 2 APIs doing the same 😕

kwladyka20:04:59

Is some kind of magic to interage pathom with https://github.com/walmartlabs/lacinia by automate without rewriting the code?

eoliphant20:04:40

there’s a lib, that does that

kwladyka20:04:58

hmm and does it work without any issues?

eoliphant20:04:22

not sure, but give it whirl

eoliphant20:04:13

one issue, is that it wants you to define stuff via it’s api

eoliphant20:04:44

so not sure how useful it is for say ‘adaptiing’ an existing pathom api

kwladyka20:04:23

damn… I don’t like my issue 😉

kwladyka20:04:15

ah live would be so easy if other languages will use EDN too

kwladyka20:04:30

this is so great data format

kwladyka20:04:54

probably I will end with pathom + REST :thinking_face: