GraphQL Context & Services

Eric Clemmons
Oct 18, 2018 · 2 min read

Rationale

This initialization pattern is compatible with Apollo’s Data Sources. Also, computed properties are readily testable without an E2E test.
RESTDataSource automatically caches based on HTTP response headers!

That’s it!

Eric Clemmons

Written by

I write about tech (JavaScript, node, GraphQL, React, webpack) and Leadership. Currently building GraphQL apps @Starbucks.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade