Closed richburdon closed 7 years ago
Finally read this, thanks for the notes here.
On Fri, Nov 11, 2016 at 7:51 PM, Rich Burdon notifications@github.com wrote:
Hopefully you're not reading this kind of thing at the moment. Not least of the reasons being that I have to admit your curiosity about Apollo was well founded. It is so much simpler and straight-forward than Relay.
Although again I had to reverse engineer it to understand it properly (although the docs are much better):
https://github.com/alienlaboratories/react-demos/blob/ 051801ba75e9c79c5320f2e807edddd0b5566e75/docs/kbase/apollo.png
I have most of the technical functionality of the relay demo (and more) now working (queries with fragments, mutations, paging, network interface, etc.) The killer feature is of course Redux; I had talked myself out of needing it (Relays docs imply it's obsolete and it's quite complicated), but I think essential.
I found a few bugs too, but got quick responses from the team.
I'll write up a summary (currently https://github.com/ alienlaboratories/react-demos/blob/051801ba75e9c79c5320f2e807eddd d0b5566e75/sub/apollo/js/client/main.js).
On a meta level: a) I think my desire to get something working really exacerbates the cognitive load of really absorbing these frameworks (GraphQL, then Relay, then Native and now Redux and Apollo). b) I discounted Apollo having the potential resources/support of Relay. Yet Relay 2 doesn't inspire much confidence.
BTW, on the side, I completed the stories (team roster and delete); but the inscrutable nature of Relay's caching system (and abundant problems given mutations) made me want to explore Apollo thoroughly. I think I can probably port the entire current app from Relay in a 5-story (2 days) so am inclined to do that -- esp. since in some respects (caching, queries) I'm further ahead in Apollo at this point.
RB
You can view, comment on, or merge this pull request online at:
https://github.com/alienlaboratories/react-demos/pull/13 Commit Summary
- Apollo app with list query.
- Clean-up
- Apollo Search List.
- Mutations.
- Fragments.
- Devtools
- Paging/cursors.
- Issue filed for paging bug.
- Workaournd for paging bug.
File Changes
- A .idea/vagrant.xml https://github.com/alienlaboratories/react-demos/pull/13/files#diff-0 (7)
- A docs/kbase/apollo.md https://github.com/alienlaboratories/react-demos/pull/13/files#diff-1 (6)
- A docs/kbase/apollo.png https://github.com/alienlaboratories/react-demos/pull/13/files#diff-2 (0)
- R docs/kbase/graphql.md https://github.com/alienlaboratories/react-demos/pull/13/files#diff-3 (0)
- A docs/kbase/redux.md https://github.com/alienlaboratories/react-demos/pull/13/files#diff-4 (5)
- R docs/kbase/relay.md https://github.com/alienlaboratories/react-demos/pull/13/files#diff-5 (0)
- R docs/kbase/schema.png https://github.com/alienlaboratories/react-demos/pull/13/files#diff-6 (0)
- M sub/apollo/.babelrc https://github.com/alienlaboratories/react-demos/pull/13/files#diff-7 (15)
- A sub/apollo/Gruntfile.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-8 (49)
- M sub/apollo/js/client/app.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-9 (13)
- M sub/apollo/js/client/component/devtools.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-10 (28)
- M sub/apollo/js/client/component/home.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-11 (96)
- A sub/apollo/js/client/component/item.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-12 (59)
- M sub/apollo/js/client/component/layout.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-13 (14)
- M sub/apollo/js/client/component/layout.less https://github.com/alienlaboratories/react-demos/pull/13/files#diff-14 (73)
- A sub/apollo/js/client/component/list.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-15 (178)
- A sub/apollo/js/client/component/search.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-16 (97)
- M sub/apollo/js/client/main.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-17 (130)
- A sub/apollo/js/client/reducers.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-18 (46)
- M sub/apollo/js/server/main.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-19 (88)
- A sub/apollo/js/server/schema.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-20 (197)
- M sub/apollo/js/server/views/home.handlebars https://github.com/alienlaboratories/react-demos/pull/13/files#diff-21 (4)
- M sub/apollo/package.json https://github.com/alienlaboratories/react-demos/pull/13/files#diff-22 (14)
- M sub/apollo/webpack.config.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-23 (26)
- M sub/relay/js/common/components/web/item.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-24 (2)
- M sub/relay/js/server/main.js https://github.com/alienlaboratories/react-demos/pull/13/files#diff-25 (23)
- M sub/relay/package.json https://github.com/alienlaboratories/react-demos/pull/13/files#diff-26 (3)
Patch Links:
- https://github.com/alienlaboratories/react-demos/pull/13.patch
- https://github.com/alienlaboratories/react-demos/pull/13.diff
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/alienlaboratories/react-demos/pull/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWAUaoZ7lmcqwlsuxb61ZrKDw03zFazks5q9Q2kgaJpZM4KwRjG .
This is awesome. I'm psyched you're happy about Apollo and it looks like you've got some deep magic here already.
On Wed, Nov 16, 2016 at 7:23 PM, Rich Burdon notifications@github.com wrote:
Merged #13 https://github.com/alienlaboratories/react-demos/pull/13.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/alienlaboratories/react-demos/pull/13#event-862033398, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWAUecaSe7xKIF0tbIT7HcihKQoIlJjks5q-56XgaJpZM4KwRjG .
Hopefully you're not reading this kind of thing at the moment. Not least of the reasons being that I have to admit your curiosity about Apollo was well founded. It is so much simpler and straight-forward than Relay.
Although again I had to reverse engineer it to understand it properly (although the docs are much better):
https://github.com/alienlaboratories/react-demos/blob/051801ba75e9c79c5320f2e807edddd0b5566e75/docs/kbase/apollo.png
I have most of the technical functionality of the relay demo (and more) now working (queries with fragments, mutations, paging, network interface, etc.) The killer feature is of course Redux; I had talked myself out of needing it (Relays docs imply it's obsolete and it's quite complicated), but I think essential.
I found a few bugs too, but got quick responses from the team.
I'll write up a summary (currently https://github.com/alienlaboratories/react-demos/blob/051801ba75e9c79c5320f2e807edddd0b5566e75/sub/apollo/js/client/main.js).
On a meta level: a) I think my desire to get something working really exacerbates the cognitive load of really absorbing these frameworks (GraphQL, then Relay, then Native and now Redux and Apollo). b) I discounted Apollo having the potential resources/support of Relay. Yet Relay 2 doesn't inspire much confidence.
BTW, on the side, I completed the stories (team roster and delete); but the inscrutable nature of Relay's caching system (and abundant problems given mutations) made me want to explore Apollo thoroughly. I think I can probably port the entire current app from Relay in a 5-story (2 days) so am inclined to do that -- esp. since in some respects (caching, queries) I'm further ahead in Apollo at this point.
RB