This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-20
Channels
- # 100-days-of-code (2)
- # aleph (53)
- # architecture (2)
- # aws (3)
- # beginners (230)
- # boot (15)
- # calva (3)
- # cider (19)
- # cljs-dev (1)
- # clojure (139)
- # clojure-conj (3)
- # clojure-italy (47)
- # clojure-nl (19)
- # clojure-spec (26)
- # clojure-uk (98)
- # clojurescript (152)
- # clojutre (4)
- # core-async (22)
- # cursive (5)
- # datomic (48)
- # emacs (11)
- # events (1)
- # figwheel-main (219)
- # fulcro (15)
- # instaparse (3)
- # jobs (4)
- # jobs-rus (1)
- # leiningen (30)
- # luminus (8)
- # off-topic (67)
- # onyx (5)
- # pedestal (16)
- # re-frame (1)
- # reagent (4)
- # reitit (31)
- # ring (8)
- # ring-swagger (3)
- # shadow-cljs (115)
- # specter (4)
- # videos (1)
- # vim (20)
- # yada (15)
Are there any examples/resources on how to implement the defquery-entity defquery-root defmutation
from fulcro.server with pathom ? 🙂
@mailgrease js or jvm ? I'm working on a small app now with fulcro backend on nodejs, (for appengine standard nodejs, give or take similar to lambadas). So far so good, still working a bit on getting nice SSR and writing the backend api with pathom.
haven't tried. If you're not interested in SSR and just want the fulcro server ("/api") for lambdas. There you can use fulcro server or just do your own thing and use https://github.com/wilkerlucio/pathom for the parsing the queries.
@claudiu Replace the Fulcro server-parser with a pathom parser. At that point do not use the defquery*
macros. For mutations, pass :mutate fulcro.server/server-mutate
to the pathom parser, and you can then still use defmutation
for the server.
alternatively, you can make parsers with pathom that “start” at specific places, and then have multiple parsers…in that case you could leave the fulcro parser in place, and pull the query
from env
(which will be the subquery of the load…e.g. the component’s query), and process that with a pathom parser.
If you replace Fulcro’s parser, though, you’ll get better tool support, and I think your overall read stuff will be cleaner
Just look at what queries the load
and load-field
generate…they’re really just single joins (or even single props if you don’t supply a component to load
).
@tony.kay thank you. Will try looking at load, the plan is to use pathom without the fulcro server stuff. Was wondering if there any docs/exaples to help me have it running fast for some basic operations :D