fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
roklenarcic 2020-11-28T18:54:41.008Z

Hm, I am looking at a number of datalog options other than Datomic and they seem to be mostly focused on the normal query syntax (not the pull syntax that is used by EQL). Is there a library or something that is capable of transforming EQL to datalog queries?

Reshef Mann 2020-11-29T08:24:53.010600Z

https://opencrux.com/reference/queries.html#eql-projection Maybe this can help

roklenarcic 2020-11-29T13:00:38.011100Z

so crux can do it, as long as I generate the query for the root….

2020-11-29T16:15:22.011300Z

I think of pathom as an alternative to needing to write pull syntax queries yourself - it handles the nested traversal. If you need inspiration, here's a sample repo: https://github.com/souenzzo/graph-demo that being said, I do have a few use cases using crux where I need to use pull queries (using recursion), for that you can use client libraries like this: https://github.com/dvingo/my-clj-utils/blob/master/src/main/dv/crux_pull.clj

2020-11-30T02:35:58.014900Z

@danvingo the new crux alpha eql/project is not sufficient for you?

2020-11-30T02:46:03.015100Z

doesn't support recursion

nivekuil 2020-11-30T02:50:12.015300Z

recursion's coming in the upcoming release :) personally I'm leery about using entities instead of logical ID values as edges, so I can't use project/pull. Not sure if that's going to pay off but keeping the data model separate from the operational model seems prima facie prudent

2020-11-30T03:47:14.015500Z

there's some other pull feature not available yet as well as recursion: https://github.com/juxt/crux/issues/1220 I don't understand. Where do you see entities being used as edges?

nivekuil 2020-11-30T03:52:39.015800Z

the eql join requires that the value of the attribute you're joining on is a crux.db/id of some other doc

2020-11-30T12:45:22.016300Z

ah I see - yes I agree. I have currently landed on using idents for all refs within crux [:user/id #uuid ".."] but the user doc would have the crux.db/id of just the uuid so I also can't use project because of that currently.

tony.kay 2020-11-28T20:29:45.008400Z

See #announcements for a few release-related things.

Jakub Holý 2020-11-28T20:40:48.008500Z

This https://github.com/replikativ/datahike-frontend reportedly combines Fulcro and Datahike but not sure how relevant it is

roklenarcic 2020-11-28T21:38:00.008800Z

I’ll take a look thanks