Pathom3 resolvers to make accessing the DB easy.
Pathom3 resolvers to make accessing the DB easy.
(attr-fn attr resolve?)Return a function for the argument. the dp/pull returns wrapped in the output Pathom requires.
Return a function for the argument. the dp/pull returns wrapped in the output Pathom requires.
(attr-info conn)Return a vector of maps containing :attr/id and :attr/type for every attribute in the DB.
Return a vector of maps containing :attr/id and :attr/type for every attribute in the DB.
(attr-types conn)Return map of two sets (with the following two keys):
Return map of two sets (with the following two keys): - :resource? : DB attributes that appear directly in resources. - :experssion? : DB attributes that do not appear directly in resources.
(make-resolver sym {:keys [input output fn]})(make-resource-attr-resolvers conn)Return a vector of resolvers for rdf resource attributes.
Return a vector of resolvers for rdf resource attributes.
a vector of pre-defined resolvers for accessing the OWL DB.
a vector of pre-defined resolvers for accessing the OWL DB.
(pull-resource resource-id conn & {:keys [keep-db-ids? sort?] :or {sort? true}})Return the nicely sorted sorted-map of a resource; it's like pretty printing.
Return the nicely sorted sorted-map of a resource; it's like pretty printing.
(register-resolvers! conn)Alter the value of the var index to refer to the automatically-generated Pathom resovlers, plus others defined in this namespace. (See the var other-resolvers).
Alter the value of the var index to refer to the automatically-generated Pathom resovlers, plus others defined in this namespace. (See the var other-resolvers).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |