Fork me on GitHub
#graphql
<
2023-03-29
>
rickmoynihan11:03:11

Does anyone know of any clojure(script) “GraphQL query as data” libraries?

Thomas Moerman12:03:37

Not entirely sure I understand the question, but perhaps #pathom might be what you are looking for?

rickmoynihan12:03:55

I don’t think pathom is comparable; as I understand it, it’s more of a complete replacement for GraphQL; rather than a way to build GraphQL queries from clojure data. I’m basically looking for something like honeysql, but for GraphQL. EQL which pathom is based on could in principle serve as a data syntax; but I don’t think there is a 1-1 mapping to all GraphQL query features… e.g. not sure it can support directives or even field arguments (though I might be wrong on the later)

rickmoynihan12:03:28

ok looks like it supports field arguments (params)

oliy17:03:44

Actually that doesn't look like what you're after