graphql-middleware
graphql-middleware copied to clipboard
Middleware an external GraphQL API
Hey guys, I just discovered this repository 😀 My idea is to extend a Dgraph API with additional directives and logic (like input validation), that I won't implement directly into a fork of Dgraph. As far as what I could see is that this repository is unfortunately only capable of applying middlewares on a local Apollo Server.
Is it somehow possible to implement external data sources without much effort? Otherwise I'll maybeee open a new repository for that :)
Have a great day :D
Hi @codinghusi 👋 ,
Sorry for the late reply. I think this should be possible. Maybe you can find some pointers in this plugin. It might be a bit outdated, but it used to do just that with Prisma.
Let me know what you think about it!