/plushcap/analysis/hasura/why-not-use-a-json-dsl-instead-of-graphql-d29f20cc97d2

Why you should use GraphQL instead of a JSON DSL

What's this blog post about?

The text discusses the benefits and drawbacks of using a JSON-based query language (DSL) versus GraphQL for API development. While a JSON DSL can be flexible and doesn't require changes in client or server-side tooling, it lacks a standardized grammar and schema, making it difficult to maintain over time. In contrast, GraphQL enforces a standard query language and requires the server to publish a schema, enabling community tooling and type safety. Despite some challenges with writing GraphQL servers, the author argues that GraphQL is an improvement over JSON DSLs for API development due to its emphasis on type safety and community support.

Company
Hasura

Date published
April 24, 2018

Author(s)
Tanmai Gopal

Word count
1436

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.