-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-source-graphql) Execute functions in header. (#20731)
* feat(gatsby-source-graphql) Execute functions in headers. Resolves issue #20690, allowing the use of async functions to define headers for gatsby-source-graphql. To use, functions can be passed in the headers object, i.e: headers { authorization: asyncFunc }. * Changes whole headers parameter to accept async function. See #20731. Updated README.md to include new (optional) syntax.
- Loading branch information
1 parent
4c10a58
commit 99f002b
Showing
2 changed files
with
7 additions
and
1 deletion.
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