We recently wrote an article about the https://thenewstack.io/a-new-architecture-for-apis/ — where composition is built in. This architecture comes naturally to GraphQL, but the implementations in support of it widely differ. In this paper, we discuss a declarative approach to this API architecture.

Then a view is defined that “assembles” the two tables, again declaratively, by linking customer.id with order.customerId.

Imagine a second team, say the stores team, constructing a GraphQL API about physical stores, their timings, etc.

But the good thing about GraphQL and of the declarative approach is that it is not “all or nothing.”

Related Articles