This namespace contains easy ways to setup common configurations for Pathom parsers
This namespace contains easy ways to setup common configurations for Pathom parsers
(connect-async-parser register)
(connect-async-parser {:com.wsscode.pathom.sugar/keys [connect-reader
foreign-parsers plugins]}
register)
Create a standard connect parser using the async parser.
Just like the serial parser, but supports waiting for core.async channels in responses. The most common usage of this one is in ClojureScript land, where most of the IO needs to be async.
Create a standard connect parser using the async parser. Just like the serial parser, but supports waiting for core.async channels in responses. The most common usage of this one is in ClojureScript land, where most of the IO needs to be async.
(connect-parallel-parser register)
(connect-parallel-parser {:com.wsscode.pathom.sugar/keys [connect-reader]}
register)
Create a standard connect parser using the parallel parser.
This is recommended if you have a lot of different information sources that are IO bound. This parser can handle things in parallel, but adds extra overhead to processing, use it in case your system has good parallelism opportunities.
Create a standard connect parser using the parallel parser. This is recommended if you have a lot of different information sources that are IO bound. This parser can handle things in parallel, but adds extra overhead to processing, use it in case your system has good parallelism opportunities.
(connect-serial-parser register)
(connect-serial-parser {:com.wsscode.pathom.sugar/keys
[connect-reader foreign-parsers plugins]}
register)
Create a standard connect parser using the serial parser.
This parser recommended for handling small and simple queries, like resolvers to process missing configuration options.
Create a standard connect parser using the serial parser. This parser recommended for handling small and simple queries, like resolvers to process missing configuration options.
(context-parser parser)
Transforms the signature of a regular parser to one that takes some initial context to run the query. This returns a fn with the following arities:
[context query] => runs query using context as initial data. [env context query] => same as before but accepts initial environment.
Transforms the signature of a regular parser to one that takes some initial context to run the query. This returns a fn with the following arities: [context query] => runs query using context as initial data. [env context query] => same as before but accepts initial environment.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close