Fork me on GitHub
#pathom
<
2019-01-24
>
hmaurer14:01:38

Hi! I am trying to use placeholders but for some reason I can’t get them to work. Here is the first query I tried:

[{:current-user [:user/id :user/first-name]}]
which returned
{:current-user
 {:user/first-name "Henri",
  :user/id #uuid "2d3f8164-9a7c-45b6-b0ef-194cfd5b84be"}}
Then I tried:
[{:current-user [:user/id {:>details [:user/first-name]}]}]
which returned:
{:current-user
 {:user/id #uuid "2d3f8164-9a7c-45b6-b0ef-194cfd5b84be", :>details {}}}

hmaurer14:01:40

what did I do wrong?

hmaurer14:01:52

Ah, got it. The syntax is not :>details but :>/details!

👍 10
wilkerlucio15:01:37

yup, > is considered the special thing, and this is configured as part of your environment

wilkerlucio15:01:10

you can even use a different one, but unless the default > is causing you trouble (colliding with something else) I encourage you to keep using the default