Is that possible drop the entity query drop after [?name :tg/contains ?h] line? My code is:
(map #(d/entity db-p6 %)
(q '[:find [?h ...]
:where [?full :p-id :user-id]
[?full :p-tel ?name]
[?name :tg/contains ?h]]
db-p6))
; >> I get: ({..data..}{..data..}{..data..}) > that is ok as eg. [?h :tg/entity ..?i don't know?..] or that isn’t possible?
sorry, I’m not clear on what you’re asking?
Sorry! I would like to get the data of the nodes without the first line ([:tg/node-59385] [:tg/node-59388] [:tg/node-59391]) is that possible add this at the end (:where part)?
Can you explain what you mean please? That line doesn’t exist in that query
And the query doesn’t return it
(q '[:find [?h ...]
:where [?full :p-id :user-id]
[?full :p-tel ?name]
[?name :tg/contains ?h]
--> can I add here [?h :tg/entity or similar here?]
db-p6))OK… I can see that might return (:tg/node-59385 :tg/node-59388 :tg/node-59391)
Yes, this is what I get, therefore I added the first line. I’m new in datalog.. maybe my mistake
you can add that. It will ensure that the object in the collection are only entities
what are you looking for then?
I’m thinking about. I read the spec and I’m back.
OK. Happy to help. I’m just trying to figure out what you’re looking for
I do apologise, I queried a bad key… always 😞 🤯 That was my mistake! everything ok!