graphql

2023-03-29T11:20:11.231219Z

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

Thomas Moerman 2023-03-29T12:41:37.478969Z

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

2023-03-29T12:48:55.863349Z

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)

2023-03-29T12:51:28.499099Z

ok looks like it supports field arguments (params)

2023-03-29T12:53:49.124889Z

https://github.com/edn-query-language/eql-graphql

👍 1
thom 2023-03-29T12:55:00.976759Z

https://github.com/Vincit/venia

👍 1
2023-03-29T17:29:33.105289Z

https://github.com/retro/graphql-builder too

2023-03-29T17:30:44.039109Z

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

steveb8n 2023-03-29T19:49:39.453599Z

I like https://github.com/r0man/grafeo