News for hackers. Stuff that matters.
Re:Ask HN: Why GraphQL APIs but no Datalog APIs? by AlphaSite on Monday December 09, 2019 @06:04AM (#21741703)
I think the issue is more with framing.

GraphQL is excellent for when you’re implementing an external facing api or a data focused api.

Internal APIs where you also own the client or have operation (side effect) heavy clients. These imo would be far better suited to REST.

Re:Ask HN: Why GraphQL APIs but no Datalog APIs? by kumarvvr on Monday December 09, 2019 @07:24AM (#21742016)
Interesting, I was thinking the complete opposite. GraphQL for internal api or single client api, while a REST api for external consumers.

Internal graphql api can be iterated and broken faster, adapting it for internal use as the app grows, while an external REST api would be more carefully generated and thoroughly documented.

Re:Ask HN: Why GraphQL APIs but no Datalog APIs? by kumarvvr on Monday December 09, 2019 @10:25AM (#21743376)
In addition to my other reply, it serves well to finely granularize an external facing API so that consumers can mix and match to their requirement. This granularity is best accomplished by a REST Api.