Fork me on GitHub
#pathom
<
2021-11-23
>
Jakub Holý (HolyJak)15:11:13

@wilkerlucio FYI https://edn-query-language.org/ gives > 404 There isn't a GitHub Pages site here.

👀 1
wilkerlucio15:11:21

something strange is going on, the setup on my DNS seems correct but Github keeps complaining about it

Jakub Holý (HolyJak)15:11:08

The DevOps joys. Good luck with it!

Jakub Holý (HolyJak)15:11:38

I run https://holyjak.cz/ on GH as well, let me know if you want to compare my setup with yours

wilkerlucio15:11:35

yeah, I mean, Pathom 3 and 2 are also there

wilkerlucio15:11:49

I double checked, they are pretty much the same config, I think GH is trolling me 😛

wilkerlucio15:11:06

I just kept saving it 🤷

wilkerlucio15:11:41

thanks for bringing it up

Jakub Holý (HolyJak)15:11:33

thx for fixing so quickly!

Jakub Holý (HolyJak)15:11:42

@wilkerlucio I think it would be helpful if both https://blog.wsscode.com/pathom/v2/pathom/2.2.0/connect/resolvers.html and https://pathom3.wsscode.com/docs/resolvers also mentioned what are the expected outputs of a resolver - i.e. that it always is a map representing a single data entity or wrapping a sequence of data entity maps (where I am unsure what "sequence" should be - can it be any of set/list/vector or does it need to be a vector? Regarding normalization of a seq. of entities in Fulcro it seems to onyl handle vectors of these) 🙏

wilkerlucio15:11:54

a sequence is a value as any other, I think its more accurate to think of a resolver response as a bag of labeled data

👍 1
wilkerlucio15:11:13

because its not even the entity itself, since that's is a larger construct, from the user query

wilkerlucio15:11:20

Pathom 3 is made to handle any kind of sequences, but vectors still preferred, you can't batch if the value has a set or a list in the path for that entry (except on Parallel Runner, because it handles batching differently)

👍 1
Jakub Holý (HolyJak)15:11:42

I see, thank you. It was not clear to me from the current docs what sequences to use / prefer (though it may be just my text scanning skills that are lacking :))

wilkerlucio15:11:13

Im down for improving on docs as always, if you have a specific suggestion I'll love to take PR for it

wilkerlucio15:11:20

the getting started section has something that's more like what you suggested I think

Jakub Holý (HolyJak)15:11:15

yes, that is what I have been looking for. I would add to 2. the mention of that vectors for sub-entities are preferred and perhaps replicate that info on the resolvers page.

Jakub Holý (HolyJak)15:11:35

I would send a PR if I knew what exactly and where to put 😅

wilkerlucio23:11:24

❤️ 8
😍 1
Pragyan Tripathi04:11:57

Oh wow this so amazing.. How can we configure it. I am using both Pathom Viz, and portal would like to integrate them into one..

souenzzo14:11:21

nice to know that portal has cursive integration