Fork me on GitHub
#graphql
<
2018-05-14
>
mattly17:05:02

honestly this feels like something for a sort of sidecar feature

mattly17:05:09

it’s not that hard to decorate edn data

mattly17:05:12

or compose it really

mattly17:05:30

hell, in our app I have a bunch of helper functions for describing our schema

mattly17:05:01

since the schema is fairly sprawling

mattly17:05:13

and this lets me compose it more readily

mattly17:05:29

so I can do things like:

mattly17:05:39

that might not be the best example, but everything else I have is too domain-specific

mattly17:05:21

but I’ve found it’s much easier to sling data around with code

mattly17:05:27

anyway if you parsed the markdown file into sections so you had {:User "An external user." :User/family-name "..."} and so forth it would be fairly easy I think to walk the schema edn and decorate it with data from that

hlship17:05:45

That's kind of the intent.

hlship17:05:52

This could be something as an add-on library.

hlship17:05:49

But so could attach-resolvers. It's kind of fundamental, and supporting excellent documentation is a goal. My thinking is that embedding the documentation in the EDN does not support that goal.

mattly17:05:47

that’s fair