Re:How to GraphQL – A Fullstack Tutorial for GraphQL
by sorenbs on Thursday June 14, 2018 @08:48AM
(#17311223)
This sounds like a super interesting approach Adamkl! Do you have something written up about this somewhere?
Re:How to GraphQL – A Fullstack Tutorial for GraphQL
by adamkl on Thursday June 14, 2018 @09:38AM
(#17311563)
I've had a few discussions about doing a formal write-up of what we are doing, but for now I can only provide a brief overview:
Our data APIs map from existing SOAP/XML services to small GraphQL sub-sections of our greater API.
Then, we merge those small APIs together with Apollo's graphql-tools, similar to what Airbnb is doing[1].
Now we are starting work on our proxy/processing layers using this[2] work-in-progress.
[1]https://medium.com/airbnb-engineering/reconciling-graphql-an...
At my company, we are taking a different approach by defining GraphQL APIs that are essentially exposing pure data (similar to Prisma) and then we are merging them and proxying them through multiple layers that augment and alter the schema and data as it passes through.
We can do this because we are leveraging The ability to inspect and alter the abstract syntax trees that power GraphQL under the hood.