Re:GQless: A GraphQL client built for rapid iteration
by andrewingram on Wednesday June 02, 2021 @09:37AM
(#27368524)
I'd say you're broadly right, the key idea is that your client code has a facade over the fact that you're using GraphQL, so it looks cleaner -- it's "just JavaScript". Whether this is an advantage or not is largely down to preference.
The "Why" section in the docs is a pretty good summary:
"I wanted a GraphQL client that lets you forget you're using GraphQL, whilst tackling some issues shared across all existing GraphQL clients"
The fact that it's resolved at runtime isn't necessarily an advantage, it locks you out of some performance and security patterns. I believe GQLess is investigating support for static extraction of queries at build time.
It's an interesting API, I'm not entirely sold on the idea of disguising the fact that you're using GraphQL though.
The "Why" section in the docs is a pretty good summary:
https://gqless.com/intro#why
"I wanted a GraphQL client that lets you forget you're using GraphQL, whilst tackling some issues shared across all existing GraphQL clients"
The fact that it's resolved at runtime isn't necessarily an advantage, it locks you out of some performance and security patterns. I believe GQLess is investigating support for static extraction of queries at build time.
It's an interesting API, I'm not entirely sold on the idea of disguising the fact that you're using GraphQL though.