Contains the protocol used to abstract over a datasource in order to fulfill EQL queries for that datasource.
Contains the protocol used to abstract over a datasource in order to fulfill EQL queries for that datasource.
(-attr this db id-attr attr args-query-map)
Given a datasource db
a keyword id-attr
and a hashmap args-query-map
containing that id-attr, return only the field attr
from the entity with that id.
Given a datasource `db` a keyword `id-attr` and a hashmap `args-query-map` containing that id-attr, return only the field `attr` from the entity with that id.
(-attribute-subscription-fn this id-attr attribute)
Returns a function that returns a Reactive type (RCursor or Reaction) for extracting a single attribute of an entity.
Returns a function that returns a Reactive type (RCursor or Reaction) for extracting a single attribute of an entity.
(-entity this db id-attr args-query-map)
Given a datasource db
a keyword id-attr
and a hashmap containing that id-attr, return an entity from the db
with that id.
Given a datasource `db` a keyword `id-attr` and a hashmap containing that id-attr, return an entity from the `db` with that id.
(-entity-id this db id-attr args-query-map)
(-ref->attribute this ref)
Given a ref type or a full entity return the attribute used for the entity's ref. ex: :user/id for the ref [:user/id 1]
Given a ref type or a full entity return the attribute used for the entity's ref. ex: :user/id for the ref [:user/id 1]
(-ref->id this ref)
Given a ref type for storing normalized relationships, or a full entity, return the ID of the pointed to entity.
Given a ref type for storing normalized relationships, or a full entity, return the ID of the pointed to entity.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close