query re-rooting only works on joins? If I use a simple query that generates an AST like:
{:type :prop, :dispatch-key :search/results, :key :search/results, :params {:q "br"}, :query-root true}
then my remote read is not rooted at :search/results
.
However, if I use a more complex query that generates an AST like: {:type :join
:dispatch-key :search/results
:key :search/results
:query [{:person/name [:<http://person.name/given|person.name/given> :<http://person.name/family|person.name/family>]}]
:children [{:type :join
:dispatch-key :person/name
:key :person/name
:query [:<http://person.name/given|person.name/given> :<http://person.name/family|person.name/family>]
:component components.person-primary-name/PersonPrimaryName
:children [{:type :prop
:dispatch-key :<http://person.name/given|person.name/given>
:key :<http://person.name/given}|person.name/given}>
{:type :prop
:dispatch-key :<http://person.name/family|person.name/family>
:key :<http://person.name/family}]}]|person.name/family}]}]>
:params {:q "br"}
:query-root true}
then the remote read is correct re-rooted