This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 538
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 (#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 #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
898a033
commit 40a6a42
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