graphql-middleware icon indicating copy to clipboard operation
graphql-middleware copied to clipboard

Middleware an external GraphQL API

Open gweiermann opened this issue 3 years ago • 1 comments

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

gweiermann avatar Mar 29 '21 18:03 gweiermann

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!

maticzav avatar May 23 '21 06:05 maticzav