Hello guys, following-up on my progress as promised I’ve released some packages
The flock of packages
Return live queries from subscription resolvers:
Subscribe to live queries with few lines of code:
Easy load and merge your schemas, done simple:
And the top cherry:
meteor add cultofcoders:apollo
You can now have Apollo installed just by adding one package
and that's it, no other configuration. You get out of the box:
- Zero configuration Apollo
- Ready for Meteor’s live data
- JSON and Date scalars out of the box
- Built-in support for authentication for HTTP Requests but also for Websockets, however for adding Accounts you have to copy paste some stuff from the package since we wanted it to be opt-in.
I feel the need to repeat myself, Meteor’s Live Queries have been successfully migrated to Apollo & GraphQL, and they work with
redis-oplog just as you expect them to, so we’re talking super-scale. Just take a look at
apollo-live-client on how to use them on the client and
apollo-live-server to see how to create resolvers for your Subscription.
The Meteor Apollo package will evolve up to a point where it’s super easy to start, but when you grow your app, you’ll most likely just deprecate the package, and copy/paste the stuff from there to make your own custom high-level configs. So it’ll just focus on the out of the box basics, to satisfy the 95% of apps.
My plans for the next period of time:
- Create a learning curve for Apollo & GraphQL
- Create a boilerplate with authentication, apollo SSR, lots of goodies (Planning for PWA)
- Create a video tutorial that walks everyone through Apollo
- Create a quick boilerplate to show actual proof how to integrate Grapher into Apollo and show the crazy improvements.
- Think about a merge between Mongo and GraphQL Types
Feedback and critiques are not just welcome, they are expected. Thank you!
Note: all packages are currently not-stable, I expect production readiness in 2-3 weeks after we do some heavy testing, please submit any errors you find the the right GitHub repository, thanks.