4 ms·
For the life of me, I do not understand what GraphQL offers over just direct SQL access
by taco_emoji 4y ago
For the life of me, I do not understand what GraphQL offers over just direct SQL access
- Aeolun 4y agoIt’s hard to do anything but “all or nothing” with SQL. I can limit a user to certain tables, but I can’t restrict the columns they can query. There’s also the typing story, where SQL has none.
- recursive 4y ago> here’s also the typing story, where SQL has none. What's meant by this? SQL has plenty of types. int, varchar, bit, date, etc etc
- deleted 4y ago[deleted]
- batiste 4y agoYou don't necessarily have a single SQL database behind a GraphQL server. You could have one of a mix of the above: - Legacy internal REST APIs - NoSQL Databases - Various SQL Databases - Some static text files - Some REST APIs from a third party