Liking cljdoc? Tell your friends :D

space.matterandvoid.subscriptions.impl.eql-queries

Automatically register subscriptions to fulfill EQL queries for fulcro components.

Automatically register subscriptions to fulfill EQL queries for fulcro components.
raw docstring

ast-by-key->queryclj/s

(ast-by-key->query k->ast)
source

class->registry*clj/s

source

class->registry-keyclj/s

(class->registry-key component)
source

component-id-propclj/s

(component-id-prop c)
source

create-component-subsclj/s

(create-component-subs <sub sub-fn datasource c join-subs-map)

Creates a subscription function (and dependent subscription functions) that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.

Creates a subscription function (and dependent subscription functions) that will fulfill the given fulcro component's query.
The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component.
The component must have a name and so must any components in its query.
sourceraw docstring

default-class->registry-keyclj/s

(default-class->registry-key c)
source

default-get-identclj/s

(default-get-ident c props)
source

default-get-queryclj/s

(default-get-query c)
source

default-ncclj/s

(default-nc args)
source

eql-by-keyclj/s

(eql-by-key query)
source

eql-query-keys-by-typeclj/s

(eql-query-keys-by-type query join-ast->subscription join-ast->union-sub)

Takes an EQL query parses it and returns a map of the members of the query for easier downstream consumption.

Takes an EQL query parses it and returns a map of the members of the query for easier downstream consumption.
sourceraw docstring

errorclj/s

(error & args)
source

fulcro-loaded?clj/s

source

fulcro-ncclj/s

source

get-all-props-shallowclj/s

(get-all-props-shallow datasource app id-attr props args)

Return hashmap of data attribute keywords -> subscription output implementation for '* queries

Return hashmap of data attribute keywords -> subscription output implementation for '* queries
sourceraw docstring

get-identclj/s

(get-ident component props)
source

get-ident*clj/s

source

get-queryclj/s

(get-query component)
source

get-query*clj/s

source

group-by-flatclj/s

(group-by-flat f coll)
source

missing-id-check!clj/s

(missing-id-check! id-attr sub-kw args)
source

missing-valclj/s

source

ncclj/s

(nc args)

Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc

Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword.
Args:
:query - fulcro eql query
:ident - kw or function
:name -> same as :componentName
Returns a fulcro component created by fulcro.raw.components/nc
sourceraw docstring

nc-wrapperclj/s

(nc-wrapper args)

Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc

Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword.
Args:
:query - fulcro eql query
:ident - kw or function
:name -> same as :componentName
Returns a fulcro component created by fulcro.raw.components/nc
sourceraw docstring

query-keyclj/s

source

recur?clj/s

(recur? q)
source

register-component-subs!clj/s

(register-component-subs! reg-sub-raw <sub datasource c)

Registers subscriptions that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.

Registers subscriptions that will fulfill the given fulcro component's query.
The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component.
The component must have a name and so must any components in its query.
sourceraw docstring

sub-entityclj/s

(sub-entity <sub sub-fn datasource id-attr props attr-kw->sub-fn)

Registers a subscription that returns a domain entity as a hashmap. id-attr for the entity, the entity subscription name (fq kw) a seq of dependent subscription props

Registers a subscription that returns a domain entity as a hashmap.
id-attr for the entity, the entity subscription name (fq kw) a seq of dependent subscription props
sourceraw docstring

sub-plain-joinclj/s

(sub-plain-join <sub datasource id-attr join-prop join-component-sub)

Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.

Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the
entity and extract the property.
sourceraw docstring

sub-recur-joinclj/s

(sub-recur-join <sub datasource id-attr recur-prop recur-sub-fn_)
source

sub-union-joinclj/s

(sub-union-join <sub datasource id-attr join-prop join-component-sub)

Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.

Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the
entity and extract the property.
sourceraw docstring

union-key->entity-subclj/s

(union-key->entity-sub union-ast)
source

union-query->branch-mapclj/s

(union-query->branch-map join-prop union-join-q)

Takes a union join query and returns a map of keyword of the branches of the join to the query for that branch.

Takes a union join query and returns a map of keyword of the branches of the join to the query for that branch.
sourceraw docstring

walk-fn-keyclj/s

source

xform-fn-keyclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close