Originally published byDev.to
Author: Erwin Wilson Ceniza
Published: July 2, 2026
Tags: GraphQL | HotChocolate | BatchDataLoader | CQRS | Outbox Pattern | Apollo Federation | .NET | Architecture | EMR | API Design
Code-first GraphQL with HotChocolate, BatchDataLoader, CQRS, and a transactional outbox pattern, with real examples from a production EMR system serving three portals from a single schema.
Table of Contents
- Interactive Data Traversal
- The Architecture at 30,000 Feet
- Why GraphQL Won for Healthcare Data Shapes
- Simple Queries vs. Complex REST, The Comparison That Sold Me
- The Resolver Layer, Code-First, Schema-Last
- How GraphQL Smoothly Orchestrates the Application Services
- N+1 Is the Silent Killer, How BatchDataLoaders Eliminate It
- Mutation Architecture - CQRS + Transactional Outbox
- Security at the Resolver Level, Custom Middleware Attributes
- Type Extensions, Why I Stopped Writing DTO Mappers
- Projections, Filtering, Sorting, and Paging
- Apollo Federation, Future-Proofing the Graph
- GraphQL Client on Mobile, Sharing Query Logic Across Portals
- Why I Chose Ionic for the Patient Mobile App
- The Retrospective, What I'd Keep and What I'd Change
A step-by-step walkthrough of how the app consumes (reads) and creates (writes) data through the services.
interactive
<script type="module">
const C = document.currentScript.parentElement;
C.style.cssText='width:100%;font-family:system-ui,-apple-system,sans-serif';
const S = document.createElement('style');
S.textContent=`
.gv *{box-sizing:border-box;margin:0;padding:0}
.gv{background:var(--bg-secondary,#111);border-radius:12px;overflow:hidden;border:1px solid var(--border,#333);min-height:440px}
.gv-tabs{display:flex;border-bottom:1px solid var(--border,#333);background:var(--bg-card,#1a1a1a)}
.gv-tab{flex:1;padding:12px 8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;border:none;background:none;color:var(--text-muted,#666);transition:all .2s;border-bottom:2px solid transparent}
.gv-tab:hover{color:var(--text-seconda
πΊπΈ
More news from United StatesUnited States
NORTH AMERICA
Related News
π I Built a Dropshipping Automation Pipeline β Here's What I Learned (and What I'd Do Differently)
10h ago
How I Cut My LLM API Bill by 40x: A Freelancer's Migration Story
10h ago

Mattress Firm Coupons: Save up to $600
3h ago
Google Ordered to Pay $2 Billion For Anti-Competitive Practices By Swedish Court
20h ago
The Censorship Wall: Why Every AI Companion App Ends Up Filtering You
20h ago