In principle that is fine, but in practice I do not think I fully fleshed out recursive support. The resolver generation should be ok with it for Datomic (I think)...would be helpful for you to describe what "not ending well" means.
Thank you for your reply! and for the Fulcro ecosystem! 🙂 I think I get an infinite compiler loop. Since it's mentioned in the developers guide (inside the code for "Example 12. https://book.fulcrologic.com/#RecursiveDemo1") that "calling get query on yourself would lead to infinite compiler recursion", I suspected that circular recursion is not supported. (which is why I did't start by providing lots of details). Since it should be supported, It's probably me... 🙂 I will simplify my code and figure out if I can get my code to work or fail even with a more trivial case. If I can't get it to work I'll ask again for some guidance (and provide all the relevant details). Thanks! Michael
Thanks a lot! Deps: I will just remove the alias, it can perhaps cause problems if it is not defined on your machine (I have it in my global deps.edn). The :serve deps are not required by shadow in my experience.
Thank you! So you main challenge is understanding what Pathom resolvers to write and how to map those to an underlying SQL DB, correct?
1👍You of course cannot call get-query (or any function) recursively without a termination condition...but where are you doing that? You used recursive query notation in your code sample
Forms won't auto-handle it, but you have to do a subform join on a ref, which means generating a subform class. You cannot use the form itself as its own subform, but you can write another class for that purpose.
When trying the fulcro-demo in fulcro-rad-kvstore, the db shows empty in fulcro inspect tab. Any ideas why, or how to debug it?
Make sure you have latest inspect AND latest Fulcro (even newer than what the demo pulls in)