This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-22
Channels
- # announcements (3)
- # beginners (22)
- # braveandtrue (6)
- # calva (2)
- # cider (85)
- # cljdoc (1)
- # cljs-dev (21)
- # cljsrn (2)
- # clojure (70)
- # clojure-italy (9)
- # clojure-spec (1)
- # clojure-uk (144)
- # clojure-ukraine (6)
- # clojurescript (109)
- # cursive (59)
- # data-science (15)
- # datomic (40)
- # emacs (8)
- # fulcro (64)
- # funcool (8)
- # graphql (8)
- # hispano (3)
- # hoplon (7)
- # jobs-discuss (29)
- # leiningen (3)
- # luminus (2)
- # off-topic (13)
- # onyx (9)
- # parinfer (49)
- # pedestal (2)
- # portkey (8)
- # re-frame (10)
- # reagent (33)
- # reitit (13)
- # ring (2)
- # ring-swagger (16)
- # shadow-cljs (193)
- # spacemacs (1)
- # sql (19)
- # tools-deps (19)
@tbaldridge maybe you would want to parse Graphql to output to something that Pathom can consume https://github.com/wilkerlucio/pathom
by something I mean om.next query format
the library provides quite a few tools for caching due to its use of clojure data structure
for parsing graphql only, you can use this library https://github.com/alumbra/alumbra.parser
@tbaldridge Yes, GraphQL supports parameterized queries (http://facebook.github.io/graphql/June2018/#sec-Validation.Variables). Lacinia fully supports this as well. In Lacinia, step one is to parse the GraphQL document into Lacinia's internal representation. Step two is to apply variables. Step three is to execute the query and generate results.
You can cache (in memory) the internal representation from step one. This shaves a small amount of time off of overall request processing time (even large queries can be parsed in maybe 2 ms).