re: Anyone using GraphQL for their API? VIEW POST


I use gql whenever and as often as I can 😄

You got somewhat of a learning curve,
but in imho its a big time saver, takes a lot of the heavy lifting from building the standard rest api setup. Alot can be autogenerated, Its more or less language, db & framework agnostic and with gql you can more data with less queries written, fewer requests posted, easier caching and async behavior.
Its easy to get an overview of the db with native tools like graphiql that provides you with a clear and typed db-schema with no real config time.

So as u can tell I'am a fan, but there is also some tradeoffs. Such as quite different syntax, behavior and capabilities between providers.
For example if your backend is ruby and you use the gql provider Apollo you can use queries (kind of like a get) and mutations (post).
But if your setup is Node.js and prisma is the gql provider you get access to queries & mutations but also the type subscriptions (sort of a listener) which is awesome and very useful.

So like with any tech there is good and bad. But i don't think you would regret the time you spent if you learn graphQL no matter the usecase 😎

code of conduct - report abuse