Fork me on GitHub
#om
<
2016-06-17
>
anmonteiro14:06:37

@nxqd: @iwankaramazow: the problem in your example is that you’re setting both the Root query and the Wrapper query

anmonteiro14:06:04

whenever you get the query for the Root, since you set it dinamically, whatever has been set for it is going to win

anmonteiro14:06:17

in this case you have set it when the id param was still nil

jimmy15:06:00

@anmonteiro: thanks ! it explains the problem.

kenbier16:06:21

im having trouble querying for a many enum attribute. i.e. [:db/id :foo/bar {:foo/zed [:db/ident]}]

kenbier16:06:49

the query returns [{:db/id 17592186262081} {:db/id 17592186262266}] for :foo/zed

kenbier16:06:57

is there a proper way to query for many enum that i am missing? on the server this query looks the same and returns the actual values

iwankaramazow20:06:05

@anmonteiro: thanks! Om Next's fundamentals are so important 😄

whitecoop22:06:17

I've run into the #error {:message "No queries exist for component path [...] a few times and it seems to have something to do with the query in my root component and (possibly) the metadata from get-query calls inside the root query. A simplified example: Header query:

[:app/name]
Counter query:
[:app/count]
Root query:
`[~@(om/get-query Header)
  ~@(om/get-query Counter)])
Setup this way, the child components get the right props, but calls to transact! from the child components throw the "No queries" error. Does someone know if this is expected behavior? EDIT: adjusted typos in query names