Fork me on GitHub
#pathom
<
2020-09-15
>
henrik13:09:42

Is it possible to use back navigation in Pathom? (I’m using https://github.com/wilkerlucio/pathom-datomic). I.e.,

[{[:realm.schema/name :u.fluent/task]
  [{:realm.node/_schema
    [:realm/id
     {:realm.node/root [:realm/id]}]}]}]

💡 3
avocade14:09:58

Or do we need to create manual resolvers for this kind of thing? Would be pretty awesome if the pathom-datomic plugin could just pass that through…

henrik13:09:23

Do I need to install realm.node/_schema manually for it to be recognized perhaps?

wilkerlucio16:09:37

no, back references are currently unsupported, if you like to add this I'll take a PR, what needs to change is to also generate the back link properties in the index: https://github.com/wilkerlucio/pathom-datomic/blob/f8a7d25e39cb3be13362eb8016402610f85f8517/test/com/wsscode/pathom/connect/datomic_test.clj#L770-L816

👍 3
avocade18:09:53

@U066U8JQJ thanks for the info! let’s get to work then I guess @U06B8J0AJ 🌟 🚀

henrik07:09:48

Figured as much @U066U8JQJ, creating a manual parser works quite well, so it’d be great to have them generated. We’ll have a look at it and see if we can’t contribute something.