3 ms·
> somehow is a generic query language for data. In what sense is GraphQL not a generic query language for data?
by alecbz 4y ago
> somehow is a generic query language for data.
In what sense is GraphQL not a generic query language for data?
- 8n4vidtmkvmk 4y agobecause it's not? it's got no "where" clauses or transforms built in and anything of the sort had to be custom built. you can't query any data in the database, only what the API chooses to expose. it's anything but generic. even pagination isn't standardized
- hn_throwaway_99 4y agoGraphQL is a format and contract for exposing APIs, just like REST is a structure for exposing APIs, just like SOAP is a format and structure for exposing APIs, just like gRPC is a format for exposing APIs. Those are all the right analogies for comparing GraphQL. GraphQL doesn't say anything about how the underlying data is queried - at the end of the day it's just a bunch of resolver functions that you can implement however you want.
- deleted 4y ago[deleted]