Fork me on GitHub
#pathom
<
2019-02-26
>
souenzzo00:02:15

http://book.fulcrologic.com/#MutationJoins @eoliphant mutation-merge is now deprecared. That's the new (and clear) way

eoliphant00:02:48

ah sweet thx

tony.kay01:02:33

Anyone seen infinite loops on pathom parallel parser? I have been using a parallel parser on this project for some time, and for larger responses it just started “hanging” forever (but spinning GC/CPU). Dropping it to a normal parser fixes it (fortunately none of the resolvers returned channels yet)

Joe Lane01:02:16

Hi friends, when going through the pathom documentation for using the connect graphql remote, it uses the fake :demo-repos resolver. How would I specify a query with an argument? I’ve tried (df/load app {:event-by-id "c59cef71-f52e-45cf-a1c4-9960314b540e"} root/Root {:target [::root "singleton" :event-by-id]}) but I get an exception Uncaught Error: Assert failed: (or (util/ident? server-property-or-ident) (keyword? server-property-or-ident)). What am I missing here?

wilkerlucio03:02:47

@tony.kay I just released yesterday one fix for a timeout situation on some error edge cases, not sure if it's the same thing, but please try 2.2.11 and let me know if improves, if doens't would be really helpful if you can get a minimal repro of it

wilkerlucio03:02:10

@joe.lane to send arguments for a query you can use a load with an ident, or use :params in the query options

Joe Lane03:02:42

Thanks! BTW, the documentation for the simple graphql complete solution is missing.

Joe Lane14:02:30

Thanks again!! This simple-todo-demo answers several other questions I had related to both fulcro and pathom.

Joe Lane16:02:47

Would Pathom be open to a PR (or issue if the authors prefer) on the graphql-network function https://github.com/wilkerlucio/pathom/blob/master/src/com/wsscode/pathom/fulcro/network.cljs#L190 I need to add auth headers to my simple graphql request and I dont know of any better place than a second arity or default argument. Am I missing something? Should this be done via middleware or some other mechanism?

wilkerlucio16:02:16

@joe.lane I'm open to the PR to add, we can have a arity 2 version of it that takes options map, that can include custom headers

👍 5
Joe Lane16:02:39

@wilkerlucio Great, I’ll be needing it shortly.