|
|
|
|
|
by gitrog
2250 days ago
|
|
GraphQL and Apollo looked attractive to me for all the reasons you stated, but I was just worried that the learning curve and making it play nicely with the rest of the stack (that I know quite well already) would be too steep to justify using for the prototype. I'm thinking of writing the prototype just using DRF and React Native but during each step of the process basically looking into how that step would be done with GraphQL. |
|
Since efficient querying is a concern, I highly recommend just biting the bullet. It's extremely easy to underestimate the complexity of caching state on the frontend and to end up accumulating an unmaintainable frontend state management situation. It's totally possible to do what OP suggested without running in to those kinds of issues, but typically that involves more frequent fetching from the server.
It depends how quickly you need to make the prototype/whether you'd be willing to refactor it/how efficient the querying really needs to be/whether you think you can keep state management simple and structured enough to avoid it ballooning/how quickly you think you can grok the basics of GraphQL/etc. Apollo doesn't really care what your schema looks like, unlike relay, so the learning curve isn't as steep. When I picked up GraphQL/Apollo for the first time the terminology felt pretty obtuse, but once the basic idea clicked it felt pretty natural. Most of the devs I've worked with have had similar experiences.