3 ms·
this just makes me wonder why we don't just pass in SQL on the API calls, ala graphql.
by jaequery 8y ago
this just makes me wonder why we don't just pass in SQL on the API calls, ala graphql.
- mcphage 8y agoBecause then you’re building your database schema into your public API, making it difficult to vary either.
- smallnamespace 8y agoConversely, if your API isn't public, tightly coupling your stack together may be worth the tradeoff of brittleness vs. development speed.
- mfpiccolo 8y agoThe library is fetch agnostic so the api calls are not under the umbrella. The differentiator here is that you can take GraphQL payloads and/or JsonAPI (and in the future, custom payloads), normalize them into a store and select from them using the ORM. This allows you to use this setup with basically any JS state management system that opens and API to the client side store.