does pathom handle wildcards in queries?
I see some references to it in code but I'm not able to precisely understand the behavior
does it just resolve top-level attributes or does it recurse?
@lilactown in Pathom, wildcard means "give me everything you loaded so far"
its not gonna trigger any extra resolvers, when a resolver is called, the full resolver response is always merged, but later it gets filtered out to include only keys that the user asks, the wildcard removes that filter on that level
one way you can see all possibilities is using a smart map, if you datafy
the smart map you can see all reachable keys
hmm ok. so a client passing a query like:
[{[:component/id 0] [*]}]
isn't going to be any different than:
[[:component/id 0]]
?correct
what may be, is something like:
[{[:component/id 0] [:component/some-data *]}]
hmm I see
that's very helpful. I wrote that down here: https://github.com/lilactown/autonormal/issues/6
nice! Im also adding info about this in Pathom docs, I totally missed documenting this