---
title: "Unifying Internal APIs: A Different Use Case for GraphQL Gateways"
description: "trivago built an internal GraphQL gateway on GraphQL Mesh v0, embedded in a Node.js Express server, that stitches more than 15 upstream sources (OpenAPI services, MySQL databases, GraphQL servers) into one graph powering a unified admin tool."
url: "https://swe.quest/articles/unifying-internal-apis-a-different-use-case-for-graphql-gateways-25b7dad04cb40fb7"
canonical: "https://tech.trivago.com/post/2026-03-27-unifying-internal-apis-a-different-use-case-for-graphql-gateways/"
source: "trivago tech"
published: "2026-03-27"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["graphql","api-design","system-design","javascript"]
---

# Unifying Internal APIs: A Different Use Case for GraphQL Gateways

A post on [trivago tech](https://swe.quest/sources/trivago.md), published 2026-03-27, 13 min read, Case study. Original: [https://tech.trivago.com/post/2026-03-27-unifying-internal-apis-a-different-use-case-for-graphql-gateways/](https://tech.trivago.com/post/2026-03-27-unifying-internal-apis-a-different-use-case-for-graphql-gateways/)

## Summary

trivago built an internal GraphQL gateway on GraphQL Mesh v0, embedded in a Node.js Express server, that stitches more than 15 upstream sources (OpenAPI services, MySQL databases, GraphQL servers) into one graph powering a unified admin tool. Upstream services stay untouched. The gateway stays thin, using filter and prefix transforms to avoid type collisions, role-based access via composer resolvers (moving toward directives), and an audit-logging pattern that appends a logAuditEvent mutation and checks actual response values against expected ones. Six years in, a flat, partly duplicated graph has proven fine for internal consumers, and integrating services surfaced undocumented data and overlapping systems. Hard parts include the breadth of expertise needed and mixing staging and production environments.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- GraphQL schemas and resolvers ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- API gateways

## Keywords

GraphQL Mesh, Hive Gateway, GraphQL Federation, Express, OpenAPI, schema stitching

## Related posts

- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Optimize GraphQL Server with Lookaheads](https://swe.quest/articles/optimize-graphql-server-with-lookaheads-2ec291286b4baa0c.md): Zalando Engineering · 2021-03-17 · Medium · 12 min read · GraphQL, API design, Performance engineering, JavaScript
  Zalando's GraphQL server uses lookaheads on the resolver's info AST (fieldNodes and selection sets) to work out which sub-fields a query requests, then forwards them to backends that support partial responses via a fields parameter.
- [Understanding GraphQL Directives: Practical Use-Cases at Zalando](https://swe.quest/articles/understanding-graphql-directives-practical-use-cases-at-zalando-20796a0cce64c9f9.md): Zalando Engineering · 2023-10-18 · Medium · 12 min read · GraphQL, API design, Identity & auth, Observability
  Zalando uses custom GraphQL directives to declare cross-cutting server behavior in the schema and to attach client metadata in queries.
- [GraphQL persisted queries and Schema stability](https://swe.quest/articles/graphql-persisted-queries-and-schema-stability-a96dada14e0377f0.md): Zalando Engineering · 2022-02-16 · Medium · 6 min read · GraphQL, API design, Schema migrations, Deployment
  Zalando disables arbitrary GraphQL queries in production and accepts only query IDs that were persisted at build time, where an ID is a hash of the normalized query.
- [pg\_graphql: A GraphQL extension for PostgreSQL](https://swe.quest/articles/pg-graphql-a-graphql-extension-for-postgresql-3a34efbe6d730fc2.md): Supabase · 2021-12-03 · Medium · 4 min read · GraphQL, PostgreSQL, API design
  pg\_graphql is an open-source PostgreSQL extension, written in C and SQL, that reflects a GraphQL schema from existing tables and resolves queries entirely inside the database.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
