3 ms·
GraphQL isn't a query language, it's an API protocol language. Big difference.
by atombender 8y ago
GraphQL isn't a query language, it's an API protocol language. Big difference.
- aikah 8y agoWell it is a query language, QL stands for query language.
- atombender 8y agoThe name doesn't make it so. It defines a syntax and a single operator (nesting), but nothing else. You can't use it to "query" arbitrary data sources in the sense that other query languages such as SQL do, since there are no operators, functions, subqueries/arbitrary joins etc. It's an alternative to REST, not SQL.
- degyves 8y agoI think you should read the definition right from the website: https://graphql.org/learn/ https://graphql.org/learn/
- degyves 8y agoFrom the website: "GraphQL is a query language for your API"
- atombender 8y agoSee my other comment: https://news.ycombinator.com/item?id=18395996 https://news.ycombinator.com/item?id=18395996.