forked from graphql/express-graphql
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to replace default execute function (graphql#391)
This PR allows providing your own `execute` function instead of the default one from the `graphql-js`. It’s a small change that adds a lot of flexibility since you can wrap standard `execute` and it opens new possibilities for middlewares. Personally, I need it to proxy calls to 3rd-party APIs. It’s an alternative to graphql#253 but introduces less code and more flexible mechanism. It’s very important for us as it will be the last change required to switch [graphql-faker](https://github.com/APIs-guru/graphql-faker) from custom forks of `graphql-js` and `graphql-express`. @wincent @leebyron Can you please review it?
- Loading branch information
1 parent
9e60e9c
commit 46006e9
Showing
3 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters