datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
idiomancy 2018-09-13T02:18:15.000100Z

can anyone tell me what this . is for in the following re-posh query?

{:type :query
 :query '[:find ?id .
          :where [?id :app/type :type/account]]}

idiomancy 2018-09-13T02:18:51.000100Z

I'm still trying to figure out this business. is it the same meaning in datomic?

👍 1
souenzzo 2018-09-13T10:53:50.000100Z

@idiomancy It's about #datascript that flows #datomic https://docs.datomic.com/on-prem/query.html#find-specifications

souenzzo 2018-09-13T10:56:32.000100Z

:find ?e => #{[e1] [e2] ...} :find [?e] => [e1] :find [?e ...] => [e1 e2 ...] :find ?e . => e1

idiomancy 2018-09-13T14:13:07.000100Z

THANK YOU! That's exactly what I needed!

idiomancy 2018-09-13T14:13:43.000100Z

you're the man, @souenzzo!

idiomancy 2018-09-13T15:30:07.000100Z

is there any way to apply find specifications for pull patterns?

idiomancy 2018-09-13T15:31:08.000100Z

or would I have to make another layer 3 subscription to say "i just want the value from this entity"

idiomancy 2018-09-13T19:23:13.000100Z

or, more importantly, is there any way in re-posh to materialize a view from a pulled value?

idiomancy 2018-09-13T19:23:25.000100Z

in other words, is there some way I can register a subscription that uses a pulled entity as its input?